From maillists.gurulounge at ...626... Fri Feb 1 02:38:37 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Thu, 31 Jan 2008 17:38:37 -0800 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47A2079B.5030205@...626...> References: <1201778051.1707.6.camel@...1853...> <47A1E6EA.1080809@...221...> <200801311645.03917.rospolosco@...152...> <200801311735.05099.rospolosco@...152...> <47A2079B.5030205@...626...> Message-ID: <1201829917.16913.0.camel@...1853...> All these ideas give me...an idea. Is there a way to find out the PID of the gambas program that is running? Thanx again! Jeff On Thu, 2008-01-31 at 18:38 +0100, Ep?leg wrote: > En/na Stefano Palmeri ha escrit: > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > >> I use this simple code: > >> > >> PUBLIC SUB Main() > >> > >> DIM sShellOutput AS String > >> > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v grep" > >> TO sShellOutput > >> > >> IF sShellOutput THEN QUIT > >> > >> END > > > > or better: > > > > PUBLIC SUB Main() > > > > DIM sShellOutput AS String > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > " | grep -wv grep | wc -l" TO sShellOutput > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > END > > Very good solution. Thanks a lot! > > Ep?leg. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Feb 1 03:28:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 1 Feb 2008 03:28:07 +0100 Subject: [Gambas-user] Webbrowser.zoom In-Reply-To: <200801271831.57268.rterry@...1822...> References: <200801271831.57268.rterry@...1822...> Message-ID: <200802010328.07954.gambas@...1...> On dimanche 27 janvier 2008, richard terry wrote: > setting webbrowser1.zoom = 1 or > webbrowser1.zoon = 50 > > seems to make no difference. > > Setting it to 1 on my machine shrinks the overall fonts to really tiny, but > incrementing this by 1, or factors therof seems to make no difference. > > Any coments/help appreciated. > > Richard. > Here is a quote from the KDE documentation: "The value is given in percent, larger values mean a generally larger font and larger page contents. It is not guaranteed that all parts of the page are scaled with the same factor though. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all zooming and show the page with the sizes determined via the given lengths in the stylesheets." Regards, -- Benoit Minisini From gambas at ...1... Fri Feb 1 03:30:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 1 Feb 2008 03:30:16 +0100 Subject: [Gambas-user] Instant help in the IDE tools panel In-Reply-To: <200801270903.11486.rterry@...1822...> References: <200801270903.11486.rterry@...1822...> Message-ID: <200802010330.16974.gambas@...1...> On samedi 26 janvier 2008, richard terry wrote: > Highlighting/clicking on a tool in the tools panel in design mode and > hitting help (either F1 or F2) dosn't seem to work. > > [in fact it sends the key press to the last control hightlighted. Eg if > you have just been working on the file tree, move the mouse over and click > on a tool in the toolbox, F2 then puts you in file-rename mode back over in > the file tree] > > I may be missing something, but if not, how hard would it be to allow F2 to > jump you to the help file for the control you have selected in the toolbox? > > Regards > > Richard > Done in the last commit! To get the help page of a control, you must select the control in the toolbox first, and then press the F1 key. Regards, -- Benoit Minisini From rospolosco at ...152... Fri Feb 1 09:38:15 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 09:38:15 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <1201829917.16913.0.camel@...1853...> References: <1201778051.1707.6.camel@...1853...> <47A2079B.5030205@...626...> <1201829917.16913.0.camel@...1853...> Message-ID: <200802010938.16069.rospolosco@...152...> Alle 02:38, venerd? 1 febbraio 2008, Jeffrey Cobb ha scritto: > All these ideas give me...an idea. > > Is there a way to find out the PID of the gambas program that is > running? > > Thanx again! > Jeff Hi. This example returns all the PIDs of different instances of the same program. If you need just the PID of the current application you could use Application.Id. PUBLIC SUB Main() DIM sShellOutput AS String DIM arsPIDs AS String[] DIM sOnePID AS String arsPIDs = NEW String[] SHELL "ps ax | grep -w " & Application.Name & ".gambas" & " | grep -wv grep | cut -f2 -d' '" TO sShellOutput arsPIDs = Split(sShellOutput, "\n", "", TRUE) FOR EACH sOnePID IN arsPIDs PRINT sOnePID NEXT IF arsPIDs.Count > 1 THEN QUIT END Stefano > > On Thu, 2008-01-31 at 18:38 +0100, Ep?leg wrote: > > En/na Stefano Palmeri ha escrit: > > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > > >> I use this simple code: > > >> > > >> PUBLIC SUB Main() > > >> > > >> DIM sShellOutput AS String > > >> > > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v > > >> grep" TO sShellOutput > > >> > > >> IF sShellOutput THEN QUIT > > >> > > >> END > > > > > > or better: > > > > > > PUBLIC SUB Main() > > > > > > DIM sShellOutput AS String > > > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > > " | grep -wv grep | wc -l" TO sShellOutput > > > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > > > END > > > > Very good solution. Thanks a lot! > > > > Ep?leg. > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Fri Feb 1 10:41:45 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 01 Feb 2008 10:41:45 +0100 Subject: [Gambas-user] lpt printer In-Reply-To: <47A1F030.6080508@...407...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> <005001c86379$d6c49820$0f0010b2@...1818...> <47A1E430.8020002@...1237...> <47A1F030.6080508@...407...> Message-ID: <47A2E959.9030306@...1237...> Scott Castaline ha scritto: > Leonardo Miliani wrote: >> gunartha ha scritto: >> >>> yes, my printer set on /dev/lp0 type Epson LX-00 >>> and I get a sample as below : I try this sample and when end of data, >>> printer still scroll the paper. >>> >> What does it mean "printer still scroll the paper"? >> If you mean that the printer scrolls the paper until the sheet end, it's >> the normal way of working of the Printer object: you use it as a sheet >> where you design your graphics and write your text. When you terminate >> your job (Draw.End) it is printed, but all the sheet of paper is used. >> >> >>> How to open/print a file to printer so when end of data the paper stop/no >>> scroll >>> >> The printer is set to eject the sheet, even you used just a line of the >> paper. >> >> > I get the impression that he wants to disable this function. He may have > an app that generates a few lines of text at a time, prints it then will > generate a few more lines later. We used to do this to UNIX servers back > in the 80's and earlier where a system message normally went to the main > console and we wanted to save it in print we would redirect it to a dot > matrix continuous feed printer without the page eject command being sent. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > He could keep the object Draw opened until he finished to write his datas on it and keep a counter of the printed lines so he could print the document when the text reach the end of the paper sheet. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From rospolosco at ...152... Fri Feb 1 11:15:31 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 11:15:31 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47A2079B.5030205@...626...> References: <1201778051.1707.6.camel@...1853...> <200801311735.05099.rospolosco@...152...> <47A2079B.5030205@...626...> Message-ID: <200802011115.32072.rospolosco@...152...> Alle 18:38, gioved? 31 gennaio 2008, Ep?leg ha scritto: > En/na Stefano Palmeri ha escrit: > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > >> I use this simple code: > >> > >> PUBLIC SUB Main() > >> > >> DIM sShellOutput AS String > >> > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v > >> grep" TO sShellOutput > >> > >> IF sShellOutput THEN QUIT > >> > >> END > > > > or better: > > > > PUBLIC SUB Main() > > > > DIM sShellOutput AS String > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > " | grep -wv grep | wc -l" TO sShellOutput > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > END > > Very good solution. Thanks a lot! > > Ep?leg. > I found out that using Application.Args[0] is better, because we don't have to care if the user renames the binary. PUBLIC SUB Main() DIM sShellOutput AS String SHELL "ps aux | grep -w " & Application.Args[0]& " | grep -wv grep | wc -l" TO sShellOutput IF Val(sShellOutput) > 1 THEN QUIT END Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Fri Feb 1 11:49:44 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 01 Feb 2008 11:49:44 +0100 Subject: [Gambas-user] Please work on documentation Message-ID: <47A2F948.90302@...1237...> I would ask the developing team to work on documentation before to go straight with Gambas3... please... One of the things that makes a software a _good_ software is documentation. A lot of users ask in this mailing list for the same thing: good docs. At the moment, the documentations laks in a very lot of points: things are not documentated, links are broken, some docs are old etc... I would suggest to stop development of Gambas for a couple of weeks and go completing the docs. Please please.... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Fri Feb 1 13:31:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 1 Feb 2008 13:31:52 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802011115.32072.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <47A2079B.5030205@...626...> <200802011115.32072.rospolosco@...152...> Message-ID: <200802011331.52577.gambas@...1...> On vendredi 1 f?vrier 2008, Stefano Palmeri wrote: > Alle 18:38, gioved? 31 gennaio 2008, Ep?leg ha scritto: > > En/na Stefano Palmeri ha escrit: > > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > > >> I use this simple code: > > >> > > >> PUBLIC SUB Main() > > >> > > >> DIM sShellOutput AS String > > >> > > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v > > >> grep" TO sShellOutput > > >> > > >> IF sShellOutput THEN QUIT > > >> > > >> END > > > > > > or better: > > > > > > PUBLIC SUB Main() > > > > > > DIM sShellOutput AS String > > > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > > " | grep -wv grep | wc -l" TO sShellOutput > > > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > > > END > > > > Very good solution. Thanks a lot! > > > > Ep?leg. > > I found out that using Application.Args[0] is better, > because we don't have to care if the user renames the binary. > > PUBLIC SUB Main() > > DIM sShellOutput AS String > > SHELL "ps aux | grep -w " & Application.Args[0]& > " | grep -wv grep | wc -l" TO sShellOutput > > IF Val(sShellOutput) > 1 THEN QUIT > > END > > Stefano > I have a 'pgrep' command on my system for finding a process from its name (and many other things). Regards, -- Benoit Minisini From rospolosco at ...152... Fri Feb 1 13:42:50 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 13:42:50 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802011331.52577.gambas@...1...> References: <1201778051.1707.6.camel@...1853...> <200802011115.32072.rospolosco@...152...> <200802011331.52577.gambas@...1...> Message-ID: <200802011342.50521.rospolosco@...152...> Alle 13:31, venerd? 1 febbraio 2008, Benoit Minisini ha scritto: > On vendredi 1 f?vrier 2008, Stefano Palmeri wrote: > > Alle 18:38, gioved? 31 gennaio 2008, Ep?leg ha scritto: > > > En/na Stefano Palmeri ha escrit: > > > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > > > >> I use this simple code: > > > >> > > > >> PUBLIC SUB Main() > > > >> > > > >> DIM sShellOutput AS String > > > >> > > > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep > > > >> -v grep" TO sShellOutput > > > >> > > > >> IF sShellOutput THEN QUIT > > > >> > > > >> END > > > > > > > > or better: > > > > > > > > PUBLIC SUB Main() > > > > > > > > DIM sShellOutput AS String > > > > > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > > > " | grep -wv grep | wc -l" TO sShellOutput > > > > > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > > > > > END > > > > > > Very good solution. Thanks a lot! > > > > > > Ep?leg. > > > > I found out that using Application.Args[0] is better, > > because we don't have to care if the user renames the binary. > > > > PUBLIC SUB Main() > > > > DIM sShellOutput AS String > > > > SHELL "ps aux | grep -w " & Application.Args[0]& > > " | grep -wv grep | wc -l" TO sShellOutput > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > END > > > > Stefano > > I have a 'pgrep' command on my system for finding a process from its name > (and many other things). > > Regards, Yes, but it seems that pgrep (as pidof) can't manage a Gambas binary. That's why I use "ps aux | grep blahblah". Stefano From gambas at ...1... Fri Feb 1 13:51:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 1 Feb 2008 13:51:53 +0100 Subject: [Gambas-user] "no keyboard event data" in gridview Gambas 2.0.0 debian Text In-Reply-To: <11c2d5210801310846n4ebffd73l205f67bce0bd91b1@...627...> References: <11c2d5210801310846n4ebffd73l205f67bce0bd91b1@...627...> Message-ID: <200802011351.54045.gambas@...1...> On jeudi 31 janvier 2008, John Dizaro wrote: > I am javing problema with key.code = key.Enter in GRIDVIEW > as you can see in Captura_da_tela.png > > can someone help me? > Thanks for all > John Evan Dizaro Key.Enter is a constant. It does not tell you the state of the Enter key. You must use the properties of the Key class (Code, Text...). Look at the documentation of the Key class for more informations. Regards, -- Benoit Minisini From gambas at ...1... Fri Feb 1 14:00:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 1 Feb 2008 14:00:09 +0100 Subject: [Gambas-user] Please work on documentation In-Reply-To: <47A2F948.90302@...1237...> References: <47A2F948.90302@...1237...> Message-ID: <200802011400.09570.gambas@...1...> On vendredi 1 f?vrier 2008, Leonardo Miliani wrote: > I would ask the developing team to work on documentation before to go > straight with Gambas3... please... > > One of the things that makes a software a _good_ software is > documentation. A lot of users ask in this mailing list for the same > thing: good docs. > At the moment, the documentations laks in a very lot of points: things > are not documentated, links are broken, some docs are old etc... > > I would suggest to stop development of Gambas for a couple of weeks and > go completing the docs. > Please please.... You are right, but please please be more precise, otherwise your remark is useless. I have not enough time to do all the developments I want on Gambas. Consequently I don't have the time to write more documentation. I just try to document the language and all the classes I wrote, and tell other developers to document their classes, even if they usually, hem, forget to do that. But even with all classes documented, you get mainly a reference documentation, not a documentation that will explain you *how* to use all these classes. So many people won't be satisfied anyway. Maybe your prayer will improve the situation? :-) Regards, -- Benoit Minisini From rospolosco at ...152... Fri Feb 1 14:37:19 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 14:37:19 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802011342.50521.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <200802011331.52577.gambas@...1...> <200802011342.50521.rospolosco@...152...> Message-ID: <200802011437.19471.rospolosco@...152...> Alle 13:42, venerd? 1 febbraio 2008, Stefano Palmeri ha scritto: > Alle 13:31, venerd? 1 febbraio 2008, Benoit Minisini ha scritto: > > On vendredi 1 f?vrier 2008, Stefano Palmeri wrote: > > > Alle 18:38, gioved? 31 gennaio 2008, Ep?leg ha scritto: > > > > En/na Stefano Palmeri ha escrit: > > > > > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > > > > >> I use this simple code: > > > > >> > > > > >> PUBLIC SUB Main() > > > > >> > > > > >> DIM sShellOutput AS String > > > > >> > > > > >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep > > > > >> -v grep" TO sShellOutput > > > > >> > > > > >> IF sShellOutput THEN QUIT > > > > >> > > > > >> END > > > > > > > > > > or better: > > > > > > > > > > PUBLIC SUB Main() > > > > > > > > > > DIM sShellOutput AS String > > > > > > > > > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > > > > > " | grep -wv grep | wc -l" TO sShellOutput > > > > > > > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > > > > > > > END > > > > > > > > Very good solution. Thanks a lot! > > > > > > > > Ep?leg. > > > > > > I found out that using Application.Args[0] is better, > > > because we don't have to care if the user renames the binary. > > > > > > PUBLIC SUB Main() > > > > > > DIM sShellOutput AS String > > > > > > SHELL "ps aux | grep -w " & Application.Args[0]& > > > " | grep -wv grep | wc -l" TO sShellOutput > > > > > > IF Val(sShellOutput) > 1 THEN QUIT > > > > > > END > > > > > > Stefano > > > > I have a 'pgrep' command on my system for finding a process from its name > > (and many other things). > > > > Regards, > > Yes, but it seems that pgrep (as pidof) can't manage a Gambas binary. > That's why I use "ps aux | grep blahblah". > > Stefano Errata corrige: "pgrep -f gambas_ binary_name" works. Very useful info. Thanks Benoit for suggestion. Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From auditmk at ...626... Fri Feb 1 14:44:11 2008 From: auditmk at ...626... (Mukul Khullar) Date: Fri, 1 Feb 2008 19:14:11 +0530 Subject: [Gambas-user] Problem with SHELL command.Please help!! Message-ID: I am trying to use the SHELL command in gambas for executing a command known as auditctl on my GUI such as : SHELL fk TO s where fk is the command auditctl [flags] and s is a variable of type variant. When I give the correct flags, the output from the shell is returned correctly in s, and I can print s using message(s). But when I give an incorrect combination of flags , the error returned on the shell is not coming into s(on debugging, s remains blank, nothing is returned into s). How can I redirect any type of shell output of the above command into some variable? Is there a better way to do it? Any help would be highly appreciated. Thanking you, Mukul Khullar. From rospolosco at ...152... Fri Feb 1 15:20:40 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 15:20:40 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802011437.19471.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <200802011342.50521.rospolosco@...152...> <200802011437.19471.rospolosco@...152...> Message-ID: <200802011520.40504.rospolosco@...152...> And so finally :-) , to avoid multiple instances we could do: PUBLIC SUB Main() DIM sShellOutput AS String SHELL "pgrep -f " & Application.Args[0] TO sShellOutput IF Split(Trim$(sShellOutput), "\n").Count > 1 THEN QUIT END Stefano From rospolosco at ...152... Fri Feb 1 15:33:13 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 1 Feb 2008 15:33:13 +0100 Subject: [Gambas-user] Problem with SHELL command.Please help!! In-Reply-To: References: Message-ID: <200802011533.13627.rospolosco@...152...> Alle 14:44, venerd? 1 febbraio 2008, Mukul Khullar ha scritto: > I am trying to use the SHELL command in gambas for executing a command > known as auditctl on my GUI such as : > > SHELL fk TO s > > where fk is the command auditctl [flags] > > and s is a variable of type variant. > > When I give the correct flags, the output from the shell is returned > correctly in s, and I can print s using message(s). > But when I give an incorrect combination of flags , the error returned on > the shell is not coming into s(on debugging, s remains blank, nothing is > returned into s). > How can I redirect any type of shell output of the above command into some > variable? Is there a better way to do it? > Any help would be highly appreciated. > Thanking you, > Mukul Khullar. Try to add "2>&1" at the end of your SHELL command, i.e.: DIM sShellOutput as String SHELL "cat non_existent_file 2>&1" TO sShellOutput Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From maillists.gurulounge at ...626... Fri Feb 1 17:53:57 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Fri, 01 Feb 2008 08:53:57 -0800 Subject: [Gambas-user] Please work on documentation In-Reply-To: <200802011400.09570.gambas@...1...> References: <47A2F948.90302@...1237...> <200802011400.09570.gambas@...1...> Message-ID: <1201884838.1789.5.camel@...1853...> I was thinking about this recently when I was browsing the documentation for Arrays. There was plenty explanation what they are but NOT how you use them. I tend to learn faster by example... so I got to thinking if it was possible for volunteers to be able to add code examples of how things are used... say an example of how THEY use that item in their project. It wouldn't take much time either... say about 15-30 min a day, and in a few months there'd be ample documentation for most functions. It isn't much and doesn't describe the item in detail but it's a start and gives a user a direction to go. Jeff On Fri, 2008-02-01 at 14:00 +0100, Benoit Minisini wrote: > On vendredi 1 f?vrier 2008, Leonardo Miliani wrote: > > I would ask the developing team to work on documentation before to go > > straight with Gambas3... please... > > > > One of the things that makes a software a _good_ software is > > documentation. A lot of users ask in this mailing list for the same > > thing: good docs. > > At the moment, the documentations laks in a very lot of points: things > > are not documentated, links are broken, some docs are old etc... > > > > I would suggest to stop development of Gambas for a couple of weeks and > > go completing the docs. > > Please please.... > > You are right, but please please be more precise, otherwise your remark is > useless. > > I have not enough time to do all the developments I want on Gambas. > Consequently I don't have the time to write more documentation. I just try to > document the language and all the classes I wrote, and tell other developers > to document their classes, even if they usually, hem, forget to do that. > > But even with all classes documented, you get mainly a reference > documentation, not a documentation that will explain you *how* to use all > these classes. So many people won't be satisfied anyway. > > Maybe your prayer will improve the situation? :-) > > Regards, > From maximvonk at ...626... Sat Feb 2 00:14:00 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 1 Feb 2008 15:14:00 -0800 (PST) Subject: [Gambas-user] Listitem text as tootip Message-ID: <15234877.post@...1379...> Hi there. (Many) years ago as a VB developer I used code that converted the text of the listbox item under the mouse into the tooltip for the listbox itself, making it easier to read items that are too long for the width of the listbox. I know that Gambas lists can scroll horizontally, allowing you to view those items, but Id still like to implement the tooltip as well. Is there any way to do this in Gambas2 (2.0.0) Thanks Max -- View this message in context: http://www.nabble.com/Listitem-text-as-tootip-tp15234877p15234877.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Feb 2 12:02:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Feb 2008 12:02:27 +0100 Subject: [Gambas-user] Some sort fo glibc crash when running form. In-Reply-To: <200802010759.21388.rterry@...1822...> References: <200802010759.21388.rterry@...1822...> Message-ID: <200802021202.27886.gambas@...1...> On jeudi 31 janvier 2008, richard terry wrote: > Loaded the collections example, and re-saved it as a new project in my > directory. > > Then added a duplicate form the the main form, ran the project, and got > this error. > > *** glibc detected *** Collection: double free or corruption (out): > 0x080e3820 *** > > Then my other gambas project wouldn't run, but ok when re-booted. > > Probably untraceable, but could someone explain what it means. > > Richard > Do you use the 3.0 developmenv version? -- Benoit Minisini From rospolosco at ...152... Sat Feb 2 12:06:26 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 2 Feb 2008 12:06:26 +0100 Subject: [Gambas-user] little bug - bad links in help Message-ID: <200802021206.27031.rospolosco@...152...> Hi. To reproduce the bug: 1) Open the help. 2) Then from the *left side panel* select gb.qt --> Button --> Click (I mean you have to select the event item from the tree) error: file:///usr/local/share/gambas2/help/help/comp/gb+qt/control/+click.html: it happens for most (all?) gb.qt Controls events names. the file should be: /usr/local/share/gambas2/help/help/comp/gb+qt/control/_click.html: "underscore" instead of "plus". Best regards, Stefano Palmeri From kaoticus60 at ...151... Sat Feb 2 12:28:23 2008 From: kaoticus60 at ...151... (andy60) Date: Sat, 02 Feb 2008 12:28:23 +0100 Subject: [Gambas-user] Sqlite and Gambas Message-ID: <47A453D7.9080007@...151...> I don't understand the way to list tables of a sqlite database. For example, it would be useful to list all the database tables in a listbox. How to use Connection.tables? Conenction.tables returns a virtual collection used for managing the tables of the database. From gambas at ...1... Sat Feb 2 13:43:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Feb 2008 13:43:47 +0100 Subject: [Gambas-user] little bug - bad links in help In-Reply-To: <200802021206.27031.rospolosco@...152...> References: <200802021206.27031.rospolosco@...152...> Message-ID: <200802021343.47485.gambas@...1...> On samedi 2 f?vrier 2008, Stefano Palmeri wrote: > Hi. > > To reproduce the bug: > > 1) Open the help. > > 2) Then from the *left side panel* select gb.qt --> Button --> Click > (I mean you have to select the event item from the tree) > > error: > > file:///usr/local/share/gambas2/help/help/comp/gb+qt/control/+click.html: > > it happens for most (all?) gb.qt Controls events names. > > the file should be: > > /usr/local/share/gambas2/help/help/comp/gb+qt/control/_click.html: > > "underscore" instead of "plus". > > Best regards, > > Stefano Palmeri > I fixed that in the rev. 1056. As this tree is generated by a Gambas program that scans the information file of all installed component, I could compare the result of my recent optimizations: the program run by Gambas 3 is about 18% faster than the same program run by Gambas 2. Regards, -- Benoit Minisini From leonardo at ...1237... Sat Feb 2 16:37:30 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 02 Feb 2008 16:37:30 +0100 Subject: [Gambas-user] Please work on documentation In-Reply-To: <200802011400.09570.gambas@...1...> References: <47A2F948.90302@...1237...> <200802011400.09570.gambas@...1...> Message-ID: <47A48E3A.8090108@...1237...> Benoit Minisini ha scritto: > I have not enough time to do all the developments I want on Gambas. > Consequently I don't have the time to write more documentation. I just try to > document the language and all the classes I wrote, and tell other developers > to document their classes, even if they usually, hem, forget to do that. I would suggest to stop hard development on Gambas for just a couple of weeks, doing just the bug correction fro SVN and start to complete the help that comes with Gambas. It's not difficult to see which are the missing parts: a lot of links don't work :-) It would be a good point of start to begin complete those ones. > > But even with all classes documented, you get mainly a reference > documentation, not a documentation that will explain you *how* to use all > these classes. So many people won't be satisfied anyway. I don't ask to know how to use any single part of Gambas with 100.000 examples. I think that before most of us had programmed with another language so we all know the programming bases. I just ask to check the docs to see if all the properties of any object are documentated. > > Maybe your prayer will improve the situation? :-) I hope :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From rospolosco at ...152... Sat Feb 2 17:45:24 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 2 Feb 2008 17:45:24 +0100 Subject: [Gambas-user] Listitem text as tootip In-Reply-To: <15234877.post@...1379...> References: <15234877.post@...1379...> Message-ID: <200802021745.25004.rospolosco@...152...> Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto: > Hi there. > > (Many) years ago as a VB developer I used code that converted the text of > the listbox item under the mouse into the tooltip for the listbox itself, > making it easier to read items that are too long for the width of the > listbox. I know that Gambas lists can scroll horizontally, allowing you to > view those items, but Id still like to implement the tooltip as well. > > Is there any way to do this in Gambas2 (2.0.0) > > Thanks > > Max I don't think you can do it with listbox (unless you make some magic with mouse position). But I'm not sure. Use the ListView control instead, which automagically does what you're asking. Example attached. Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: listview-0.0.1.tar.gz Type: application/x-tgz Size: 7732 bytes Desc: not available URL: From cheguebeara at ...626... Sat Feb 2 20:11:50 2008 From: cheguebeara at ...626... (Che) Date: Sat, 02 Feb 2008 14:11:50 -0500 Subject: [Gambas-user] Listitem text as tootip In-Reply-To: <200802021745.25004.rospolosco@...152...> References: <15234877.post@...1379...> <200802021745.25004.rospolosco@...152...> Message-ID: <1201979510.5713.26.camel@...1835...> Not sure if this is what you are looking for but... it worked on my GB2... PUBLIC SUB ListBox1_MouseMove() listbox1.tooltip = listbox1.Text END Clicking on an item to highlight it changed the tooltip to whatever was selected in the listbox... Mark On Sat, 2008-02-02 at 17:45 +0100, Stefano Palmeri wrote: > Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto: > > Hi there. > > > > (Many) years ago as a VB developer I used code that converted the text of > > the listbox item under the mouse into the tooltip for the listbox itself, > > making it easier to read items that are too long for the width of the > > listbox. I know that Gambas lists can scroll horizontally, allowing you to > > view those items, but Id still like to implement the tooltip as well. > > > > Is there any way to do this in Gambas2 (2.0.0) > > > > Thanks > > > > Max > > I don't think you can do it with listbox (unless you make > some magic with mouse position). But I'm not sure. > > Use the ListView control instead, which automagically does > what you're asking. Example attached. > > Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From maillists.gurulounge at ...626... Sat Feb 2 20:31:10 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sat, 02 Feb 2008 11:31:10 -0800 Subject: [Gambas-user] [Fwd: Comm between gambas apps] Message-ID: <1201980670.3375.4.camel@...1853...> I was wondering if there was a way to have one RUNNING gambas program "talk" to another RUNNING gambas program. I was thinking maybe messages in a small file someplace, but was curious to know if there was a more direct method. Can't give any examples as I've not implimented this yet, just some thinking for a future project. I was also wondering if there was a repository someplace where folks upload their gambas sources? Thanx, Jeff From maximvonk at ...626... Sat Feb 2 21:43:16 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 2 Feb 2008 12:43:16 -0800 (PST) Subject: [Gambas-user] Listitem text as tootip In-Reply-To: <200802021745.25004.rospolosco@...152...> References: <15234877.post@...1379...> <200802021745.25004.rospolosco@...152...> Message-ID: <15247037.post@...1379...> Stefano, thanks very much, that works very well indeed, but I have one more question now: When using the ListBox I was able to save the contents to a file like this... DIM tItem, tGItems AS String FOR EACH tItem, IN Object.GetProperty(ListBox1, "list") tGItems = tGItems & tItem, & "\n" NEXT However, this does not work with the ListView. Is there perhaps some comparable method of doing the same thing with a ListView? Many thanks Max Stefano Palmeri wrote: > > Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto: >> Hi there. >> >> (Many) years ago as a VB developer I used code that converted the text of >> the listbox item under the mouse into the tooltip for the listbox itself, >> making it easier to read items that are too long for the width of the >> listbox. I know that Gambas lists can scroll horizontally, allowing you >> to >> view those items, but Id still like to implement the tooltip as well. >> >> Is there any way to do this in Gambas2 (2.0.0) >> >> Thanks >> >> Max > > I don't think you can do it with listbox (unless you make > some magic with mouse position). But I'm not sure. > > Use the ListView control instead, which automagically does > what you're asking. Example attached. > > Stefano > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Listitem-text-as-tootip-tp15234877p15247037.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sat Feb 2 21:50:52 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 2 Feb 2008 12:50:52 -0800 (PST) Subject: [Gambas-user] Listitem text as tootip In-Reply-To: <15247037.post@...1379...> References: <15234877.post@...1379...> <200802021745.25004.rospolosco@...152...> <15247037.post@...1379...> Message-ID: <15247098.post@...1379...> Doh! Sorted it myself! Thanks again Stefano Regards Max MaxVK wrote: > > Stefano, thanks very much, that works very well indeed, but I have one > more question now: > > When using the ListBox I was able to save the contents to a file like > this... > > DIM tItem, tGItems AS String > FOR EACH tItem, IN Object.GetProperty(ListBox1, "list") > tGItems = tGItems & tItem, & "\n" > NEXT > > > However, this does not work with the ListView. Is there perhaps some > comparable method of doing the same thing with a ListView? > > Many thanks > > Max > > > Stefano Palmeri wrote: >> >> Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto: >>> Hi there. >>> >>> (Many) years ago as a VB developer I used code that converted the text >>> of >>> the listbox item under the mouse into the tooltip for the listbox >>> itself, >>> making it easier to read items that are too long for the width of the >>> listbox. I know that Gambas lists can scroll horizontally, allowing you >>> to >>> view those items, but Id still like to implement the tooltip as well. >>> >>> Is there any way to do this in Gambas2 (2.0.0) >>> >>> Thanks >>> >>> Max >> >> I don't think you can do it with listbox (unless you make >> some magic with mouse position). But I'm not sure. >> >> Use the ListView control instead, which automagically does >> what you're asking. Example attached. >> >> Stefano >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- View this message in context: http://www.nabble.com/Listitem-text-as-tootip-tp15234877p15247098.html Sent from the gambas-user mailing list archive at Nabble.com. From jredrejo at ...626... Sat Feb 2 22:08:42 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sat, 2 Feb 2008 22:08:42 +0100 Subject: [Gambas-user] [Fwd: Comm between gambas apps] In-Reply-To: <1201980670.3375.4.camel@...1853...> References: <1201980670.3375.4.camel@...1853...> Message-ID: <8eb28a500802021308y134eaed7k6d9ca783bf33514@...627...> Currently you should be able to do such thing using dcop in Kde (take a look at the katebrowser example), but in the roadmap a dbus component is the key for that. Regards. Jos? L: 2008/2/2, Jeffrey Cobb : > > I was wondering if there was a way to have one RUNNING gambas program > "talk" to > another RUNNING gambas program. I was thinking maybe messages in a small > file someplace, but > was curious to know if there was a more direct method. > > Can't give any examples as I've not implimented this yet, just some > thinking for a future project. > > I was also wondering if there was a repository someplace where folks > upload their gambas sources? > > Thanx, > Jeff > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Feb 3 01:33:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 3 Feb 2008 01:33:24 +0100 Subject: [Gambas-user] [Fwd: Comm between gambas apps] In-Reply-To: <8eb28a500802021308y134eaed7k6d9ca783bf33514@...627...> References: <1201980670.3375.4.camel@...1853...> <8eb28a500802021308y134eaed7k6d9ca783bf33514@...627...> Message-ID: <200802030133.24815.gambas@...1...> On samedi 2 f?vrier 2008, Jos? Luis Redrejo wrote: > Currently you should be able to do such thing using dcop in Kde (take a > look at the katebrowser example), but in the roadmap a dbus component is > the key for that. > > Regards. > Jos? L: > You can use named pipes too (PIPE instruction). But you must crate a communication protocol yourself. Regards, -- Benoit Minisini From maximvonk at ...626... Sun Feb 3 14:35:24 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 3 Feb 2008 05:35:24 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens Message-ID: <15253495.post@...1379...> Hi there. I'm using Gambas 2.0.0 on Ubuntu 7.10 Iv made a small program to store my Gambas source code snippets. Its very quick and simple and contains no database connections etc; just plain flat files. I have created a package for the program, and installed it, and everything works fine, except for one small thing: When I click the program icon from the menu, the program opens as it should, showing an icon (correctly) in the window list on my main taskbar area. However, for perhaps 15-20 seconds there is another icon for my program there too, which shows that it is trying to load the program for a second time. The running version of my program works fine during this time, although the mouse shows a waiting cursor when it is moved over the title bar of the window, and there seem to be no other side effects of this second (Apparent) attempt to open the program. Is this a bug or have I done something silly that has caused it? Should I be concerned about it? All the best Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15253495.html Sent from the gambas-user mailing list archive at Nabble.com. From Mike at ...680... Sun Feb 3 19:40:38 2008 From: Mike at ...680... (Mike Keehan) Date: Sun, 03 Feb 2008 18:40:38 +0000 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15253495.post@...1379...> References: <15253495.post@...1379...> Message-ID: <47A60AA6.2020305@...680...> MaxVK wrote: > Hi there. I'm using Gambas 2.0.0 on Ubuntu 7.10 > > Iv made a small program to store my Gambas source code snippets. Its very > quick and simple and contains no database connections etc; just plain flat > files. I have created a package for the program, and installed it, and > everything works fine, except for one small thing: > > When I click the program icon from the menu, the program opens as it should, > showing an icon (correctly) in the window list on my main taskbar area. > However, for perhaps 15-20 seconds there is another icon for my program > there too, which shows that it is trying to load the program for a second > time. > > The running version of my program works fine during this time, although the > mouse shows a waiting cursor when it is moved over the title bar of the > window, and there seem to be no other side effects of this second (Apparent) > attempt to open the program. > > Is this a bug or have I done something silly that has caused it? Should I be > concerned about it? > > All the best > > Max I think it is just your window manager displaying a 'starting up' icon. The window manager is looking for a process to be running with the same name as the property in the menu, but the actual running program is something like "gbr2 name.gambas". Mike From piramix at ...178... Sun Feb 3 20:07:26 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Sun, 3 Feb 2008 14:07:26 -0500 Subject: [Gambas-user] Formatting a TextBox Message-ID: <20080203190726.7B12D103C3@...1854...> Hi everybody. I'm trying to format a TextBox so the user can enter text into what I call a mask. I.e. to input a phone number it consists on two parts, area code and pure number, so the mask will be like this: (999)-(999-9999); note that parentheses and dashes should appear in the textbox.Is this possible? How can I do that? Thanks in avdance. Greetings. Pablo. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From maillists.gurulounge at ...626... Sun Feb 3 21:31:35 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 03 Feb 2008 12:31:35 -0800 Subject: [Gambas-user] Formatting a TextBox In-Reply-To: <20080203190726.7B12D103C3@...1854...> References: <20080203190726.7B12D103C3@...1854...> Message-ID: <1202070695.28985.1.camel@...1853...> Without a little more extensive programming you may probably have to format the phone number when the textbox looses focus. I tried this: PUBLIC SUB TextBox1_LostFocus() DIM tmpStr AS String DIM ch AS String DIM i AS Integer tmpstr = "" ' ** Strip out non-numeric character FOR I = 1 TO Len(TextBox1.Text) ch = Mid(TextBox1.text, i, 1) IF ((ch >= "0") AND (ch <= "9")) THEN tmpstr = tmpStr & ch ENDIF NEXT ' ** Format the numeric string as a typcical US number tmpStr = "(" & Left(tmpstr, 3) & ") " & Mid(tmpStr, 4, 3) & "-" & Mid(tmpStr, 7) TextBox1.Text = tmpstr END On Sun, 2008-02-03 at 14:07 -0500, Piramix Tecnolog?as wrote: > Hi everybody. > I'm trying to format a TextBox so the user can enter text into what I call a mask. I.e. to input a phone number it consists on two parts, area code and pure number, so the mask will be like this: (999)-(999-9999); note that parentheses and dashes should appear in the textbox.Is this possible? How can I do that? > Thanks in avdance. > Greetings. > > Pablo. > From rterry at ...1822... Sun Feb 3 12:33:30 2008 From: rterry at ...1822... (richard terry) Date: Sun, 3 Feb 2008 22:33:30 +1100 Subject: [Gambas-user] No obvious way to set combo to a row in code Message-ID: <200802032233.30504.rterry@...1822...> None of the properties in the document seem to be applicable. I have saved the combo's position to a database field in my app, and want to re-display the data, setting the combo to the correct line. Any help appreciated. Richard From rterry at ...1822... Sun Feb 3 22:14:08 2008 From: rterry at ...1822... (richard terry) Date: Mon, 4 Feb 2008 08:14:08 +1100 Subject: [Gambas-user] Problem with boolean values in a class file Message-ID: <200802040814.08563.rterry@...1822...> I'm having trouble saving the contents of a checkbox value into my postgres database. I have a class file call cAddress, which contains amongst a few others these lines: PUBLIC preferred_address AS Boolean PUBLIC postal_address AS Boolean In my main form which contains a couple of check boxes, when I collect data I do the following: currentAddress = New cAddress When I collect the data I've entered I do this currentAddress preferred_address = chkpreferredAddress.value currentAddress postal_address = chkPostalAddress.value currentAddress .HeadOffice = FALSE (which I want to be false here) I then have a file I call modContactsDBI which contains all the sql calls to my postgres database. modContactsDBI.person_address_save(currentAddress, currentPerson.pk) in modContactsDBI the subroutine is this: PUBLIC SUB person_address_save(address AS cAddress, pk_person AS Integer) In this routine I construct the sql to send to the database from the values in passed to the routine sql = sql & address.preferred_address & ", " sql = sql & address.postal_address & ", " What happens is interesting in the the sql ends up looking like this: Insert into data_addresses (street, fk_town, postal_address, preferred,head_office,country_code) VALUES("1 Any Street",922,T,T, , "AU") Note the section here ************T,T, , ******************* ie what was True in the chkPostal checkbox (ie TRUE) ends up as a T, which postgres spits the dummy at, and what was Head_Office which I set to False (or even if another chbox.value was FALSE, there ends up nothing in its spot in the query, as shown above (the blank space between the two comma's. Any ideas, thanks in advance. Richard From rterry at ...1822... Sun Feb 3 22:53:39 2008 From: rterry at ...1822... (richard terry) Date: Mon, 4 Feb 2008 08:53:39 +1100 Subject: [Gambas-user] Please work on documentation In-Reply-To: <200802011400.09570.gambas@...1...> References: <47A2F948.90302@...1237...> <200802011400.09570.gambas@...1...> Message-ID: <200802040853.39607.rterry@...1822...> Would it help if those of us struggling with the basics sent in some really really basic projects for the examples for example took me ages yesterday to figure out how to use the column view control, so I could send that in - eventally looked it up in John's book. ie a begginner section in examples. BTW for anyone else struggling, get a copy of The Begginners Guide to Gambas (its floating on the web in pdf form). I've found it really useful though based on gambas 1, and I've even paid for and sent off for the written version so at least the Author (John Rittinghouse) hopefully gets something for his efforts. Wonder if a version 2 is in the pipeline? Regards Richard On Sat, 2 Feb 2008 12:00:09 am Benoit Minisini wrote: > On vendredi 1 f?vrier 2008, Leonardo Miliani wrote: > > I would ask the developing team to work on documentation before to go > > straight with Gambas3... please... > > > > One of the things that makes a software a _good_ software is > > documentation. A lot of users ask in this mailing list for the same > > thing: good docs. > > At the moment, the documentations laks in a very lot of points: things > > are not documentated, links are broken, some docs are old etc... > > > > I would suggest to stop development of Gambas for a couple of weeks and > > go completing the docs. > > Please please.... > > You are right, but please please be more precise, otherwise your remark is > useless. > > I have not enough time to do all the developments I want on Gambas. > Consequently I don't have the time to write more documentation. I just try > to document the language and all the classes I wrote, and tell other > developers to document their classes, even if they usually, hem, forget to > do that. > > But even with all classes documented, you get mainly a reference > documentation, not a documentation that will explain you *how* to use all > these classes. So many people won't be satisfied anyway. > > Maybe your prayer will improve the situation? :-) > > Regards, From piramix at ...178... Sun Feb 3 23:31:29 2008 From: piramix at ...178... (=?utf-8?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Sun, 3 Feb 2008 17:31:29 -0500 Subject: [Gambas-user] Formatting a TextBox Message-ID: <20080203223129.61AA447808F@...1850...> Thanks Jeff for the code. It's useful. But would be nice to have the mask already into the text box; this way the user knows what to type there. Not only for phone numbers, could be for anything else, let's say product keys, credit card numbers, etc. Is possible or your solution is the only one available here? Greeetings, Pablo. > ----- Original Message ----- > From: "Jeffrey Cobb" > To: "mailing list for gambas users" > Subject: Re: [Gambas-user] Formatting a TextBox > Date: Sun, 03 Feb 2008 12:31:35 -0800 > > Without a little more extensive programming you may probably have to > format the phone number when the textbox looses focus. I tried this: > > PUBLIC SUB TextBox1_LostFocus() > DIM tmpStr AS String > DIM ch AS String > DIM i AS Integer > > tmpstr = "" > > ' ** Strip out non-numeric character > FOR I = 1 TO Len(TextBox1.Text) > ch = Mid(TextBox1.text, i, 1) > IF ((ch >= "0") AND (ch <= "9")) THEN > tmpstr = tmpStr & ch > ENDIF > NEXT > > ' ** Format the numeric string as a typcical US number > tmpStr = "(" & Left(tmpstr, 3) & ") " & Mid(tmpStr, 4, 3) & "-" & > Mid(tmpStr, 7) > TextBox1.Text = tmpstr > > END > > > On Sun, 2008-02-03 at 14:07 -0500, Piramix Tecnolog?as wrote: > > Hi everybody. > > I'm trying to format a TextBox so the user can enter text into > > what I call a mask. I.e. to input a phone number it consists on > > two parts, area code and pure number, so the mask will be like > > this: (999)-(999-9999); note that parentheses and dashes should > > appear in the textbox.Is this possible? How can I do that? > > Thanks in avdance. > > Greetings. > > > > Pablo. > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From maximvonk at ...626... Mon Feb 4 00:24:41 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 3 Feb 2008 15:24:41 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <47A60AA6.2020305@...680...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> Message-ID: <15259925.post@...1379...> >I think it is just your window manager displaying a 'starting up' >icon. The window manager is looking for a process to be running with >the same name as the property in the menu, but the actual running >program is something like "gbr2 name.gambas". > >Mike That sounds about right since the caption that appears on the second taskbar icon seems to be 'Starting up...", however, there is something a little strange about this: The menu icon that was created during the installation from the package is in the 'Other' menu. Using all of the details from that menu icon (The command etc) I created a new icon, in a different menu. This new icon does NOT cause the same problem as the one that was added during the program installation, although the details within them are identical. Its most odd. Any ideas that could explain this further weirdness? Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15259925.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Feb 4 00:27:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 00:27:00 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15259925.post@...1379...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> Message-ID: <200802040027.00205.gambas@...1...> On lundi 4 f?vrier 2008, MaxVK wrote: > >I think it is just your window manager displaying a 'starting up' > >icon. The window manager is looking for a process to be running with > >the same name as the property in the menu, but the actual running > >program is something like "gbr2 name.gambas". > > > >Mike > > That sounds about right since the caption that appears on the second > taskbar icon seems to be 'Starting up...", however, there is something a > little strange about this: > > The menu icon that was created during the installation from the package is > in the 'Other' menu. > > Using all of the details from that menu icon (The command etc) I created a > new icon, in a different menu. This new icon does NOT cause the same > problem as the one that was added during the program installation, although > the details within them are identical. > > Its most odd. > > Any ideas that could explain this further weirdness? > > Max Can you compare the .desktop file created by the package and the second one? -- Benoit Minisini From rterry at ...1822... Mon Feb 4 01:28:36 2008 From: rterry at ...1822... (richard terry) Date: Mon, 4 Feb 2008 11:28:36 +1100 Subject: [Gambas-user] Please work on documentation In-Reply-To: <1201884838.1789.5.camel@...1853...> References: <47A2F948.90302@...1237...> <200802011400.09570.gambas@...1...> <1201884838.1789.5.camel@...1853...> Message-ID: <200802041128.36630.rterry@...1822...> Add me to your list, if we form a group we can work together. May not be much help but I'll try. Richard On Sat, 2 Feb 2008 03:53:57 am Jeffrey Cobb wrote: > I was thinking about this recently when I was browsing the documentation > for Arrays. There was plenty explanation what they are but NOT how you > use them. I tend to learn faster by example... so I got to thinking if > it was possible for volunteers to be able to add code examples of how > things are used... say an example of how THEY use that item in their > project. > > It wouldn't take much time either... say about 15-30 min a day, and in a > few months there'd be ample documentation for most functions. > > It isn't much and doesn't describe the item in detail but it's a start > and gives a user a direction to go. > > Jeff > > On Fri, 2008-02-01 at 14:00 +0100, Benoit Minisini wrote: > > On vendredi 1 f?vrier 2008, Leonardo Miliani wrote: > > > I would ask the developing team to work on documentation before to go > > > straight with Gambas3... please... > > > > > > One of the things that makes a software a _good_ software is > > > documentation. A lot of users ask in this mailing list for the same > > > thing: good docs. > > > At the moment, the documentations laks in a very lot of points: things > > > are not documentated, links are broken, some docs are old etc... > > > > > > I would suggest to stop development of Gambas for a couple of weeks and > > > go completing the docs. > > > Please please.... > > > > You are right, but please please be more precise, otherwise your remark > > is useless. > > > > I have not enough time to do all the developments I want on Gambas. > > Consequently I don't have the time to write more documentation. I just > > try to document the language and all the classes I wrote, and tell other > > developers to document their classes, even if they usually, hem, forget > > to do that. > > > > But even with all classes documented, you get mainly a reference > > documentation, not a documentation that will explain you *how* to use all > > these classes. So many people won't be satisfied anyway. > > > > Maybe your prayer will improve the situation? :-) > > > > Regards, > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From maillists.gurulounge at ...626... Mon Feb 4 02:13:02 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 03 Feb 2008 17:13:02 -0800 Subject: [Gambas-user] Formatting a TextBox In-Reply-To: <20080203223129.61AA447808F@...1850...> References: <20080203223129.61AA447808F@...1850...> Message-ID: <1202087582.2287.4.camel@...1853...> I was thinking about that... unfortunately I had to run this morning -- and actually have to leave again soon... so I threw this code snippet together. But I as thinking about storing the contents of what the user types in a string variable then when the contents are changed to update the textbox with the new "formatted" text. Like I said... would take a little more extensive programming. Probably useful enough to store in a sub somewhere and pass a textbox control and string contents to it... allowing it to be used by ANY textbox. Will probably work on it tonite when I get home assuming no one else has solved it. Take Care, Jeff On Sun, 2008-02-03 at 17:31 -0500, =?utf-8?B?UGlyYW1peCBUZWNub2xvZ +1hcw==?= wrote: > Thanks Jeff for the code. It's useful. But would be nice to have the mask already into the text box; this way the user knows what to type there. Not only for phone numbers, could be for anything else, let's say product keys, credit card numbers, etc. Is possible or your solution is the only one available here? > Greeetings, > Pablo. > > > > > ----- Original Message ----- > > From: "Jeffrey Cobb" > > To: "mailing list for gambas users" > > Subject: Re: [Gambas-user] Formatting a TextBox > > Date: Sun, 03 Feb 2008 12:31:35 -0800 > > > > Without a little more extensive programming you may probably have to > > format the phone number when the textbox looses focus. I tried this: > > > > PUBLIC SUB TextBox1_LostFocus() > > DIM tmpStr AS String > > DIM ch AS String > > DIM i AS Integer > > > > tmpstr = "" > > > > ' ** Strip out non-numeric character > > FOR I = 1 TO Len(TextBox1.Text) > > ch = Mid(TextBox1.text, i, 1) > > IF ((ch >= "0") AND (ch <= "9")) THEN > > tmpstr = tmpStr & ch > > ENDIF > > NEXT > > > > ' ** Format the numeric string as a typcical US number > > tmpStr = "(" & Left(tmpstr, 3) & ") " & Mid(tmpStr, 4, 3) & "-" & > > Mid(tmpStr, 7) > > TextBox1.Text = tmpstr > > > > END > > > > > > On Sun, 2008-02-03 at 14:07 -0500, Piramix Tecnolog?as wrote: > > > Hi everybody. > > > I'm trying to format a TextBox so the user can enter text into > > > what I call a mask. I.e. to input a phone number it consists on > > > two parts, area code and pure number, so the mask will be like > > > this: (999)-(999-9999); note that parentheses and dashes should > > > appear in the textbox.Is this possible? How can I do that? > > > Thanks in avdance. > > > Greetings. > > > > > > Pablo. > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From gambas at ...1... Mon Feb 4 02:48:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 02:48:31 +0100 Subject: [Gambas-user] Maybe a bug in class Key of gb.gtk component In-Reply-To: <477663AA.2040205@...1237...> References: <477663AA.2040205@...1237...> Message-ID: <200802040248.31911.gambas@...1...> On samedi 29 d?cembre 2007, Leonardo Miliani wrote: > I'm using Gambas 1.9.92 on Ubuntu 7.10. > I think I had discovered a little bug in class Key of gb.gtk component. > If I try to get the code of a pressed key (using the keypress event) I > get this error: > "No keyboard event data". > > But if I build the same project with the gb.qt component, my code works > fine. > > > I can easily reproduce the bug creating a new GTK project and in the > form right-click and choose "Event/KeyPress". After that, write in the > event block this code: > message (key.code) > > Now run it.... > After that, open the Project/Properties from the menu, deselect the > gb.gtk component, select the gb.qt, and try again. I finally fixed the bug in the last revision (1057). Regards, -- Benoit Minisini From cheguebeara at ...626... Mon Feb 4 02:53:59 2008 From: cheguebeara at ...626... (Che) Date: Sun, 03 Feb 2008 20:53:59 -0500 Subject: [Gambas-user] Please work on documentation In-Reply-To: <200802041128.36630.rterry@...1822...> References: <47A2F948.90302@...1237...> <200802011400.09570.gambas@...1...> <1201884838.1789.5.camel@...1853...> <200802041128.36630.rterry@...1822...> Message-ID: <1202090040.9940.3.camel@...1835...> Add me too... After several hours of frustration I finally figured out how simple it is to set a word wrap in the Editor component... Public Sub Editor_Keypress() If Editor.Column > 80 then Editor.Insert("\n") ENDIF Simple code like that someplace would sure save time and a LOT of reinventing the wheel... Mark On Mon, 2008-02-04 at 11:28 +1100, richard terry wrote: > Add me to your list, if we form a group we can work together. May not be much > help but I'll try. > > Richard > On Sat, 2 Feb 2008 03:53:57 am Jeffrey Cobb wrote: > > I was thinking about this recently when I was browsing the documentation > > for Arrays. There was plenty explanation what they are but NOT how you > > use them. I tend to learn faster by example... so I got to thinking if > > it was possible for volunteers to be able to add code examples of how > > things are used... say an example of how THEY use that item in their > > project. > > > > It wouldn't take much time either... say about 15-30 min a day, and in a > > few months there'd be ample documentation for most functions. > > > > It isn't much and doesn't describe the item in detail but it's a start > > and gives a user a direction to go. > > > > Jeff > > > > On Fri, 2008-02-01 at 14:00 +0100, Benoit Minisini wrote: > > > On vendredi 1 f?vrier 2008, Leonardo Miliani wrote: > > > > I would ask the developing team to work on documentation before to go > > > > straight with Gambas3... please... > > > > > > > > One of the things that makes a software a _good_ software is > > > > documentation. A lot of users ask in this mailing list for the same > > > > thing: good docs. > > > > At the moment, the documentations laks in a very lot of points: things > > > > are not documentated, links are broken, some docs are old etc... > > > > > > > > I would suggest to stop development of Gambas for a couple of weeks and > > > > go completing the docs. > > > > Please please.... > > > > > > You are right, but please please be more precise, otherwise your remark > > > is useless. > > > > > > I have not enough time to do all the developments I want on Gambas. > > > Consequently I don't have the time to write more documentation. I just > > > try to document the language and all the classes I wrote, and tell other > > > developers to document their classes, even if they usually, hem, forget > > > to do that. > > > > > > But even with all classes documented, you get mainly a reference > > > documentation, not a documentation that will explain you *how* to use all > > > these classes. So many people won't be satisfied anyway. > > > > > > Maybe your prayer will improve the situation? :-) > > > > > > Regards, > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Feb 4 02:57:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 02:57:18 +0100 Subject: [Gambas-user] Sqlite and Gambas In-Reply-To: <47A453D7.9080007@...151...> References: <47A453D7.9080007@...151...> Message-ID: <200802040257.18528.gambas@...1...> On samedi 2 f?vrier 2008, andy60 wrote: > I don't understand the way to list tables of a sqlite database. For > example, it would be useful to list all the database tables in a > listbox. How to use Connection.tables? Conenction.tables returns a > virtual collection used for > managing the tables of the database. > DIM hTable AS Table FOR EACH hTable IN MyConnection.Tables PRINT hTable.Name NEXT Regards, -- Benoit Minisini From ariefbayu at ...626... Mon Feb 4 11:30:03 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 4 Feb 2008 17:30:03 +0700 Subject: [Gambas-user] No obvious way to set combo to a row in code In-Reply-To: <200802032233.30504.rterry@...1822...> References: <200802032233.30504.rterry@...1822...> Message-ID: <976ad9050802040230r588ee994r74814e1885881b22@...627...> On 2/3/08, richard terry wrote: > > None of the properties in the document seem to be applicable. > > I have saved the combo's position to a database field in my app, and want > to > re-display the data, setting the combo to the correct line. I believe combobox has add method with optional index in it's parameter. like combo.add("Drug 1", 1) is it what you want? -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From leonardo at ...1237... Mon Feb 4 12:02:56 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 04 Feb 2008 12:02:56 +0100 Subject: [Gambas-user] Problem with boolean values in a class file In-Reply-To: <200802040814.08563.rterry@...1822...> References: <200802040814.08563.rterry@...1822...> Message-ID: <47A6F0E0.1050607@...1237...> I think that the TRUE and FALSE constants in Gambas aren't "true" boolean values. Try to convert them in real bool values with *CBool* before to store them in your DB, i.e.: > currentAddress preferred_address = *CBool*(chkpreferredAddress.value) > currentAddress postal_address = *CBool*(chkPostalAddress.value) > currentAddress .HeadOffice = FALSE (which I want to be false here) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From leonardo at ...1237... Mon Feb 4 12:13:34 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 04 Feb 2008 12:13:34 +0100 Subject: [Gambas-user] Maybe a bug in class Key of gb.gtk component In-Reply-To: <200802040248.31911.gambas@...1...> References: <477663AA.2040205@...1237...> <200802040248.31911.gambas@...1...> Message-ID: <47A6F35E.7010207@...1237...> Benoit Minisini ha scritto: > On samedi 29 d?cembre 2007, Leonardo Miliani wrote: >> I'm using Gambas 1.9.92 on Ubuntu 7.10. >> I think I had discovered a little bug in class Key of gb.gtk component. >> If I try to get the code of a pressed key (using the keypress event) I >> get this error: >> "No keyboard event data". >> >> But if I build the same project with the gb.qt component, my code works >> fine. >> >> >> I can easily reproduce the bug creating a new GTK project and in the >> form right-click and choose "Event/KeyPress". After that, write in the >> event block this code: >> message (key.code) >> >> Now run it.... >> After that, open the Project/Properties from the menu, deselect the >> gb.gtk component, select the gb.qt, and try again. > > I finally fixed the bug in the last revision (1057). > > Regards, > Thanks a lot. I'll try it. Any news about the problem of the sys-tray icon on Gnome? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From maximvonk at ...626... Mon Feb 4 12:31:05 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 4 Feb 2008 03:31:05 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802040027.00205.gambas@...1...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> Message-ID: <15266252.post@...1379...> >Can you compare the .desktop file created by the package and the second one? > >-- >Benoit Minisini For sure. I have copied both to the desktop, and checked the properties of both. Aside from the icon the two are identical, since I copied the details from the installed one. The only actual difference appears to be the icon, which is different in the one that I created. The installed version shows at 352 bytes while the created version shows at 325 bytes. I'm assuming that difference is the difference between the icons. Other than that there appears to be no difference between them at all. Regards Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15266252.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Mon Feb 4 13:09:27 2008 From: nando_f at ...951... (nando) Date: Mon, 4 Feb 2008 07:09:27 -0500 Subject: [Gambas-user] Sqlite and Gambas In-Reply-To: <47A453D7.9080007@...151...> References: <47A453D7.9080007@...151...> Message-ID: <20080204120700.M78897@...951...> In mySQL you would do the following SQL (I do not know specifics of sqlite) 'SHOW TABLES;' returns a record set of table names 'EXPLAIN table1;' return a record set that explains table named table1 -Fernando ---------- Original Message ----------- From: andy60 To: gambas-user at lists.sourceforge.net Sent: Sat, 02 Feb 2008 12:28:23 +0100 Subject: [Gambas-user] Sqlite and Gambas > I don't understand the way to list tables of a sqlite database. For > example, it would be useful to list all the database tables in a > listbox. How to use Connection.tables? Conenction.tables returns a > virtual collection used for > managing the tables of the database. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From m0e.lnx at ...626... Mon Feb 4 16:15:09 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 4 Feb 2008 09:15:09 -0600 Subject: [Gambas-user] Monitoring a process... Need help Message-ID: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> I'm trying to write a function to execute several shell commands in a given order. For instance, extract a compressed tarball, and then cd to it's extracted dir, and do "ls -al" Basically, what I want to do is execute several shell commands. I want to use One process for all shell commands instead of using one process for each command. I want to use one timer to monitor this one process... and as soon as it reports a Process.Stopped event, do some error checking, and if passed, execute the second command using the same Process variable i defined. The module file looks like this MdlShell Public hShellProc as Process Public iMdlStep as integer PUBLIC FUNCTION Extract(sPath as string, iFuncStep) DIM ShellLine as string ' The following commands will be triggered from a timer event in another form SELECT CASE iFuncStep CASE 0 ' First step ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" CASE 1 ' Second step shellLine = "cd /tmp && ls -a || echo \'ERROR\'" ' And the list would continue here END SELECT hShellProc = shell ShellLine for read ' execute the selected command iMdlStep = iFunctStep ' Make the last step available publically On a separate form, I have a timer setup. On this timer setup... on it's timer event I have this TmShellMon_timer() If MdlShell.hShellProc.State = Process.Stopped then Me.TmShellMon.Enabled = false ' Do some error checking here if instr(sBuffer, "ERROR") > 0 then STOP EVENT Else ' If no error is found then execute this SELECT CASE MdlShell.iMdlStep CASE 0 ' First step has ran... trigger next MdlShell.Extract(sPath, 1) CASE 1 ' Trigger 3rd step MdlShell.Extract(sPath, 2) ' And so on.... END SELECT END IF END IF The problem With this is... for some reason it's not monitoring the process right... It's triggering a lot of the lines in the wrong sequence... Can anyone think of a way to fix this or a better way to do this? Please help From gambas at ...1... Mon Feb 4 16:38:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 16:38:36 +0100 Subject: [Gambas-user] Maybe a bug in class Key of gb.gtk component In-Reply-To: <47A6F35E.7010207@...1237...> References: <477663AA.2040205@...1237...> <200802040248.31911.gambas@...1...> <47A6F35E.7010207@...1237...> Message-ID: <200802041638.36708.gambas@...1...> On lundi 4 f?vrier 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > On samedi 29 d?cembre 2007, Leonardo Miliani wrote: > >> I'm using Gambas 1.9.92 on Ubuntu 7.10. > >> I think I had discovered a little bug in class Key of gb.gtk component. > >> If I try to get the code of a pressed key (using the keypress event) I > >> get this error: > >> "No keyboard event data". > >> > >> But if I build the same project with the gb.qt component, my code works > >> fine. > >> > >> > >> I can easily reproduce the bug creating a new GTK project and in the > >> form right-click and choose "Event/KeyPress". After that, write in the > >> event block this code: > >> message (key.code) > >> > >> Now run it.... > >> After that, open the Project/Properties from the menu, deselect the > >> gb.gtk component, select the gb.qt, and try again. > > > > I finally fixed the bug in the last revision (1057). > > > > Regards, > > Thanks a lot. I'll try it. > Any news about the problem of the sys-tray icon on Gnome? It's a later post on the mailing-list, I didn't arrive until it yet. :-) -- Benoit Minisini From gambas at ...1... Mon Feb 4 16:40:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 16:40:25 +0100 Subject: [Gambas-user] Problem with boolean values in a class file In-Reply-To: <47A6F0E0.1050607@...1237...> References: <200802040814.08563.rterry@...1822...> <47A6F0E0.1050607@...1237...> Message-ID: <200802041640.25809.gambas@...1...> On lundi 4 f?vrier 2008, Leonardo Miliani wrote: > I think that the TRUE and FALSE constants in Gambas aren't "true" > boolean values. > Try to convert them in real bool values with *CBool* before to store > > them in your DB, i.e.: > > currentAddress preferred_address = *CBool*(chkpreferredAddress.value) > > currentAddress postal_address = *CBool*(chkPostalAddress.value) > > currentAddress .HeadOffice = FALSE (which I want to be false here) TRUE and FALSE are "true" boolean values, what else could they be? But the CheckBox.Value property is an integer, not a boolean. Regards, -- Benoit Minisini From gambas at ...1... Mon Feb 4 16:46:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 16:46:03 +0100 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> Message-ID: <200802041646.03446.gambas@...1...> On lundi 4 f?vrier 2008, M0E Lnx wrote: > I'm trying to write a function to execute several shell commands in a > given order. For instance, extract a compressed tarball, and then cd > to it's extracted dir, and do "ls -al" > > Basically, what I want to do is execute several shell commands. > I want to use One process for all shell commands instead of using one > process for each command. > I want to use one timer to monitor this one process... and as soon as > it reports a Process.Stopped event, do some error checking, and if > passed, execute the second command using the same Process variable i > defined. > > The module file looks like this > > MdlShell > Public hShellProc as Process > Public iMdlStep as integer > PUBLIC FUNCTION Extract(sPath as string, iFuncStep) > > DIM ShellLine as string > > ' The following commands will be triggered from a timer event in another > form > > SELECT CASE iFuncStep > CASE 0 ' First step > ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" > > CASE 1 ' Second step > shellLine = "cd /tmp && ls -a || echo \'ERROR\'" > > ' And the list would continue here > > END SELECT > > hShellProc = shell ShellLine for read ' execute the selected command > iMdlStep = iFunctStep ' Make the last step available publically > > On a separate form, I have a timer setup. > On this timer setup... on it's timer event I have this > > TmShellMon_timer() > > > If MdlShell.hShellProc.State = Process.Stopped then > Me.TmShellMon.Enabled = false > ' Do some error checking here > if instr(sBuffer, "ERROR") > 0 then > STOP EVENT > Else > > ' If no error is found then execute this > SELECT CASE MdlShell.iMdlStep > > CASE 0 ' First step has ran... trigger next > MdlShell.Extract(sPath, 1) > CASE 1 ' Trigger 3rd step > MdlShell.Extract(sPath, 2) > ' And so on.... > END SELECT > END IF > END IF > > The problem With this is... for some reason it's not monitoring the > process right... It's triggering a lot of the lines in the wrong > sequence... > > Can anyone think of a way to fix this or a better way to do this? > Please help > As you don't give all your code, we can't guess what happens exactly. Anyway, a few remarks: - You always use one different process for each command, even if you store it in the same variable. - To know when a process has stopped, you should use the "Kill" event, not a timer. - STOP EVENT does nothing in a timer event. -- Benoit Minisini From m0e.lnx at ...626... Mon Feb 4 16:52:41 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 4 Feb 2008 09:52:41 -0600 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <200802041646.03446.gambas@...1...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <200802041646.03446.gambas@...1...> Message-ID: <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> Yes I know... the code is now all messed up... I've been thinking this over and over... But it seems to me that I *should* be able to define one process, and run a bunch of shell commands via that one process. About your remarks... how do I tell it to trigger something when the process is done running? do I use the hShellProc_kill() event?... And do you mean that if I do that, I dont need a timer? The reason I ask is because it is not yet very clear to me... I thought you use the "Kill" to actually termintate a process, and it was my understanding that a process would returned a "Process.Stopped" property when it was done running... Please correct me if I'm wrong. On Feb 4, 2008 9:46 AM, Benoit Minisini wrote: > > On lundi 4 f?vrier 2008, M0E Lnx wrote: > > I'm trying to write a function to execute several shell commands in a > > given order. For instance, extract a compressed tarball, and then cd > > to it's extracted dir, and do "ls -al" > > > > Basically, what I want to do is execute several shell commands. > > I want to use One process for all shell commands instead of using one > > process for each command. > > I want to use one timer to monitor this one process... and as soon as > > it reports a Process.Stopped event, do some error checking, and if > > passed, execute the second command using the same Process variable i > > defined. > > > > The module file looks like this > > > > MdlShell > > Public hShellProc as Process > > Public iMdlStep as integer > > PUBLIC FUNCTION Extract(sPath as string, iFuncStep) > > > > DIM ShellLine as string > > > > ' The following commands will be triggered from a timer event in another > > form > > > > SELECT CASE iFuncStep > > CASE 0 ' First step > > ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" > > > > CASE 1 ' Second step > > shellLine = "cd /tmp && ls -a || echo \'ERROR\'" > > > > ' And the list would continue here > > > > END SELECT > > > > hShellProc = shell ShellLine for read ' execute the selected command > > iMdlStep = iFunctStep ' Make the last step available publically > > > > On a separate form, I have a timer setup. > > On this timer setup... on it's timer event I have this > > > > TmShellMon_timer() > > > > > > If MdlShell.hShellProc.State = Process.Stopped then > > Me.TmShellMon.Enabled = false > > ' Do some error checking here > > if instr(sBuffer, "ERROR") > 0 then > > STOP EVENT > > Else > > > > ' If no error is found then execute this > > SELECT CASE MdlShell.iMdlStep > > > > CASE 0 ' First step has ran... trigger next > > MdlShell.Extract(sPath, 1) > > CASE 1 ' Trigger 3rd step > > MdlShell.Extract(sPath, 2) > > ' And so on.... > > END SELECT > > END IF > > END IF > > > > The problem With this is... for some reason it's not monitoring the > > process right... It's triggering a lot of the lines in the wrong > > sequence... > > > > Can anyone think of a way to fix this or a better way to do this? > > Please help > > > > As you don't give all your code, we can't guess what happens exactly. > > Anyway, a few remarks: > > - You always use one different process for each command, even if you store it > in the same variable. > > - To know when a process has stopped, you should use the "Kill" event, not a > timer. > > - STOP EVENT does nothing in a timer event. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Mon Feb 4 17:22:33 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 4 Feb 2008 17:22:33 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15266252.post@...1379...> References: <15253495.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> Message-ID: <200802041722.33192.ronstk@...239...> On Monday 04 February 2008 12:31, MaxVK wrote: > > >Can you compare the .desktop file created by the package and the second one? > > > >-- > >Benoit Minisini > > For sure. I have copied both to the desktop, and checked the properties of > both. Aside from the icon the two are identical, since I copied the details > from the installed one. The only actual difference appears to be the icon, > which is different in the one that I created. The installed version shows at > 352 bytes while the created version shows at 325 bytes. I'm assuming that > difference is the difference between the icons. > > Other than that there appears to be no difference between them at all. > > Regards > > Max And the exact difference for the icon key in full text ???? The file length is not interesting. Ron From leonardo at ...1237... Mon Feb 4 17:37:48 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 04 Feb 2008 17:37:48 +0100 Subject: [Gambas-user] Problem with boolean values in a class file In-Reply-To: <200802041640.25809.gambas@...1...> References: <200802040814.08563.rterry@...1822...> <47A6F0E0.1050607@...1237...> <200802041640.25809.gambas@...1...> Message-ID: <47A73F5C.6080306@...1237...> Benoit Minisini ha scritto: > On lundi 4 f?vrier 2008, Leonardo Miliani wrote: >> I think that the TRUE and FALSE constants in Gambas aren't "true" >> boolean values. >> Try to convert them in real bool values with *CBool* before to store >> >> them in your DB, i.e.: >>> currentAddress preferred_address = *CBool*(chkpreferredAddress.value) >>> currentAddress postal_address = *CBool*(chkPostalAddress.value) >>> currentAddress .HeadOffice = FALSE (which I want to be false here) > > TRUE and FALSE are "true" boolean values, what else could they be? But the > CheckBox.Value property is an integer, not a boolean. I'm sorry... Only when I had just sended my post I realized that I didn't complete my phrase: I would refer to Gambas CheckBoxes, not just to the Gambas language itself.... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From nxgtrturbo at ...626... Mon Feb 4 19:06:51 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 4 Feb 2008 10:06:51 -0800 Subject: [Gambas-user] Rex3: Invalid Value, Null Object (steps) Message-ID: <688afe140802041006l4d5c628h50f36df014ab6427@...627...> >The 'creabd11' file you sent me just create all the tables, but there is no >data in any table except one user and one 'puestos' (I don't know what it >is). What should I do exactly to reproduce the bug? >-- >Benoit Minisini Sorry for the late reply. (I was out of the city) This are the steps: 1. If you don't want to modify a line of code, the database name should be "arpi" 2. Then create the structure with the script 3. Run the app, in the login area, everything is "default setup" to only thing you need to change is user ("usuario") and password ("clave") for your MySQL server (localhost for me). 4. Then I remove any other button at main screen for easily goal, you just click the only button there it says "Asistencia" 5. Then you have a new window, then type a valid year (any you want) like 2008 in the field "A?o" 6. Now, here comes the problem, the Tabs "Enero" (january) and "Diciembre" (december) thats the ones that has problem, just try to record and read values from them. The datacontrols point to a INT field, so, for our goal the "logic" doesn't matter, any INT valid value should work. If you are in "Enero" when you want to save what you typed you will get a "Null object" error. If you are in "Diciembre" you can save to the database, but you cant read. Notice: if you don't write the year first you will get an error (my fault), the app is still under development process, I am going to validate that later. -- Nx GT-R From m0e.lnx at ...626... Mon Feb 4 19:40:53 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 4 Feb 2008 12:40:53 -0600 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <200802041646.03446.gambas@...1...> <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> Message-ID: <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> Ok.. Been playing with this some more... an I can't help wondering.... Why should this not work? MdlShellTest.Module PUBLIC hShellProc as process PUBLIC iStage as integer PUBLIC sBuffer PUBLIC FUNCTION sSysShell(sDir as string, iStep as integer) DIM sShellLine as string SELECT CASE iStep CASE 0 sShellLine = "cd " & sDir & " || echo \'ERROR\'" CASE 1 sShellLine = "ls -al " & sDir & " || echo \'ERROR\'" ' OTHER CASES HERE END SELECT hShellProc = SHELL sShellLine to sBuffer iStage = iStep ' Update the publically visible stage here. END PUBLIC SUB Process_kill() IF Instr(MdlShellTest.sBuffer, "ERROR") > 0 then ' Something went wrong during one of the shell commands STOP EVENT ' Not sure this does anything here ELSE SELECT CASE MdlShellTest.iStage CASE 0 MdlShellTest.sSysShell(sDir, 1) ' Trigger the next command END SELECT END IF END Is there a reason something liek that wouldn't work? SELECT CASE MdlShellTest.iStage END On Feb 4, 2008 9:52 AM, M0E Lnx wrote: > Yes I know... the code is now all messed up... I've been thinking this > over and over... > But it seems to me that I *should* be able to define one process, and > run a bunch of shell commands via that one process. > > About your remarks... how do I tell it to trigger something when the > process is done running? > do I use the hShellProc_kill() event?... > And do you mean that if I do that, I dont need a timer? > > The reason I ask is because it is not yet very clear to me... I > thought you use the "Kill" to actually termintate a process, and it > was my understanding that a process would returned a "Process.Stopped" > property when it was done running... > > Please correct me if I'm wrong. > > > > > On Feb 4, 2008 9:46 AM, Benoit Minisini wrote: > > > > On lundi 4 f?vrier 2008, M0E Lnx wrote: > > > I'm trying to write a function to execute several shell commands in a > > > given order. For instance, extract a compressed tarball, and then cd > > > to it's extracted dir, and do "ls -al" > > > > > > Basically, what I want to do is execute several shell commands. > > > I want to use One process for all shell commands instead of using one > > > process for each command. > > > I want to use one timer to monitor this one process... and as soon as > > > it reports a Process.Stopped event, do some error checking, and if > > > passed, execute the second command using the same Process variable i > > > defined. > > > > > > The module file looks like this > > > > > > MdlShell > > > Public hShellProc as Process > > > Public iMdlStep as integer > > > PUBLIC FUNCTION Extract(sPath as string, iFuncStep) > > > > > > DIM ShellLine as string > > > > > > ' The following commands will be triggered from a timer event in another > > > form > > > > > > SELECT CASE iFuncStep > > > CASE 0 ' First step > > > ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" > > > > > > CASE 1 ' Second step > > > shellLine = "cd /tmp && ls -a || echo \'ERROR\'" > > > > > > ' And the list would continue here > > > > > > END SELECT > > > > > > hShellProc = shell ShellLine for read ' execute the selected command > > > iMdlStep = iFunctStep ' Make the last step available publically > > > > > > On a separate form, I have a timer setup. > > > On this timer setup... on it's timer event I have this > > > > > > TmShellMon_timer() > > > > > > > > > If MdlShell.hShellProc.State = Process.Stopped then > > > Me.TmShellMon.Enabled = false > > > ' Do some error checking here > > > if instr(sBuffer, "ERROR") > 0 then > > > STOP EVENT > > > Else > > > > > > ' If no error is found then execute this > > > SELECT CASE MdlShell.iMdlStep > > > > > > CASE 0 ' First step has ran... trigger next > > > MdlShell.Extract(sPath, 1) > > > CASE 1 ' Trigger 3rd step > > > MdlShell.Extract(sPath, 2) > > > ' And so on.... > > > END SELECT > > > END IF > > > END IF > > > > > > The problem With this is... for some reason it's not monitoring the > > > process right... It's triggering a lot of the lines in the wrong > > > sequence... > > > > > > Can anyone think of a way to fix this or a better way to do this? > > > Please help > > > > > > > As you don't give all your code, we can't guess what happens exactly. > > > > Anyway, a few remarks: > > > > - You always use one different process for each command, even if you store it > > in the same variable. > > > > - To know when a process has stopped, you should use the "Kill" event, not a > > timer. > > > > - STOP EVENT does nothing in a timer event. > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From maximvonk at ...626... Mon Feb 4 20:05:22 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 4 Feb 2008 11:05:22 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802041722.33192.ronstk@...239...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> <200802041722.33192.ronstk@...239...> Message-ID: <15273838.post@...1379...> >And the exact difference for the icon key in full text ???? >The file length is not interesting. > >Ron Sorry Ron, but I cant seem to find the file for the menu item I created. I found the file for the installed version in /usr/shared/menu, but the one I created is not there. Do you have any idea where it might be stored in Ubuntu? Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15273838.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Feb 4 20:30:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 20:30:00 +0100 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> Message-ID: <200802042030.00726.gambas@...1...> On lundi 4 f?vrier 2008, M0E Lnx wrote: > Ok.. Been playing with this some more... an I can't help wondering.... > Why should this not work? > This should work, but without seing all your code, I can't guess what happens. -- Benoit Minisini From m0e.lnx at ...626... Mon Feb 4 20:57:56 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 4 Feb 2008 13:57:56 -0600 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <200802042030.00726.gambas@...1...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> <200802042030.00726.gambas@...1...> Message-ID: <1f1e8c1b0802041157m7f3ea910wfca2f34f4e77da2d@...627...> Ok.. I managed to get it written in a better-looking sort of shape Here is the link to the module http://code.google.com/p/vpackager/source/browse/branches/1.0.11/trunk/MdlBuild.module It seems to work, however, it's triggering the events in the wrong order... Seems to me like it decides to trigger step 2 before step1 or while step1 is still in progress. Let me know if that helps. On Feb 4, 2008 1:30 PM, Benoit Minisini wrote: > On lundi 4 f?vrier 2008, M0E Lnx wrote: > > Ok.. Been playing with this some more... an I can't help wondering.... > > Why should this not work? > > > > This should work, but without seing all your code, I can't guess what happens. > > -- > > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From horechuk at ...981... Mon Feb 4 21:46:31 2008 From: horechuk at ...981... (Paul Horechuk) Date: Mon, 4 Feb 2008 15:46:31 -0500 Subject: [Gambas-user] FreeBSD changes Message-ID: <200802041546.31888.horechuk@...981...> I've downloaded the svn for the 2.0.5 trunk. (version 1057). I'm using FreeBSD 6.2 on i386. The reconf-all did the usual warnings abour underquoting. I'm not worrying about that. configure -C did pose a problem. It complained about several components that would not be included. The important ones, for now, are gb.qt and gb.qt.kde. Looking through the configure.ac files, I find that there is a line where it searches for libqt-mt.so.3, but /usr/local/lib is not in the search path. This is the standard path for FreeBSD. I tried to add this to the search path, but it may have failed on another similar search. Is there a better place to put this? I have /usr/local/lib/libqt-mt.so.3, /usr/local/lib/GL/gl.h, /usr/local/lib/GL/glu.h, etc. -- Paul Horechuk Think Free Use Open Source Software ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From gambas at ...1... Mon Feb 4 21:59:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 21:59:41 +0100 Subject: [Gambas-user] FreeBSD changes In-Reply-To: <200802041546.31888.horechuk@...981...> References: <200802041546.31888.horechuk@...981...> Message-ID: <200802042159.41519.gambas@...1...> On lundi 4 f?vrier 2008, Paul Horechuk wrote: > I've downloaded the svn for the 2.0.5 trunk. (version 1057). > I'm using FreeBSD 6.2 on i386. The reconf-all did the usual warnings abour > underquoting. I'm not worrying about that. configure -C did pose a problem. > It complained about several components that would not be included. The > important ones, for now, are gb.qt and gb.qt.kde. Looking through the > configure.ac files, I find that there is a line where it searches for > libqt-mt.so.3, but /usr/local/lib is not in the search path. This is the > standard path for FreeBSD. I tried to add this to the search path, but it > may have failed on another similar search. Is there a better place to put > this? > > I > have /usr/local/lib/libqt-mt.so.3, /usr/local/lib/GL/gl.h, > /usr/local/lib/GL/glu.h, etc. I will add the missing paths to the search list. Then you should send me a full list of all directories that are not in the search list of each component configure.ac file, so that I can fix them all. Regards, -- Benoit Minisini From thierry at ...342... Mon Feb 4 22:06:21 2008 From: thierry at ...342... (Thierry Thomas) Date: Mon, 4 Feb 2008 22:06:21 +0100 Subject: [Gambas-user] FreeBSD changes In-Reply-To: <200802042159.41519.gambas@...1...> References: <200802041546.31888.horechuk@...981...> <200802042159.41519.gambas@...1...> Message-ID: <20080204210621.GB13554@...343...> Le Lun 4 f?v 08 ? 21:59:41 +0100, Benoit Minisini ?crivait?: > I will add the missing paths to the search list. > > Then you should send me a full list of all directories that are not in the > search list of each component configure.ac file, so that I can fix them all. I've some patches to make it build cleanly, but I cannot use it: it always fails in debug mode. -- Th. Thomas. From rterry at ...1822... Mon Feb 4 22:27:48 2008 From: rterry at ...1822... (richard terry) Date: Tue, 5 Feb 2008 08:27:48 +1100 Subject: [Gambas-user] Problem with boolean values in a class file In-Reply-To: <200802041640.25809.gambas@...1...> References: <200802040814.08563.rterry@...1822...> <47A6F0E0.1050607@...1237...> <200802041640.25809.gambas@...1...> Message-ID: <200802050827.48778.rterry@...1822...> On Tue, 5 Feb 2008 02:40:25 am Benoit Minisini wrote: > On lundi 4 f?vrier 2008, Leonardo Miliani wrote: > > I think that the TRUE and FALSE constants in Gambas aren't "true" > > boolean values. > > Try to convert them in real bool values with *CBool* before to store > > > > them in your DB, i.e.: > > > currentAddress preferred_address = *CBool*(chkpreferredAddress.value) > > > currentAddress postal_address = *CBool*(chkPostalAddress.value) > > > currentAddress .HeadOffice = FALSE (which I want to be false here) > > TRUE and FALSE are "true" boolean values, what else could they be? But the > CheckBox.Value property is an integer, not a boolean. > > Regards, Changed the code as suggested: The resultant query once passed to postgres becomes: INSERT INTO contacts.data_addresses (street, fk_town, fk_type, postal_address,country_code) VALUES ('1 street', 780, 1, T, 'AU') ; and postgres objects with: ERROR: column "t" does not exist LINE 2: VALUES ('1 street', 780, 1, T, 'AU') ; If I manually in PGADMIN paste the query as I have above from the console, and change the T to a TRUE: INSERT INTO contacts.data_addresses (street, fk_town, fk_type, postal_address,country_code) VALUES ('1 street', 780, 1, TRUE, 'AU') ; Then the query executes ok. Similarly the FALSE ends up in the query as nothing , , Any more ideas Richard From nando_f at ...951... Mon Feb 4 22:33:52 2008 From: nando_f at ...951... (nando) Date: Mon, 4 Feb 2008 16:33:52 -0500 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <200802041646.03446.gambas@...1...> <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> Message-ID: <20080204211621.M30405@...951...> I may suggest the following: There are 3 parts: PART 1: This is to do your script in the background so your Gambas program still responds... a) Write all the shell script lines into one script file. This file could be created dynamically in Gambas just before the script is to run b) Make the last line in the script is the shell command to remove the directory that Gambas makes just before the SHELL command (see below) PART 2: in Gambas.. TRY MKDIR unique directory 'this is our home-make signal that the script is running SHELL "the script file &" 'this will start running in the background Timer1.Delay = 1000 Timer1.Enable 'use Timer1 to see if that unique directory is exists of not. 'if it still exists, then the SHELL is still running. 'When Timer1 find the directory is gone, the script is done 'delete the file (in Gambas) if you choose a dynamic script. 'then you can continue on with what you want to do. PART 3: Inside TIMER1 code: PUBLIC SUB TIMER1() IF ISDIR (unique directory that was created) = TRUE then RETURN 'shell still working. TIMER1.ENABLE=FALSE 'shell done, turn timer off (Code here to do something with results from shell) END -Fernando ---------- Original Message ----------- From: "M0E Lnx" To: "mailing list for gambas users" Sent: Mon, 4 Feb 2008 12:40:53 -0600 Subject: Re: [Gambas-user] Monitoring a process... Need help > Ok.. Been playing with this some more... an I can't help wondering.... > Why should this not work? > > MdlShellTest.Module > > PUBLIC hShellProc as process > PUBLIC iStage as integer > PUBLIC sBuffer > > PUBLIC FUNCTION sSysShell(sDir as string, iStep as integer) > DIM sShellLine as string > > SELECT CASE iStep > CASE 0 > sShellLine = "cd " & sDir & " || echo \'ERROR\'" > CASE 1 > sShellLine = "ls -al " & sDir & " || echo \'ERROR\'" > ' OTHER CASES HERE > END SELECT > > hShellProc = SHELL sShellLine to sBuffer > iStage = iStep ' Update the publically visible stage here. > END > > PUBLIC SUB Process_kill() > > IF Instr(MdlShellTest.sBuffer, "ERROR") > 0 then > ' Something went wrong during one of the shell commands > STOP EVENT ' Not sure this does anything here > ELSE > SELECT CASE MdlShellTest.iStage > CASE 0 > MdlShellTest.sSysShell(sDir, 1) ' Trigger the next command > END SELECT > END IF > END > > Is there a reason something liek that wouldn't work? > > SELECT CASE MdlShellTest.iStage > > END > > On Feb 4, 2008 9:52 AM, M0E Lnx wrote: > > Yes I know... the code is now all messed up... I've been thinking this > > over and over... > > But it seems to me that I *should* be able to define one process, and > > run a bunch of shell commands via that one process. > > > > About your remarks... how do I tell it to trigger something when the > > process is done running? > > do I use the hShellProc_kill() event?... > > And do you mean that if I do that, I dont need a timer? > > > > The reason I ask is because it is not yet very clear to me... I > > thought you use the "Kill" to actually termintate a process, and it > > was my understanding that a process would returned a "Process.Stopped" > > property when it was done running... > > > > Please correct me if I'm wrong. > > > > > > > > > > On Feb 4, 2008 9:46 AM, Benoit Minisini wrote: > > > > > > On lundi 4 f?vrier 2008, M0E Lnx wrote: > > > > I'm trying to write a function to execute several shell commands in a > > > > given order. For instance, extract a compressed tarball, and then cd > > > > to it's extracted dir, and do "ls -al" > > > > > > > > Basically, what I want to do is execute several shell commands. > > > > I want to use One process for all shell commands instead of using one > > > > process for each command. > > > > I want to use one timer to monitor this one process... and as soon as > > > > it reports a Process.Stopped event, do some error checking, and if > > > > passed, execute the second command using the same Process variable i > > > > defined. > > > > > > > > The module file looks like this > > > > > > > > MdlShell > > > > Public hShellProc as Process > > > > Public iMdlStep as integer > > > > PUBLIC FUNCTION Extract(sPath as string, iFuncStep) > > > > > > > > DIM ShellLine as string > > > > > > > > ' The following commands will be triggered from a timer event in another > > > > form > > > > > > > > SELECT CASE iFuncStep > > > > CASE 0 ' First step > > > > ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" > > > > > > > > CASE 1 ' Second step > > > > shellLine = "cd /tmp && ls -a || echo \'ERROR\'" > > > > > > > > ' And the list would continue here > > > > > > > > END SELECT > > > > > > > > hShellProc = shell ShellLine for read ' execute the selected command > > > > iMdlStep = iFunctStep ' Make the last step available publically > > > > > > > > On a separate form, I have a timer setup. > > > > On this timer setup... on it's timer event I have this > > > > > > > > TmShellMon_timer() > > > > > > > > > > > > If MdlShell.hShellProc.State = Process.Stopped then > > > > Me.TmShellMon.Enabled = false > > > > ' Do some error checking here > > > > if instr(sBuffer, "ERROR") > 0 then > > > > STOP EVENT > > > > Else > > > > > > > > ' If no error is found then execute this > > > > SELECT CASE MdlShell.iMdlStep > > > > > > > > CASE 0 ' First step has ran... trigger next > > > > MdlShell.Extract(sPath, 1) > > > > CASE 1 ' Trigger 3rd step > > > > MdlShell.Extract(sPath, 2) > > > > ' And so on.... > > > > END SELECT > > > > END IF > > > > END IF > > > > > > > > The problem With this is... for some reason it's not monitoring the > > > > process right... It's triggering a lot of the lines in the wrong > > > > sequence... > > > > > > > > Can anyone think of a way to fix this or a better way to do this? > > > > Please help > > > > > > > > > > As you don't give all your code, we can't guess what happens exactly. > > > > > > Anyway, a few remarks: > > > > > > - You always use one different process for each command, even if you store it > > > in the same variable. > > > > > > - To know when a process has stopped, you should use the "Kill" event, not a > > > timer. > > > > > > - STOP EVENT does nothing in a timer event. > > > > > > -- > > > Benoit Minisini > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rterry at ...1822... Mon Feb 4 22:43:28 2008 From: rterry at ...1822... (richard terry) Date: Tue, 5 Feb 2008 08:43:28 +1100 Subject: [Gambas-user] How to find which row you are on in multicolumn list Message-ID: <200802050843.28944.rterry@...1822...> Yes, I do try, I've stuffed around with this for over an hour, really really did read the docs. All I want to do is to detect which row is being clicked on in the list and despite having all these things to play with below cut and pasted and out of order from the doc's, I can't figure it out: ================================================= Properties Methods Events AutoResize Available Border ClientH ClientHeight ClientW ClientWidth Columns Compare Count Current Editable Header Item Key Mode Resizable ScrollBar Settings Sorted Add Clear Exist Find MoveAbove MoveBack MoveBelow MoveChild MoveCurrent MoveFirst MoveLast MoveNext MoveParent MovePrevious MoveTo Remove SelectAll Activate Cancel Click Collapse Compare Expand Rename Select ================================================== When one puts in data it goes in in the form of row,col cvPerson[irows][0] = $Result!surname cvPerson[irows][1] = $Result!firstname I want when I later click on a row to be able to get the 'irows' equivalent integer back again. Sorry for being so............. dumb. Richard From m0e.lnx at ...626... Mon Feb 4 22:44:47 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 4 Feb 2008 15:44:47 -0600 Subject: [Gambas-user] Monitoring a process... Need help In-Reply-To: <20080204211621.M30405@...951...> References: <1f1e8c1b0802040715if0cf887k34de298d15054fd8@...627...> <200802041646.03446.gambas@...1...> <1f1e8c1b0802040752s479f9986o81b6c8a698f4b203@...627...> <1f1e8c1b0802041040r26f7dfd5ve435684f4149c408@...627...> <20080204211621.M30405@...951...> Message-ID: <1f1e8c1b0802041344g3d2ac5c8h67c1c493ad2c7743@...627...> Nando, thanks for your suggestion. A while back, I had this application working in a similar model... where my bash commands were handled by a bash script... but it's kind of hard to have control over the gambas GUI when done that way. That's the reason, I decided to move it over to as much gambas code as I can.. After playing with it for a bit more, I found a solution... It seems I was triggering the process one (1) time from the wrong spot... 'cuz I was using the same process to untar the source, then it would guess what type of source it is, and then try to run another shell command. Well, that would cause it to trigger the shell commands in the wrong sequence. I had most of it right... Just needed to move a couple of things around Here is the changes http://code.google.com/p/vpackager/source/diff?r=260&format=side&path=/branches/1.0.11/trunk/MdlBuild.module Thanks for the help guys On Feb 4, 2008 3:33 PM, nando wrote: > I may suggest the following: > > There are 3 parts: > > PART 1: > This is to do your script in the background so your Gambas program still responds... > > a) Write all the shell script lines into one script file. > This file could be created dynamically in Gambas just before the script is to run > b) Make the last line in the script is the shell command to remove the directory > that Gambas makes just before the SHELL command (see below) > > PART 2: > in Gambas.. > > TRY MKDIR unique directory 'this is our home-make signal that the script is running > SHELL "the script file &" 'this will start running in the background > Timer1.Delay = 1000 > Timer1.Enable 'use Timer1 to see if that unique directory is exists of not. > 'if it still exists, then the SHELL is still running. > 'When Timer1 find the directory is gone, the script is done > 'delete the file (in Gambas) if you choose a dynamic script. > 'then you can continue on with what you want to do. > > PART 3: > Inside TIMER1 code: > > PUBLIC SUB TIMER1() > > IF ISDIR (unique directory that was created) = TRUE then RETURN 'shell still working. > > TIMER1.ENABLE=FALSE 'shell done, turn timer off > (Code here to do something with results from shell) > > END > > -Fernando > > > > > > ---------- Original Message ----------- > From: "M0E Lnx" > To: "mailing list for gambas users" > Sent: Mon, 4 Feb 2008 12:40:53 -0600 > Subject: Re: [Gambas-user] Monitoring a process... Need help > > > Ok.. Been playing with this some more... an I can't help wondering.... > > Why should this not work? > > > > MdlShellTest.Module > > > > PUBLIC hShellProc as process > > PUBLIC iStage as integer > > PUBLIC sBuffer > > > > PUBLIC FUNCTION sSysShell(sDir as string, iStep as integer) > > DIM sShellLine as string > > > > SELECT CASE iStep > > CASE 0 > > sShellLine = "cd " & sDir & " || echo \'ERROR\'" > > CASE 1 > > sShellLine = "ls -al " & sDir & " || echo \'ERROR\'" > > ' OTHER CASES HERE > > END SELECT > > > > hShellProc = SHELL sShellLine to sBuffer > > iStage = iStep ' Update the publically visible stage here. > > END > > > > PUBLIC SUB Process_kill() > > > > IF Instr(MdlShellTest.sBuffer, "ERROR") > 0 then > > ' Something went wrong during one of the shell commands > > STOP EVENT ' Not sure this does anything here > > ELSE > > SELECT CASE MdlShellTest.iStage > > CASE 0 > > MdlShellTest.sSysShell(sDir, 1) ' Trigger the next command > > END SELECT > > END IF > > END > > > > Is there a reason something liek that wouldn't work? > > > > SELECT CASE MdlShellTest.iStage > > > > END > > > > On Feb 4, 2008 9:52 AM, M0E Lnx wrote: > > > Yes I know... the code is now all messed up... I've been thinking this > > > over and over... > > > But it seems to me that I *should* be able to define one process, and > > > run a bunch of shell commands via that one process. > > > > > > About your remarks... how do I tell it to trigger something when the > > > process is done running? > > > do I use the hShellProc_kill() event?... > > > And do you mean that if I do that, I dont need a timer? > > > > > > The reason I ask is because it is not yet very clear to me... I > > > thought you use the "Kill" to actually termintate a process, and it > > > was my understanding that a process would returned a "Process.Stopped" > > > property when it was done running... > > > > > > Please correct me if I'm wrong. > > > > > > > > > > > > > > > On Feb 4, 2008 9:46 AM, Benoit Minisini wrote: > > > > > > > > On lundi 4 f?vrier 2008, M0E Lnx wrote: > > > > > I'm trying to write a function to execute several shell commands in a > > > > > given order. For instance, extract a compressed tarball, and then cd > > > > > to it's extracted dir, and do "ls -al" > > > > > > > > > > Basically, what I want to do is execute several shell commands. > > > > > I want to use One process for all shell commands instead of using one > > > > > process for each command. > > > > > I want to use one timer to monitor this one process... and as soon as > > > > > it reports a Process.Stopped event, do some error checking, and if > > > > > passed, execute the second command using the same Process variable i > > > > > defined. > > > > > > > > > > The module file looks like this > > > > > > > > > > MdlShell > > > > > Public hShellProc as Process > > > > > Public iMdlStep as integer > > > > > PUBLIC FUNCTION Extract(sPath as string, iFuncStep) > > > > > > > > > > DIM ShellLine as string > > > > > > > > > > ' The following commands will be triggered from a timer event in another > > > > > form > > > > > > > > > > SELECT CASE iFuncStep > > > > > CASE 0 ' First step > > > > > ShellLine = "cd /tmp && tar xf " & sPath & " || echo \'ERROR\'" > > > > > > > > > > CASE 1 ' Second step > > > > > shellLine = "cd /tmp && ls -a || echo \'ERROR\'" > > > > > > > > > > ' And the list would continue here > > > > > > > > > > END SELECT > > > > > > > > > > hShellProc = shell ShellLine for read ' execute the selected command > > > > > iMdlStep = iFunctStep ' Make the last step available publically > > > > > > > > > > On a separate form, I have a timer setup. > > > > > On this timer setup... on it's timer event I have this > > > > > > > > > > TmShellMon_timer() > > > > > > > > > > > > > > > If MdlShell.hShellProc.State = Process.Stopped then > > > > > Me.TmShellMon.Enabled = false > > > > > ' Do some error checking here > > > > > if instr(sBuffer, "ERROR") > 0 then > > > > > STOP EVENT > > > > > Else > > > > > > > > > > ' If no error is found then execute this > > > > > SELECT CASE MdlShell.iMdlStep > > > > > > > > > > CASE 0 ' First step has ran... trigger next > > > > > MdlShell.Extract(sPath, 1) > > > > > CASE 1 ' Trigger 3rd step > > > > > MdlShell.Extract(sPath, 2) > > > > > ' And so on.... > > > > > END SELECT > > > > > END IF > > > > > END IF > > > > > > > > > > The problem With this is... for some reason it's not monitoring the > > > > > process right... It's triggering a lot of the lines in the wrong > > > > > sequence... > > > > > > > > > > Can anyone think of a way to fix this or a better way to do this? > > > > > Please help > > > > > > > > > > > > > As you don't give all your code, we can't guess what happens exactly. > > > > > > > > Anyway, a few remarks: > > > > > > > > - You always use one different process for each command, even if you store it > > > > in the same variable. > > > > > > > > - To know when a process has stopped, you should use the "Kill" event, not a > > > > timer. > > > > > > > > - STOP EVENT does nothing in a timer event. > > > > > > > > -- > > > > Benoit Minisini > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon Feb 4 22:50:32 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 4 Feb 2008 16:50:32 -0500 Subject: [Gambas-user] How to find which row you are on in multicolumn list In-Reply-To: <200802050843.28944.rterry@...1822...> References: <200802050843.28944.rterry@...1822...> Message-ID: <200802041650.32556.sourceforge-raindog2@...94...> On Monday 04 February 2008 16:43, richard terry wrote: > All I want to do is to detect which row is being clicked on in the > list and despite having all these things to play with below cut I had to do this very thing for a old client's backup set management application years ago (in Gambas 1) so I'll try to dig it up and see what I did. Rob From gambas at ...1... Mon Feb 4 23:01:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Feb 2008 23:01:26 +0100 Subject: [Gambas-user] How to find which row you are on in multicolumn list In-Reply-To: <200802050843.28944.rterry@...1822...> References: <200802050843.28944.rterry@...1822...> Message-ID: <200802042301.26358.gambas@...1...> On lundi 4 f?vrier 2008, richard terry wrote: > Yes, I do try, I've stuffed around with this for over an hour, really > really did read the docs. > > All I want to do is to detect which row is being clicked on in the list > and despite having all these things to play with below cut and pasted and > out of order from the doc's, I can't figure it out: > ================================================= > Properties Methods Events > AutoResize Available Border ClientH ClientHeight ClientW > ClientWidth Columns Compare Count Current Editable Header Item Key > Mode Resizable ScrollBar Settings Sorted Add Clear Exist Find > MoveAbove MoveBack MoveBelow MoveChild MoveCurrent MoveFirst MoveLast > MoveNext MoveParent MovePrevious MoveTo Remove SelectAll > Activate Cancel Click Collapse Compare Expand Rename Select > ================================================== > > When one puts in data it goes in in the form of row,col > > cvPerson[irows][0] = $Result!surname > cvPerson[irows][1] = $Result!firstname > > I want when I later click on a row to be able to get the 'irows' equivalent > integer back again. > > Sorry for being so............. dumb. > > Richard > You can't, unless by playing with the mouse cursor position and the columns width properties to calculate the clicked column. Regards, -- Benoit Minisini From leonardo at ...1237... Mon Feb 4 23:09:11 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 04 Feb 2008 23:09:11 +0100 Subject: [Gambas-user] Error compiling the SVN version Message-ID: <47A78D07.7020307@...1237...> Today I've downloaded the last SVN version of Gambas and tried to compile it on the _same_ machine where I compiled with no errors Gambas 2.0. Reconf-all didn't give any error messagge, and the same was for ./configure. But when I gave the make command, the compilation stopped with these errors: ----------------------------------- if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT gbx3-gbx_c_string.o -MD -MP -MF ".deps/gbx3-gbx_c_string.Tpo" -c -o gbx3-gbx_c_string.o `test -f 'gbx_c_string.c' || echo './'`gbx_c_string.c; \ then mv -f ".deps/gbx3-gbx_c_string.Tpo" ".deps/gbx3-gbx_c_string.Po"; else rm -f ".deps/gbx3-gbx_c_string.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT gbx3-gbx_component.o -MD -MP -MF ".deps/gbx3-gbx_component.Tpo" -c -o gbx3-gbx_component.o `test -f 'gbx_component.c' || echo './'`gbx_component.c; \ then mv -f ".deps/gbx3-gbx_component.Tpo" ".deps/gbx3-gbx_component.Po"; else rm -f ".deps/gbx3-gbx_component.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT gbx3-gbx_extern.o -MD -MP -MF ".deps/gbx3-gbx_extern.Tpo" -c -o gbx3-gbx_extern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c; \ then mv -f ".deps/gbx3-gbx_extern.Tpo" ".deps/gbx3-gbx_extern.Po"; else rm -f ".deps/gbx3-gbx_extern.Tpo"; exit 1; fi gbx_extern.c:30:17: error: ffi.h: Nessun file o directory gbx_extern.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gbx_extern.c: In function 'EXTERN_call': gbx_extern.c:244: error: 'ffi_cif' undeclared (first use in this function) gbx_extern.c:244: error: (Each undeclared identifier is reported only once gbx_extern.c:244: error: for each function it appears in.) gbx_extern.c:244: error: expected ';' before 'cif' gbx_extern.c:245: error: 'ffi_type' undeclared (first use in this function) gbx_extern.c:245: error: 'types' undeclared (first use in this function) gbx_extern.c:246: error: 'rtype' undeclared (first use in this function) gbx_extern.c:282: error: '_to_ffi_type' undeclared (first use in this function) gbx_extern.c:338: warning: implicit declaration of function 'ffi_prep_cif' gbx_extern.c:338: error: 'cif' undeclared (first use in this function) gbx_extern.c:338: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) gbx_extern.c:338: error: 'FFI_OK' undeclared (first use in this function) gbx_extern.c:341: warning: implicit declaration of function 'ffi_call' make[4]: *** [gbx3-gbx_extern.o] Error 1 make[4]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk' make: *** [all] Error 2 ---------------------------------------------------------- -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Tue Feb 5 00:52:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 5 Feb 2008 00:52:54 +0100 Subject: [Gambas-user] Rex3: Invalid Value, Null Object (steps) In-Reply-To: <688afe140802041006l4d5c628h50f36df014ab6427@...627...> References: <688afe140802041006l4d5c628h50f36df014ab6427@...627...> Message-ID: <200802050052.54265.gambas@...1...> On lundi 4 f?vrier 2008, Nx GT-R BOY wrote: > >The 'creabd11' file you sent me just create all the tables, but there is > > no > > > >data in any table except one user and one 'puestos' (I don't know what it > >is). What should I do exactly to reproduce the bug? > > > >-- > >Benoit Minisini > > Sorry for the late reply. (I was out of the city) > > This are the steps: > > 1. > > If you don't want to modify a line of code, the database name should > be "arpi" > 2. > > Then create the structure with the script > 3. > > Run the app, in the login area, everything is "default setup" to only > thing you need to change is user ("usuario") and password ("clave") for > your MySQL server (localhost for me). > 4. > > Then I remove any other button at main screen for easily goal, you > just click the only button there it says "Asistencia" > 5. > > Then you have a new window, then type a valid year (any you want) like > 2008 in the field "A?o" > 6. > > Now, here comes the problem, the Tabs "Enero" (january) and > "Diciembre" (december) thats the ones that has problem, just try to > record and read values from them. > > The datacontrols point to a INT field, so, for our goal the "logic" doesn't > matter, any INT valid value should work. > > If you are in "Enero" when you want to save what you typed you will get a > "Null object" error. > > If you are in "Diciembre" you can save to the database, but you cant read. > > Notice: if you don't write the year first you will get an error (my fault), > the app is still under development process, I am going to validate that > later. After a long investigation, I fixed some bugs in the gb.db.form component (revision 1058). The problem was that DataControl in hidden tabs were not taken into account. And the spurious "Null object" error message was removed. Now you should only get the error messages coming from your own bugs. :-) Regards, -- Benoit Minisini From gambas at ...1... Tue Feb 5 00:55:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 5 Feb 2008 00:55:39 +0100 Subject: [Gambas-user] Error compiling the SVN version In-Reply-To: <47A78D07.7020307@...1237...> References: <47A78D07.7020307@...1237...> Message-ID: <200802050055.39976.gambas@...1...> On lundi 4 f?vrier 2008, Leonardo Miliani wrote: > Today I've downloaded the last SVN version of Gambas and tried to > compile it on the _same_ machine where I compiled with no errors Gambas > 2.0. Reconf-all didn't give any error messagge, and the same was for > ./configure. But when I gave the make command, the compilation stopped with > these errors: > > ----------------------------------- > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fvisibility=hidden -g -Os -MT gbx3-gbx_c_string.o -MD -MP -MF > ".deps/gbx3-gbx_c_string.Tpo" -c -o gbx3-gbx_c_string.o `test -f > 'gbx_c_string.c' || echo './'`gbx_c_string.c; \ > then mv -f ".deps/gbx3-gbx_c_string.Tpo" > ".deps/gbx3-gbx_c_string.Po"; else rm -f ".deps/gbx3-gbx_c_string.Tpo"; > exit 1; fi > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fvisibility=hidden -g -Os -MT gbx3-gbx_component.o -MD -MP -MF > ".deps/gbx3-gbx_component.Tpo" -c -o gbx3-gbx_component.o `test -f > 'gbx_component.c' || echo './'`gbx_component.c; \ > then mv -f ".deps/gbx3-gbx_component.Tpo" > ".deps/gbx3-gbx_component.Po"; else rm -f > ".deps/gbx3-gbx_component.Tpo"; exit 1; fi > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fvisibility=hidden -g -Os -MT gbx3-gbx_extern.o -MD -MP -MF > ".deps/gbx3-gbx_extern.Tpo" -c -o gbx3-gbx_extern.o `test -f > 'gbx_extern.c' || echo './'`gbx_extern.c; \ > then mv -f ".deps/gbx3-gbx_extern.Tpo" > ".deps/gbx3-gbx_extern.Po"; else rm -f ".deps/gbx3-gbx_extern.Tpo"; exit > 1; fi > gbx_extern.c:30:17: error: ffi.h: Nessun file o directory > gbx_extern.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '*' token > gbx_extern.c: In function 'EXTERN_call': > gbx_extern.c:244: error: 'ffi_cif' undeclared (first use in this function) > gbx_extern.c:244: error: (Each undeclared identifier is reported only once > gbx_extern.c:244: error: for each function it appears in.) > gbx_extern.c:244: error: expected ';' before 'cif' > gbx_extern.c:245: error: 'ffi_type' undeclared (first use in this function) > gbx_extern.c:245: error: 'types' undeclared (first use in this function) > gbx_extern.c:246: error: 'rtype' undeclared (first use in this function) > gbx_extern.c:282: error: '_to_ffi_type' undeclared (first use in this > function) > gbx_extern.c:338: warning: implicit declaration of function 'ffi_prep_cif' > gbx_extern.c:338: error: 'cif' undeclared (first use in this function) > gbx_extern.c:338: error: 'FFI_DEFAULT_ABI' undeclared (first use in this > function) > gbx_extern.c:338: error: 'FFI_OK' undeclared (first use in this function) > gbx_extern.c:341: warning: implicit declaration of function 'ffi_call' > make[4]: *** [gbx3-gbx_extern.o] Error 1 > make[4]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas2b/trunk' > make: *** [all] Error 2 > ---------------------------------------------------------- You must install the libffi development packages. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Feb 5 05:37:34 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 4 Feb 2008 23:37:34 -0500 Subject: [Gambas-user] How to find which row you are on in multicolumn list In-Reply-To: <200802042301.26358.gambas@...1...> References: <200802050843.28944.rterry@...1822...> <200802042301.26358.gambas@...1...> Message-ID: <200802042337.34277.sourceforge-raindog2@...94...> On Monday 04 February 2008 17:01, Benoit Minisini wrote: > > cvPerson[irows][0] = $Result!surname > > cvPerson[irows][1] = $Result!firstname > > I want when I later click on a row to be able to get the 'irows' > > equivalent integer back again. > > You can't, unless by playing with the mouse cursor position and the > columns width properties to calculate the clicked column. It looks like he's just asking for the row, not the column. It seems to me I'd use a GridView when I needed the column. Rob From kaoticus60 at ...151... Tue Feb 5 06:39:19 2008 From: kaoticus60 at ...151... (andy60) Date: Tue, 05 Feb 2008 06:39:19 +0100 Subject: [Gambas-user] Tables in sqlite Message-ID: <47A7F687.1050505@...151...> If i want to work for a specific table in a sqlite database i use this method: || DIM hTable AS Table FOR EACH hTable IN MODMain.$Con.Tables IF hTable.Name = "tbALIMENTI" THEN ....instructions .... END IF NEXT|| Can i use another method without using FOR EACH? Thank you for your attention. From ariefbayu at ...626... Tue Feb 5 06:59:18 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 5 Feb 2008 12:59:18 +0700 Subject: [Gambas-user] How to find which row you are on in multicolumn list In-Reply-To: <200802042337.34277.sourceforge-raindog2@...94...> References: <200802050843.28944.rterry@...1822...> <200802042301.26358.gambas@...1...> <200802042337.34277.sourceforge-raindog2@...94...> Message-ID: <976ad9050802042159v546350c3y67e4c124b9eed419@...627...> On 2/5/08, Rob wrote: > It looks like he's just asking for the row, not the column. It seems > to me I'd use a GridView when I needed the column. Yes, I would suggest he use GridView as it's easier to use. I've attach an example on using Gridview somewhere when Gunartha ask question about listview. Please search message from 17-18 Jan. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From ronstk at ...239... Tue Feb 5 07:14:16 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 5 Feb 2008 07:14:16 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15273838.post@...1379...> References: <15253495.post@...1379...> <200802041722.33192.ronstk@...239...> <15273838.post@...1379...> Message-ID: <200802050714.16956.ronstk@...239...> On Monday 04 February 2008 20:05, MaxVK wrote: > > >And the exact difference for the icon key in full text ???? > >The file length is not interesting. > > > >Ron > > Sorry Ron, but I cant seem to find the file for the menu item I created. I > found the file for the installed version in /usr/shared/menu, but the one I > created is not there. Do you have any idea where it might be stored in > Ubuntu? > > Max check /home/{user}/.kde/shared/menu ?? The distribution system/users wide is installed in /usr/share/... The users own alterations are stored in /home/{user}/.kde/share/... These overides the ones in /usr/share/... So to store the icon for all users you should as root install in the /usr/share/... path or for every user in the /home/{user}/.kde/share/... path Ron From ronstk at ...239... Tue Feb 5 07:27:47 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 5 Feb 2008 07:27:47 +0100 Subject: [Gambas-user] Tables in sqlite In-Reply-To: <47A7F687.1050505@...151...> References: <47A7F687.1050505@...151...> Message-ID: <200802050727.47159.ronstk@...239...> On Tuesday 05 February 2008 06:39, andy60 wrote: > If i want to work for a specific table in a sqlite database i use this > method: > || > DIM hTable AS Table > FOR EACH hTable IN MODMain.$Con.Tables > IF hTable.Name = "tbALIMENTI" THEN > > ....instructions .... > > END IF > NEXT|| > > Can i use another method without using FOR EACH? Thank you for your > attention. > Just some idea in case MODMain.$Con.Tables is a true array. ListBox1.list=MODMain.$Con.Tables TablesHtmlList=MODMain.$Con.Tables.Join('
') !! not tested :=) Ron From rospolosco at ...152... Tue Feb 5 10:26:28 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 5 Feb 2008 10:26:28 +0100 Subject: [Gambas-user] How to find which row you are on in multicolumn list In-Reply-To: <200802050843.28944.rterry@...1822...> References: <200802050843.28944.rterry@...1822...> Message-ID: <200802051026.28464.rospolosco@...152...> Alle 22:43, luned? 4 febbraio 2008, richard terry ha scritto: > Yes, I do try, I've stuffed around with this for over an hour, really > really did read the docs. > > All I want to do is to detect which row is being clicked on in the list > and despite having all these things to play with below cut and pasted and > out of order from the doc's, I can't figure it out: > ================================================= > Properties Methods Events > AutoResize Available Border ClientH ClientHeight ClientW > ClientWidth Columns Compare Count Current Editable Header Item Key > Mode Resizable ScrollBar Settings Sorted Add Clear Exist Find > MoveAbove MoveBack MoveBelow MoveChild MoveCurrent MoveFirst MoveLast > MoveNext MoveParent MovePrevious MoveTo Remove SelectAll > Activate Cancel Click Collapse Compare Expand Rename Select > ================================================== > > When one puts in data it goes in in the form of row,col > > cvPerson[irows][0] = $Result!surname > cvPerson[irows][1] = $Result!firstname > > I want when I later click on a row to be able to get the 'irows' equivalent > integer back again. > > Sorry for being so............. dumb. > > Richard > Hi. I have a dirty stupid solution: index you items with progressive numbers. I've attached an example. Also, if you need your keys to be more explicit that just a number, you could prepend your descriptive key with a progressive number. Example: columnview1.add(columnview1.count & " " & "descriptive_key", "here_item") so you always know that the first part of ColumnView1.Current.Key is the row number. I've attached a little example. Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: currentRow-0.0.1.tar.gz Type: application/x-tgz Size: 7978 bytes Desc: not available URL: From gambas at ...1... Tue Feb 5 20:51:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 5 Feb 2008 20:51:30 +0100 Subject: [Gambas-user] Ubuntu 7.10 and the database manager Message-ID: <200802052051.30618.gambas@...1...> Hi, Many people have reported that the database manager does not work on Ubuntu 7.10. So, as I received my new dual-core with 2G ram, I installed Ubuntu 7.10 inside a VirtualBox virtual machine, and compiled the last trunk of Gambas 2 on it. I just quickly tried to manipulate a sqlite3 database with the database manager, and everything worked, even adding a field to a database. So I'd like to have more precision from the people that had problems with the database manager on Ubuntu 7.10, and just said "it does not work". Regards, -- Benoit Minisini From maximvonk at ...626... Tue Feb 5 21:08:31 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 5 Feb 2008 12:08:31 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802050714.16956.ronstk@...239...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> <200802041722.33192.ronstk@...239...> <15273838.post@...1379...> <200802050714.16956.ronstk@...239...> Message-ID: <15298475.post@...1379...> Ron Onstenk wrote: > > check /home/{user}/.kde/shared/menu ?? > The distribution system/users wide is installed in /usr/share/... > The users own alterations are stored in /home/{user}/.kde/share/... > These overides the ones in /usr/share/... > > So to store the icon for all users you should as root install > in the /usr/share/... path or > for every user in the /home/{user}/.kde/share/... path > > Ron > Sorry for the delay in replying. Iv been around my system both manually and with a search, and I am still only able to find the menu item that was installed by the program. This shows as a plain text file which Iv included below. Iv even gone so far as to open an item in an Ubuntu forum to see if anyone else knows where these files might be stored, but so far no-one seems to have any idea! For all the good it will do without something to compare it to, here is the content of the file that was installed by the program: ?package(controlaula):needs="X11" section "Apps/Development/Other"\ title="Source Bank"\ command="/usr/bin/sourcebank.gambas"\ icon="/usr/share/pixmaps/sourcebank.png" I'm actually wondering if the newly created icons might be accessing this file rather than creating anything for themselves. Anyway, the (apparent) problem remains with the second instance appearing when I use the menu item that was created by program installation. No matter how many times I manually create an icon for the program, there is no second instance. Cheers Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15298475.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Tue Feb 5 23:04:15 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 05 Feb 2008 23:04:15 +0100 Subject: [Gambas-user] Ubuntu 7.10 and the database manager In-Reply-To: <200802052051.30618.gambas@...1...> References: <200802052051.30618.gambas@...1...> Message-ID: <47A8DD5F.3050507@...1237...> Benoit Minisini ha scritto: > Hi, > > Many people have reported that the database manager does not work on Ubuntu > 7.10. So, as I received my new dual-core with 2G ram, I installed Ubuntu 7.10 > inside a VirtualBox virtual machine, and compiled the last trunk of Gambas 2 > on it. > > I just quickly tried to manipulate a sqlite3 database with the database > manager, and everything worked, even adding a field to a database. > > So I'd like to have more precision from the people that had problems with the > database manager on Ubuntu 7.10, and just said "it does not work". > > Regards, > If you refer to the example named "Database", I can confirm that on my Ubuntu 7.10 it works fine. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Wed Feb 6 01:06:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 6 Feb 2008 01:06:01 +0100 Subject: [Gambas-user] Hsplit gone crazy!!! Please help In-Reply-To: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> References: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> Message-ID: <200802060106.01635.gambas@...1...> On lundi 28 janvier 2008, M0E Lnx wrote: > I'm in the process of writing this super kool application. Pretty > basic stuff, one window with one hsplit (hsplit1) inside the hsplit, > there is a scrollview and an iconview. > > Using the gb.gui component. > On the window's close event, I am storing the window settings to a > text file (window size, position on the screen, and the hsplit1 design > (pane sizes)) > On the window's load event, I'm retreiving these settings, and > applying them to the window. > > All works fine, except for the hsplit1 settings. > For some strange reason, every time I open the window, even if I do > not change the position of the divider in the hsplit, it stores > different values (lower) to the "PANES" setting. > This cause the scrollview on the hsplit to get smaller and smaller > every time the application loads. > > Here is a link to the code in case anyone wants to take a look and see > if I'm doing something wrong here > > http://vasmcc.googlecode.com/svn/branches/1.0.10/FMain.class > > Thanks in advance... > The splitter Layour property behaviour should be coherent now, since the revision 1059, and should be the same between gb.qt and gb.gtk. Regards, -- Benoit Minisini From joe at ...1403... Wed Feb 6 04:19:50 2008 From: joe at ...1403... (Joe Barr) Date: Tue, 05 Feb 2008 21:19:50 -0600 Subject: [Gambas-user] Dynamically change picture Message-ID: <1202267990.5618.401.camel@...1855...> I've set a PictureBox.Picture to an image in my projet directory. During program execution, I want to change to a different image. How do you do that? TIA Joe -- Yes we can! From ariefbayu at ...626... Wed Feb 6 04:36:36 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 6 Feb 2008 10:36:36 +0700 Subject: [Gambas-user] Dynamically change picture In-Reply-To: <1202267990.5618.401.camel@...1855...> References: <1202267990.5618.401.camel@...1855...> Message-ID: <976ad9050802051936n6bbc7779t8b0e2ea6ad3f83cd@...627...> On 2/6/08, Joe Barr wrote: > > > I've set a PictureBox.Picture to an image in my projet directory. > During program execution, I want to change to a different image. How do > you do that? DIM img AS Image img = Image.Load(textbox.text)'where textbox.text is absolute path to image location. PictureBox.Picture = img.Picture -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gunartha.nyoman at ...1817... Wed Feb 6 04:37:30 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Wed, 6 Feb 2008 12:37:30 +0900 Subject: [Gambas-user] lpt printer References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> <005001c86379$d6c49820$0f0010b2@...1818...> <47A1E430.8020002@...1237...> <47A1F030.6080508@...407...> Message-ID: <006501c86871$9a4586a0$0f0010b2@...1818...> Hi Everybody, I very sorry , I ask you again about printer. I use roll paper (like picture1) and I want to get a print result like picture2. >From the some example code and I have tried but I still don't get what I want Could someone help me or give me a simple code, how to print a report to printer and paper don't scroll to end of paper Thank you for your help Regards Nyoman Gunartha ----- Original Message ----- From: "Scott Castaline" To: "mailing list for gambas users" Sent: Friday, February 01, 2008 12:58 AM Subject: Re: [Gambas-user] lpt printer > Leonardo Miliani wrote: >> gunartha ha scritto: >> >>> yes, my printer set on /dev/lp0 type Epson LX-00 >>> and I get a sample as below : I try this sample and when end of data, >>> printer still scroll the paper. >>> >> >> What does it mean "printer still scroll the paper"? >> If you mean that the printer scrolls the paper until the sheet end, it's >> the normal way of working of the Printer object: you use it as a sheet >> where you design your graphics and write your text. When you terminate >> your job (Draw.End) it is printed, but all the sheet of paper is used. >> >> >>> How to open/print a file to printer so when end of data the paper >>> stop/no >>> scroll >>> >> >> The printer is set to eject the sheet, even you used just a line of the >> paper. >> >> > I get the impression that he wants to disable this function. He may have > an app that generates a few lines of text at a time, prints it then will > generate a few more lines later. We used to do this to UNIX servers back > in the 80's and earlier where a system message normally went to the main > console and we wanted to save it in print we would redirect it to a dot > matrix continuous feed printer without the page eject command being sent. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: scan0003.jpg Type: image/jpeg Size: 16673 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMG_0190.jpg Type: image/jpeg Size: 94243 bytes Desc: not available URL: From joe at ...1403... Wed Feb 6 04:49:38 2008 From: joe at ...1403... (Joe Barr) Date: Tue, 05 Feb 2008 21:49:38 -0600 Subject: [Gambas-user] Dynamically change picture In-Reply-To: <976ad9050802051936n6bbc7779t8b0e2ea6ad3f83cd@...627...> References: <1202267990.5618.401.camel@...1855...> <976ad9050802051936n6bbc7779t8b0e2ea6ad3f83cd@...627...> Message-ID: <1202269778.5618.403.camel@...1855...> On Wed, 2008-02-06 at 10:36 +0700, Arief Bayu Purwanto wrote: > On 2/6/08, Joe Barr wrote: > > > > > > I've set a PictureBox.Picture to an image in my projet directory. > > During program execution, I want to change to a different image. How do > > you do that? > > > DIM img AS Image > img = Image.Load(textbox.text)'where textbox.text is absolute path to > image location. > PictureBox.Picture = img.Picture > Thanks! -- Yes we can! From sourceforge-raindog2 at ...94... Wed Feb 6 05:40:16 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 5 Feb 2008 23:40:16 -0500 Subject: [Gambas-user] Ubuntu 7.10 and the database manager In-Reply-To: <200802052051.30618.gambas@...1...> References: <200802052051.30618.gambas@...1...> Message-ID: <200802052340.16562.sourceforge-raindog2@...94...> On Tuesday 05 February 2008 14:51, Benoit Minisini wrote: > So I'd like to have more precision from the people that had > problems with the database manager on Ubuntu 7.10, and just said > "it does not work". Here is a screenshot of the gambas2 database manager working on Ubuntu 7.10 (the 64-bit version, no less.) Look at the console in the background to see the contents of /etc/issue and uname -a. http://www.kudla.org/gdbm-worksforme.png Rob From leonardo at ...1237... Wed Feb 6 11:11:16 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 06 Feb 2008 11:11:16 +0100 Subject: [Gambas-user] lpt printer In-Reply-To: <006501c86871$9a4586a0$0f0010b2@...1818...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> <005001c86379$d6c49820$0f0010b2@...1818...> <47A1E430.8020002@...1237...> <47A1F030.6080508@...407...> <006501c86871$9a4586a0$0f0010b2@...1818...> Message-ID: <47A987C4.3010007@...1237...> gunartha ha scritto: > Hi Everybody, > > I very sorry , I ask you again about printer. > I use roll paper (like picture1) and I want to get a print result like > picture2. >> From the some example code and I have tried but I still don't get what I > want > > Could someone help me or give me a simple code, how to print a report to > printer and paper don't scroll to end of paper > > Thank you for your help > Regards > Nyoman Gunartha > > ----- Original Message ----- From: "Scott Castaline" > To: "mailing list for gambas users" > Sent: Friday, February 01, 2008 12:58 AM > Subject: Re: [Gambas-user] lpt printer > > >> Leonardo Miliani wrote: >>> gunartha ha scritto: >>> >>>> yes, my printer set on /dev/lp0 type Epson LX-00 >>>> and I get a sample as below : I try this sample and when end of data, >>>> printer still scroll the paper. >>>> >>> >>> What does it mean "printer still scroll the paper"? >>> If you mean that the printer scrolls the paper until the sheet end, it's >>> the normal way of working of the Printer object: you use it as a sheet >>> where you design your graphics and write your text. When you terminate >>> your job (Draw.End) it is printed, but all the sheet of paper is used. >>> >>> >>>> How to open/print a file to printer so when end of data the paper >>>> stop/no >>>> scroll >>>> >>> >>> The printer is set to eject the sheet, even you used just a line of the >>> paper. >>> >>> >> I get the impression that he wants to disable this function. He may have >> an app that generates a few lines of text at a time, prints it then will >> generate a few more lines later. We used to do this to UNIX servers back >> in the 80's and earlier where a system message normally went to the main >> console and we wanted to save it in print we would redirect it to a dot >> matrix continuous feed printer without the page eject command being sent. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Maybe you have to set the paper size in your printer properties... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From horechuk at ...981... Wed Feb 6 14:45:52 2008 From: horechuk at ...981... (Paul Horechuk) Date: Wed, 6 Feb 2008 08:45:52 -0500 Subject: [Gambas-user] FreeBSD changes In-Reply-To: <200802042159.41519.gambas@...1...> References: <200802041546.31888.horechuk@...981...> <200802042159.41519.gambas@...1...> Message-ID: <200802060845.52334.horechuk@...981...> On February 4, 2008, Benoit Minisini wrote: > On lundi 4 f?vrier 2008, Paul Horechuk wrote: > > I've downloaded the svn for the 2.0.5 trunk. (version 1057). > > I'm using FreeBSD 6.2 on i386. The reconf-all did the usual warnings > > abour underquoting. I'm not worrying about that. configure -C did pose > > a problem. It complained about several components that would not be > > included. The important ones, for now, are gb.qt and gb.qt.kde. Looking > > through the configure.ac files, I find that there is a line where it > > searches for libqt-mt.so.3, but /usr/local/lib is not in the search > > path. This is the standard path for FreeBSD. I tried to add this to the > > search path, but it may have failed on another similar search. Is there > > a better place to put this? > > > > I > > have /usr/local/lib/libqt-mt.so.3, /usr/local/lib/GL/gl.h, > > /usr/local/lib/GL/glu.h, etc. > > I will add the missing paths to the search list. > > Then you should send me a full list of all directories that are not in > the search list of each component configure.ac file, so that I can fix > them all. > I've attempted to try fixing the qt component first... I added the following paths to the GB_FIND function for the referenced files. qb.qt: qptrlist.h /usr/local/include libqt-mt.so.3 /usr/local/lib gl.h /usr/local/include/GL glu.h /usr/local/include/GL libGL.so /usr/local/lib libGLU.so /usr/local/lib There is also a problem with finding the qt moc compiler, as in: checking for QT meta-object compiler... no configure: WARNING: QT moc compiler not found. Try --with-moc option. configure: WARNING: *** QT component is disabled configure: WARNING: *** QT OpenGL component is disabled moc is located in /usr/local/bin I made this warning go away by using ./configure -C --with-moc=/usr/local/bin I still get failures due to missing ac_nonexistent.h, as in: configure:3944: gcc -E conftest.c conftest.c:14:28: error: ac_nonexistent.h: No such file or directory configure:3950: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas2-gb-qt" | #define VERSION "2.1.0" | #define GAMBAS_FULL_VERSION 0x02010000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 2 | #define GAMBAS_VERSION_STRING "2" | /* end confdefs.h. */ | #include gcc version 4.2.3 20080123 (prerelease) FreeBSD 6.2 Stable on i386 Any additional info required? > Regards, -- Paul Horechuk Think Free Use Open Source Software ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From maximvonk at ...626... Wed Feb 6 17:58:52 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 6 Feb 2008 08:58:52 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802050714.16956.ronstk@...239...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> <200802041722.33192.ronstk@...239...> <15273838.post@...1379...> <200802050714.16956.ronstk@...239...> Message-ID: <15307512.post@...1379...> I manged to find the files in the end thanks to some help from another forum, and after a quick look at the two I can see that there is some difference between the menu item I created and the one that was installed for me by Gambas. Iv pasted them below, and you can see that in the Gambas one there are two extra lines: 'StartupNotify=true' and 'Categories=' . I can only guess that the StartupNotify is what is causing the problem. Gambas Installed: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Source Bank Comment=Gambas Source bank. Exec=/usr/bin/sourcebank.gambas Icon=/usr/share/pixmaps/sourcebank.png Terminal=false Type=Application StartupNotify=true Categories= Name[en_GB]=SourceBank(0) Comment[en_GB]=Gambas Source bank. Icon[en_GB]=sourcebank Home Made: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=KBANK Type=Application Terminal=false Icon[en_GB]=/usr/share/pixmaps/sourcebank.png Name[en_GB]=KBANK Exec=/usr/bin/sourcebank.gambas Comment[en_GB]=Gambas Source bank. Comment=Gambas Source bank. Icon=/usr/share/pixmaps/sourcebank.png GenericName[en_GB]= As Iv said, this is not a real problem, but perhaps its a small bug that has crept in? All the best Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15307512.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Wed Feb 6 19:43:07 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 6 Feb 2008 19:43:07 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15307512.post@...1379...> References: <15253495.post@...1379...> <200802050714.16956.ronstk@...239...> <15307512.post@...1379...> Message-ID: <200802061943.08111.ronstk@...239...> On Wednesday 06 February 2008 17:58, MaxVK wrote: > Gambas Installed: > [Desktop Entry] > Version=1.0 > Encoding=UTF-8 > Name=Source Bank > Comment=Gambas Source bank. > Exec=/usr/bin/sourcebank.gambas > Icon=/usr/share/pixmaps/sourcebank.png '<----------------- Here the icon is at user fixed place > Terminal=false > Type=Application > StartupNotify=true > Categories= > Name[en_GB]=SourceBank(0) > Comment[en_GB]=Gambas Source bank. > Icon[en_GB]=sourcebank '<----------------- the icon should be in one of the KDE direrctories for this line /home/MaxVK/.local/share/icons or /usr/share/icons/default.kde/16x16/apps > > > Home Made: > [Desktop Entry] > Version=1.0 > Encoding=UTF-8 > Name=KBANK > Type=Application > Terminal=false > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png Here the icon is at user fixed place > Name[en_GB]=KBANK > Exec=/usr/bin/sourcebank.gambas > Comment[en_GB]=Gambas Source bank. > Comment=Gambas Source bank. > Icon=/usr/share/pixmaps/sourcebank.png the icon should be in one of the KDE direrctories for this line > GenericName[en_GB]= > Here the icon is at user fixed place In both desktop files are two icons layered above each other?? Try without the country_lang designation With: kde-config --help Options: --expandvars expand ${prefix} and ${exec_prefix} in output --prefix Compiled in prefix for KDE libraries --exec-prefix Compiled in exec_prefix for KDE libraries --libsuffix Compiled in library path suffix --localprefix Prefix in $HOME used to write files --version Compiled in version string for KDE libraries --types Available KDE resource types --path type Search path for resource type --userpath type User path: desktop|autostart|trash|document --install type Prefix to install resource files to you can find the actual place paths. Look at th KDE site for declarations of type. On the freedesktop.org site is a good help how this file should be. Ron From ronstk at ...239... Wed Feb 6 19:44:20 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 6 Feb 2008 19:44:20 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15298475.post@...1379...> References: <15253495.post@...1379...> <200802050714.16956.ronstk@...239...> <15298475.post@...1379...> Message-ID: <200802061944.20205.ronstk@...239...> On Tuesday 05 February 2008 21:08, MaxVK wrote: > For all the good it will do without something to compare it to, here is the > content of the file that was installed by the program: > > ?package(controlaula):needs="X11" section "Apps/Development/Other"\ > title="Source Bank"\ > command="/usr/bin/sourcebank.gambas"\ > icon="/usr/share/pixmaps/sourcebank.png" > > I'm actually wondering if the newly created icons might be accessing this > file rather than creating anything for themselves. Anyway, the (apparent) > Where does '?package(controlaula):needs="X11" section "Apps/Development/Other"\' come from ?? This is wrong into the .desktop file Ron From Karl.Reinl at ...9... Wed Feb 6 21:03:11 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 06 Feb 2008 21:03:11 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200801201412.15879.scatman@...1832...> References: <200801201349.45926.scatman@...1832...> <200801201401.33666.gambas@...1...> (sfid-20080120_140513_633927_E372C44B0E370FBD) <200801201412.15879.scatman@...1832...> Message-ID: <1202328191.5551.4.camel@...40...> Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > On dimanche 20 janvier 2008, scatman wrote: > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > > Hello, > > > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64 > > > > >.cac he-2 ", O_RDONLY) = 14 > > > > > > > > > > and so on. > > > > > > > > > > very strange. > > > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > > > QT-3.3.8-r4 > > > > Does it change anything if you run a Gambas project by typing 'gbx3 -p' > > in a console inside the project directory? > > No, it?s the same. See Attachment. > Salut, had my first go with the gambas2 (from svn 1061) today on gentoo. after 'gambas2' on the prompt, I had that ( and see also the attached png) Fontconfig warning: no elements found. Check configuration. Fontconfig warning: adding /var/cache/fontconfig Fontconfig warning: adding ~/.fontconfig -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-2svn1061.png Type: image/png Size: 79165 bytes Desc: not available URL: From rterry at ...1822... Wed Feb 6 22:22:06 2008 From: rterry at ...1822... (richard terry) Date: Thu, 7 Feb 2008 08:22:06 +1100 Subject: [Gambas-user] Request for info re user-made dialog Message-ID: <200802070822.06865.rterry@...1822...> Well, not the dialog, but an example of how to get back information the user has entered into a component of a popup form. I've a custom dialog, and want to return the contents of a combo box on the form. Any help appreciated. Thanks Richard From rospolosco at ...152... Wed Feb 6 23:02:24 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 6 Feb 2008 23:02:24 +0100 Subject: [Gambas-user] Request for info re user-made dialog In-Reply-To: <200802070822.06865.rterry@...1822...> References: <200802070822.06865.rterry@...1822...> Message-ID: <200802062302.24215.rospolosco@...152...> Alle 22:22, mercoled? 6 febbraio 2008, richard terry ha scritto: > Well, not the dialog, but an example of how to get back information the > user has entered into a component of a popup form. > > I've a custom dialog, and want to return the contents of a combo box on the > form. > I'm not sure it's what you need, but in the attached example there's a simple combobox. When you select an item in the combobox, the content is returned to a textbox. I'm quite sure it's not what you're asking for... :-) Stefano > Any help appreciated. > > Thanks > > Richard > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: comboexample-0.0.1.tar.gz Type: application/x-tgz Size: 7832 bytes Desc: not available URL: From auditmk at ...626... Thu Feb 7 08:18:08 2008 From: auditmk at ...626... (Mukul Khullar) Date: Thu, 7 Feb 2008 12:48:08 +0530 Subject: [Gambas-user] SHELL command problem Message-ID: Am trying to execute a command "aureport -f -i --summary --failed | /root/Desktop/try" which works really fine on the terminal and creates an image file on the root directory. But, when I try to execute the same using SHELL "aureport -f -i --summary --failed | /root/Desktop/try", the file gets generated but incorrectly(something like an empty text file). Is there some tweak or some way by which I can get this command running, using the SHELL command ? Please help.. Thanking you, Mukul Khullar. From eilert-sprachen at ...221... Thu Feb 7 08:18:54 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Feb 2008 08:18:54 +0100 Subject: [Gambas-user] Request for info re user-made dialog In-Reply-To: <200802070822.06865.rterry@...1822...> References: <200802070822.06865.rterry@...1822...> Message-ID: <47AAB0DE.5070706@...221...> richard terry schrieb: > Well, not the dialog, but an example of how to get back information the user > has entered into a component of a popup form. > > I've a custom dialog, and want to return the contents of a combo box on the > form. > > Any help appreciated. > > Thanks > > Richard Hi Richard, There is mainly one way I do this: In the form that calls the dialog box you declare a couple of variables as PUBLIC. From the dialog box you can reach them by quoting the calling form (myCallingForm.myVariable). After closing the dialog (in case of a modal dialog), the program in the calling form can read the values from there. Was this what you asked for? Rolf From rospolosco at ...152... Thu Feb 7 08:45:24 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 7 Feb 2008 08:45:24 +0100 Subject: [Gambas-user] SHELL command problem In-Reply-To: References: Message-ID: <200802070845.24710.rospolosco@...152...> Alle 08:18, gioved? 7 febbraio 2008, Mukul Khullar ha scritto: > Am trying to execute a command "aureport -f -i --summary --failed | > /root/Desktop/try" which works really fine on the terminal and creates an > image file on the root directory. > But, when I try to execute the same using SHELL "aureport -f -i --summary > --failed | /root/Desktop/try", the file gets generated but > incorrectly(something like an empty text file). Is there some tweak or some > way by which I can get this command running, using the SHELL command ? > > Please help.. > Thanking you, > Mukul Khullar. Try to put a WAIT at the end of the SHELL sentence. SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From maximvonk at ...626... Thu Feb 7 12:22:07 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 7 Feb 2008 03:22:07 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802061943.08111.ronstk@...239...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> <200802041722.33192.ronstk@...239...> <15273838.post@...1379...> <200802050714.16956.ronstk@...239...> <15307512.post@...1379...> <200802061943.08111.ronstk@...239...> Message-ID: <15331847.post@...1379...> >..... > Icon[en_GB]=sourcebank '<----------------- > >the icon should be in one of the KDE direrctories for this line Iv not manually created any files, Iv used the Menu item installed by the Gambas package (Which included the icon itself) and the Menu item that I created from within the menu editor (I chose the icon from the list, but that was it - I didn't specify any custom locations). >In both desktop files are two icons layered above each other?? >Try without the country_lang designation Layered icons? I wouldn't even know how to do that, so unless Gambas or the Ubuntu menu editor did it I doubt thats the case. I also didnt specify any language designation - these are things that have been done by the menu editor or by the Gambas package. Max -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15331847.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Feb 7 15:54:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 7 Feb 2008 15:54:31 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <1202328191.5551.4.camel@...40...> References: <200801201412.15879.scatman@...1832...> <1202328191.5551.4.camel@...40...> Message-ID: <200802071554.31919.gambas@...1...> On mercredi 6 f?vrier 2008, Charlie Reinl wrote: > Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > On dimanche 20 janvier 2008, scatman wrote: > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > > > > Hello, > > > > > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- > > > > > >64 .cac he-2 ", O_RDONLY) = 14 > > > > > > > > > > > > and so on. > > > > > > > > > > > > very strange. > > > > > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > > > > > QT-3.3.8-r4 > > > > > > Does it change anything if you run a Gambas project by typing 'gbx3 -p' > > > in a console inside the project directory? > > > > No, it?s the same. See Attachment. > > Salut, > > had my first go with the gambas2 (from svn 1061) today on gentoo. > > after 'gambas2' on the prompt, I had that ( and see also the attached > png) > > Fontconfig warning: no elements found. Check configuration. > Fontconfig warning: adding /var/cache/fontconfig > Fontconfig warning: adding ~/.fontconfig The messages tell that there is a fontconfig configuration problem. Do you have the same message if you run another QT3 application? -- Benoit Minisini From Karl.Reinl at ...9... Thu Feb 7 21:37:26 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 07 Feb 2008 21:37:26 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200802071554.31919.gambas@...1...> References: <200801201412.15879.scatman@...1832...> <1202328191.5551.4.camel@...40...> <200802071554.31919.gambas@...1...> Message-ID: <1202416646.5733.2.camel@...40...> Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini: > On mercredi 6 f?vrier 2008, Charlie Reinl wrote: > > Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > On dimanche 20 janvier 2008, scatman wrote: > > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > > > > > > Hello, > > > > > > > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- > > > > > > >64 .cac he-2 ", O_RDONLY) = 14 > > > > > > > > > > > > > > and so on. > > > > > > > > > > > > > > very strange. > > > > > > > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > > > > > > > QT-3.3.8-r4 > > > > > > > > Does it change anything if you run a Gambas project by typing 'gbx3 -p' > > > > in a console inside the project directory? > > > > > > No, it?s the same. See Attachment. > > > > Salut, > > > > had my first go with the gambas2 (from svn 1061) today on gentoo. > > > > after 'gambas2' on the prompt, I had that ( and see also the attached > > png) > > > > Fontconfig warning: no elements found. Check configuration. > > Fontconfig warning: adding /var/cache/fontconfig > > Fontconfig warning: adding ~/.fontconfig > > The messages tell that there is a fontconfig configuration problem. Do you > have the same message if you run another QT3 application? Salut, I tried some, here the output : charlie at ...351... ~ $ kdevelop QObject::connect: No such slot MakeWidget::slotDocumentOpened(const KURL&) QObject::connect: (sender name: 'unnamed') QObject::connect: (receiver name: 'make widget') QLayout "unnamed" added to IndexView "unnamed", which already has a layout kdecore (KAction): WARNING: KAction::initPrivate(): trying to assign a shortcut (Alt+Ctrl+Shift+N) to an unnamed action. charlie at ...351... ~ $ qtconfig charlie at ...351... ~ $ qtdemo charlie at ...351... ~ $ Amicalment Charlie From ronstk at ...239... Thu Feb 7 22:23:48 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 7 Feb 2008 22:23:48 +0100 Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <15331847.post@...1379...> References: <15253495.post@...1379...> <200802061943.08111.ronstk@...239...> <15331847.post@...1379...> Message-ID: <200802072223.48843.ronstk@...239...> On Thursday 07 February 2008 12:22, MaxVK wrote: > > >..... > > Icon[en_GB]=sourcebank '<----------------- > > > >the icon should be in one of the KDE direrctories for this line > > Iv not manually created any files, Iv used the Menu item installed by the > Gambas package (Which included the icon itself) and the Menu item that I > created from within the menu editor (I chose the icon from the list, but > that was it - I didn't specify any custom locations). > > >In both desktop files are two icons layered above each other?? > >Try without the country_lang designation > > Layered icons? I wouldn't even know how to do that, so unless Gambas or the > Ubuntu menu editor did it I doubt thats the case. I also didnt specify any > language designation - these are things that have been done by the menu > editor or by the Gambas package. > > Max In both desktop files you have to key/value pairs for an icon. File1: > Icon=/usr/share/pixmaps/sourcebank.png ? ?'<----------------- > Icon[en_GB]=sourcebank ? ?'<----------------- and File2: > Icon[en_GB]=sourcebank ? ?'<----------------- > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png There should be normal only one icon=iconfile pair and should unique in the section. If the country/language is in use like [en_GB] they should also unique in the section. In file2 you have 2 times Icon[en_GB]=.... For both files the 2 icon entries point use a different path for the icons. So in both files the key/value must be normal File1: > Icon=/usr/share/pixmaps/sourcebank.png > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png or > Icon=sourcebank > Icon[en_GB]=sourcebank File2: > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png <--- this is double, not need to set or > Icon[en_GB]=sourcebank > Icon[en_GB]=sourcebank <--- this is double, not need to set Hope it is more clear now :=) Ron From cjro99 at ...67... Thu Feb 7 23:27:39 2008 From: cjro99 at ...67... (javier romero) Date: Thu, 7 Feb 2008 22:27:39 +0000 Subject: [Gambas-user] Ubuntu 7.10 and the database manager In-Reply-To: <200802052340.16562.sourceforge-raindog2@...94...> References: <200802052051.30618.gambas@...1...> <200802052340.16562.sourceforge-raindog2@...94...> Message-ID: ---------------------------------------- > From: sourceforge-raindog2 at ...94... > To: gambas-user at lists.sourceforge.net > Date: Tue, 5 Feb 2008 23:40:16 -0500 > Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager > > On Tuesday 05 February 2008 14:51, Benoit Minisini wrote: >> So I'd like to have more precision from the people that had >> problems with the database manager on Ubuntu 7.10, and just said >> "it does not work". > > Here is a screenshot of the gambas2 database manager working on Ubuntu > 7.10 (the 64-bit version, no less.) Look at the console in the > background to see the contents of /etc/issue and uname -a. > > http://www.kudla.org/gdbm-worksforme.png > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user finally i know whats happens. It was the width of the form, i resize there an the data form now is show. Here are 3 screenshots firts with the original size(the instalation width), the data form is not "show" second i resize the table form and third reload the data form and now is show. http://www.frocae.org/gambas/Pantallazo1.jpg http://www.frocae.org/gambas/Pantallazo2.jpg http://www.frocae.org/gambas/Pantallazo3.jpg Regards Javier _________________________________________________________________ MSN Noticias http://noticias.msn.es/comunidad.aspx From gambas at ...1... Thu Feb 7 23:33:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 7 Feb 2008 23:33:46 +0100 Subject: [Gambas-user] Ubuntu 7.10 and the database manager In-Reply-To: References: <200802052051.30618.gambas@...1...> <200802052340.16562.sourceforge-raindog2@...94...> Message-ID: <200802072333.46907.gambas@...1...> On jeudi 7 f?vrier 2008, javier romero wrote: > > finally i know whats happens. It was the width of the form, i resize there > an the data form now is show. Here are 3 screenshots > > firts with the original size(the instalation width), the data form is not > "show" second i resize the table form > and third reload the data form and now is show. > > http://www.frocae.org/gambas/Pantallazo1.jpg > http://www.frocae.org/gambas/Pantallazo2.jpg > http://www.frocae.org/gambas/Pantallazo3.jpg > > > Regards > Javier LOL! This is the bug in Splitter that I just fixed for the next 2.1 release. -- Benoit Minisini From sylvain.marleau at ...647... Fri Feb 8 03:14:01 2008 From: sylvain.marleau at ...647... (2020) Date: Thu, 7 Feb 2008 18:14:01 -0800 (PST) Subject: [Gambas-user] OPEN DMX USB Failed to open with Serial Port Message-ID: <15348079.post@...1379...> Hello folk, I tried to connect to a DMX USB device with Gambas 2.0 Serial Port example, but freeze wen I click on open (Button1). http://www.nabble.com/file/p15348079/serialport_ss1.png The driver was loaded during my attempt; [ 2088.929843] usb 1-8: new full speed USB device using ohci_hcd and address 7 [ 2089.024217] usb 1-8: configuration #1 chosen from 1 choice [ 2089.025658] ftdi_sio 1-8:1.0: FTDI USB Serial Device converter detected [ 2089.025687] /build/buildd/linux-source-2.6.22-2.6.22/debian/build/custom-source-rt/drivers/usb/serial/ftdi_sio.c: Detected FT232BM [ 2089.025857] usb 1-8: FTDI USB Serial Device converter now attached to ttyUSB0 Any ideas, thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/OPEN-DMX-USB-Failed-to-open-with-Serial-Port-tp15348079p15348079.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Fri Feb 8 04:39:07 2008 From: rterry at ...1822... (richard terry) Date: Fri, 8 Feb 2008 14:39:07 +1100 Subject: [Gambas-user] Miscellaneous routines for text box validation Message-ID: <200802081439.08124.rterry@...1822...> Hi all, My gambas learning project is progressing well (a contacts database manager), and I've got the point I can create new people/names/address(es), etc, now have to fine tune the gui, so not wanting to re-invent the wheel, I wondered if anyone had in their possession, or pointers to it, code which would do stuff like. for textboxes: Autocapitalise, or autocaps Date validation routines/formatting routines Name auto capitalisation eg for McBeth, or O'Neil etc Also In VB in the textbox routines one had (index, keyascii) and one could manipulate the keyascii value to whatever to either exclude keys or autocapitalise things etc I wondered how this worked in gambas, as though I can detect the keypress, I couldnt see a way to send back a changed key value to the textbox. Thanks in anticipation. Richard From auditmk at ...626... Fri Feb 8 07:44:13 2008 From: auditmk at ...626... (Mukul Khullar) Date: Fri, 8 Feb 2008 12:14:13 +0530 Subject: [Gambas-user] Re : Re: SHELL command problem Message-ID: > Am trying to execute a command "aureport -f -i --summary --failed | > /root/Desktop/try" which works really fine on the terminal and creates an > image file on the root directory. > But, when I try to execute the same using SHELL "aureport -f -i --summary > --failed | /root/Desktop/try", the file gets generated but > incorrectly(something like an empty text file). Is there some tweak or some > way by which I can get this command running, using the SHELL command ? > > Please help.. > Thanking you, > Mukul Khullar. >>Try to put a WAIT at the end of the SHELL sentence. >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT >>Stefano I have already tried the same command adding WAIT but in vain. Actually, the first part of the command sends some data to the 2nd part of the command through the " | " operator, which is not happening via the SHELL command, but happens fine when executed on the terminal. Any suggestions ?? Thanks, Mukul Khullar. From rospolosco at ...152... Fri Feb 8 10:14:42 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 10:14:42 +0100 Subject: [Gambas-user] Re : Re: SHELL command problem In-Reply-To: References: Message-ID: <200802081014.42189.rospolosco@...152...> Alle 07:44, venerd? 8 febbraio 2008, Mukul Khullar ha scritto: > > Am trying to execute a command "aureport -f -i --summary --failed | > > /root/Desktop/try" which works really fine on the terminal and creates an > > image file on the root directory. > > But, when I try to execute the same using SHELL "aureport -f -i --summary > > --failed | /root/Desktop/try", the file gets generated but > > incorrectly(something like an empty text file). Is there some tweak or > > some > > > way by which I can get this command running, using the SHELL command ? > > > > Please help.. > > Thanking you, > > Mukul Khullar. > > > >>Try to put a WAIT at the end of the SHELL sentence. > >> > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT > >> > >>Stefano > > I have already tried the same command adding WAIT but in vain. Actually, > the first part of the command sends some data to the 2nd part of the > command through the " | " operator, which is not happening via the SHELL > command, but happens fine when executed on the terminal. Any suggestions ?? > Thanks, > Mukul Khullar. Try this: SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rolf.frogs at ...221... Fri Feb 8 10:55:38 2008 From: rolf.frogs at ...221... (rolf) Date: Fri, 8 Feb 2008 10:55:38 +0100 Subject: [Gambas-user] Re : Re: SHELL command problem In-Reply-To: References: Message-ID: <200802081055.38911.rolf.frogs@...221...> Hi Mukul : > > But, when I try to execute the same using SHELL "aureport -f -i --summary > > --failed | /root/Desktop/try", the file gets generated but > > incorrectly(something like an empty text file). Is there some tweak or > >>Try to put a WAIT at the end of the SHELL sentence. > >> > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT > > I have already tried the same command adding WAIT but in vain. Actually, > the first part of the command sends some data to the 2nd part of the > command through the " | " operator, which is not happening via the SHELL > command, but happens fine when executed on the terminal. Any suggestions ?? Usually subshells in Linux did not have the PATH-variable set (correctly). So try to use absolut pathes for your commands, like: /usr/bin/aureport -f -i --summary --failed | /root/Desktop/try Fine regards rolf From rospolosco at ...152... Fri Feb 8 11:32:51 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 11:32:51 +0100 Subject: [Gambas-user] Miscellaneous routines for text box validation In-Reply-To: <200802081439.08124.rterry@...1822...> References: <200802081439.08124.rterry@...1822...> Message-ID: <200802081132.51495.rospolosco@...152...> Alle 04:39, venerd? 8 febbraio 2008, richard terry ha scritto: > Hi all, > > My gambas learning project is progressing well (a contacts database > manager), and I've got the point I can create new people/names/address(es), > etc, now have to fine tune the gui, so not wanting to re-invent the wheel, > I wondered if anyone had in their possession, or pointers to it, code which > would do stuff like. > > for textboxes: > > Autocapitalise, or autocaps > Date validation routines/formatting routines > Name auto capitalisation eg for McBeth, or O'Neil etc > > Also In VB in the textbox routines one had (index, keyascii) and one could > manipulate the keyascii value to whatever to either exclude keys or > autocapitalise things etc > > I wondered how this worked in gambas, as though I can detect the keypress, > I couldnt see a way to send back a changed key value to the textbox. > > Thanks in anticipation. > > > Richard > Hi, Richard. In the attached example, you have a form with a textbox. What it does: 1) it autocapitalises the text when it changes 2) print the ascii code of the pressed key 3) it doesn't allow "W" or "w" 4) when you press space bar it becomes an underscore all is commented in the code, so you see what does what. I think it will not be difficult for you to manage Mc or O' using string manipulation functions. Regards, Stefano Palmeri > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: textboxstuff-0.0.1.tar.gz Type: application/x-tgz Size: 8011 bytes Desc: not available URL: From auditmk at ...626... Fri Feb 8 11:33:31 2008 From: auditmk at ...626... (Mukul Khullar) Date: Fri, 8 Feb 2008 16:03:31 +0530 Subject: [Gambas-user] Picture box problem Message-ID: Thank you all for my previous Shell command query. I have another problem. Actually, I am generating some kind of image file for my project which changes according to the option selected on my GUI. I am displaying it using a picture box. But the problem is that, since I am giving the path of the image file, it doesn't refresh and shows the last image(maybe cached)itself. I tried to use picturebox.refresh , even main form.refresh, but to no use. I suppose, the picture box takes the image into a buffer, and next time if the same path is specified, it uses the same image(the name of the image being the same). But, since the image file is changing on the hard disk, it should take the refreshed path(image file). How can I do the same? I hope i've been able to describe my problem. P.s In short, the path given on the picturebox.picture property loads the same image file, even when the picturebox.picture property is set again(with the same path,though refreshed image file). Please help. Thanks once again, Mukul Khullar. On Feb 8, 2008 3:26 PM, wrote: > 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: no fonts at all (Charlie Reinl) > 2. Re: Strange second instance that never opens (Ron Onstenk) > 3. Re: Ubuntu 7.10 and the database manager (javier romero) > 4. Re: Ubuntu 7.10 and the database manager (Benoit Minisini) > 5. OPEN DMX USB Failed to open with Serial Port (2020) > 6. Miscellaneous routines for text box validation (richard terry) > 7. Re : Re: SHELL command problem (Mukul Khullar) > 8. Re: Re : Re: SHELL command problem (Stefano Palmeri) > 9. Re: Re : Re: SHELL command problem (rolf) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 07 Feb 2008 21:37:26 +0100 > From: Charlie Reinl > Subject: Re: [Gambas-user] no fonts at all > To: mailing list for gambas users > Message-ID: <1202416646.5733.2.camel at ...40...> > Content-Type: text/plain; charset=utf-8 > > Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini: > > On mercredi 6 f?vrier 2008, Charlie Reinl wrote: > > > Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > On dimanche 20 janvier 2008, scatman wrote: > > > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- > > > > > > > >64 .cac he-2 ", O_RDONLY) = 14 > > > > > > > > > > > > > > > > and so on. > > > > > > > > > > > > > > > > very strange. > > > > > > > > > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > > > > > > > > > QT-3.3.8-r4 > > > > > > > > > > Does it change anything if you run a Gambas project by typing > 'gbx3 -p' > > > > > in a console inside the project directory? > > > > > > > > No, it?s the same. See Attachment. > > > > > > Salut, > > > > > > had my first go with the gambas2 (from svn 1061) today on gentoo. > > > > > > after 'gambas2' on the prompt, I had that ( and see also the attached > > > png) > > > > > > Fontconfig warning: no elements found. Check configuration. > > > Fontconfig warning: adding /var/cache/fontconfig > > > Fontconfig warning: adding ~/.fontconfig > > > > The messages tell that there is a fontconfig configuration problem. Do > you > > have the same message if you run another QT3 application? > > Salut, > > I tried some, here the output : > > charlie at ...351... ~ $ kdevelop > QObject::connect: No such slot MakeWidget::slotDocumentOpened(const > KURL&) > QObject::connect: (sender name: 'unnamed') > QObject::connect: (receiver name: 'make widget') > QLayout "unnamed" added to IndexView "unnamed", which already has a > layout > kdecore (KAction): WARNING: KAction::initPrivate(): trying to assign a > shortcut (Alt+Ctrl+Shift+N) to an unnamed action. > > charlie at ...351... ~ $ qtconfig > charlie at ...351... ~ $ qtdemo > charlie at ...351... ~ $ > > Amicalment > Charlie > > > > > ------------------------------ > > Message: 2 > Date: Thu, 7 Feb 2008 22:23:48 +0100 > From: Ron Onstenk > Subject: Re: [Gambas-user] Strange second instance that never opens > To: gambas-user at lists.sourceforge.net > Message-ID: <200802072223.48843.ronstk at ...239...> > Content-Type: text/plain; charset="iso-8859-1" > > On Thursday 07 February 2008 12:22, MaxVK wrote: > > > > >..... > > > Icon[en_GB]=sourcebank '<----------------- > > > > > >the icon should be in one of the KDE direrctories for this line > > > > Iv not manually created any files, Iv used the Menu item installed by > the > > Gambas package (Which included the icon itself) and the Menu item that I > > created from within the menu editor (I chose the icon from the list, but > > that was it - I didn't specify any custom locations). > > > > >In both desktop files are two icons layered above each other?? > > >Try without the country_lang designation > > > > Layered icons? I wouldn't even know how to do that, so unless Gambas or > the > > Ubuntu menu editor did it I doubt thats the case. I also didnt specify > any > > language designation - these are things that have been done by the menu > > editor or by the Gambas package. > > > > Max > > In both desktop files you have to key/value pairs for an icon. > > File1: > > Icon=/usr/share/pixmaps/sourcebank.png ? ?'<----------------- > > Icon[en_GB]=sourcebank ? ?'<----------------- > > and > > File2: > > Icon[en_GB]=sourcebank ? ?'<----------------- > > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png > > There should be normal only one icon=iconfile pair > and should unique in the section. > If the country/language is in use like [en_GB] they > should also unique in the section. > > In file2 you have 2 times Icon[en_GB]=.... > For both files the 2 icon entries point use a different > path for the icons. > > So in both files the key/value must be normal > File1: > > Icon=/usr/share/pixmaps/sourcebank.png > > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png > or > > Icon=sourcebank > > Icon[en_GB]=sourcebank > > > File2: > > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png > > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png <--- this is double, not > need to set > or > > Icon[en_GB]=sourcebank > > Icon[en_GB]=sourcebank <--- this is double, not need to set > > Hope it is more clear now :=) > > Ron > > > > > > > ------------------------------ > > Message: 3 > Date: Thu, 7 Feb 2008 22:27:39 +0000 > From: javier romero > Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager > To: mailing list for gambas users > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > > ---------------------------------------- > > From: sourceforge-raindog2 at ...94... > > To: gambas-user at lists.sourceforge.net > > Date: Tue, 5 Feb 2008 23:40:16 -0500 > > Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager > > > > On Tuesday 05 February 2008 14:51, Benoit Minisini wrote: > >> So I'd like to have more precision from the people that had > >> problems with the database manager on Ubuntu 7.10, and just said > >> "it does not work". > > > > Here is a screenshot of the gambas2 database manager working on Ubuntu > > 7.10 (the 64-bit version, no less.) Look at the console in the > > background to see the contents of /etc/issue and uname -a. > > > > http://www.kudla.org/gdbm-worksforme.png > > > > Rob > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > finally i know whats happens. It was the width of the form, i resize there > an the data form now is show. > Here are 3 screenshots > > firts with the original size(the instalation width), the data form is not > "show" > second i resize the table form > and third reload the data form and now is show. > > http://www.frocae.org/gambas/Pantallazo1.jpg > http://www.frocae.org/gambas/Pantallazo2.jpg > http://www.frocae.org/gambas/Pantallazo3.jpg > > > Regards > Javier > _________________________________________________________________ > MSN Noticias > http://noticias.msn.es/comunidad.aspx > > > ------------------------------ > > Message: 4 > Date: Thu, 7 Feb 2008 23:33:46 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager > To: mailing list for gambas users > Message-ID: <200802072333.46907.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On jeudi 7 f?vrier 2008, javier romero wrote: > > > > finally i know whats happens. It was the width of the form, i resize > there > > an the data form now is show. Here are 3 screenshots > > > > firts with the original size(the instalation width), the data form is > not > > "show" second i resize the table form > > and third reload the data form and now is show. > > > > http://www.frocae.org/gambas/Pantallazo1.jpg > > http://www.frocae.org/gambas/Pantallazo2.jpg > > http://www.frocae.org/gambas/Pantallazo3.jpg > > > > > > Regards > > Javier > > LOL! This is the bug in Splitter that I just fixed for the next 2.1release. > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 5 > Date: Thu, 7 Feb 2008 18:14:01 -0800 (PST) > From: 2020 > Subject: [Gambas-user] OPEN DMX USB Failed to open with Serial Port > To: gambas-user at lists.sourceforge.net > Message-ID: <15348079.post at ...1379...> > Content-Type: text/plain; charset=us-ascii > > > Hello folk, > I tried to connect to a DMX USB device with Gambas 2.0 Serial Port > example, > but freeze wen I click on open (Button1). > > http://www.nabble.com/file/p15348079/serialport_ss1.png > > The driver was loaded during my attempt; > > [ 2088.929843] usb 1-8: new full speed USB device using ohci_hcd and > address > 7 > [ 2089.024217] usb 1-8: configuration #1 chosen from 1 choice > [ 2089.025658] ftdi_sio 1-8:1.0: FTDI USB Serial Device converter detected > [ 2089.025687] > /build/buildd/linux-source-2.6.22-2.6.22 > /debian/build/custom-source-rt/drivers/usb/serial/ftdi_sio.c: > Detected FT232BM > [ 2089.025857] usb 1-8: FTDI USB Serial Device converter now attached to > ttyUSB0 > > Any ideas, thanks in advance. > > Sylvain. > > > > -- > View this message in context: > http://www.nabble.com/OPEN-DMX-USB-Failed-to-open-with-Serial-Port-tp15348079p15348079.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 6 > Date: Fri, 8 Feb 2008 14:39:07 +1100 > From: richard terry > Subject: [Gambas-user] Miscellaneous routines for text box validation > To: mailing list for gambas users > Message-ID: <200802081439.08124.rterry at ...1822...> > Content-Type: text/plain; charset="us-ascii" > > Hi all, > > My gambas learning project is progressing well (a contacts database > manager), > and I've got the point I can create new people/names/address(es), etc, now > have to fine tune the gui, so not wanting to re-invent the wheel, I > wondered > if anyone had in their possession, or pointers to it, code which would do > stuff like. > > for textboxes: > > Autocapitalise, or autocaps > Date validation routines/formatting routines > Name auto capitalisation eg for McBeth, or O'Neil etc > > Also In VB in the textbox routines one had (index, keyascii) and one > could > manipulate the keyascii value to whatever to either exclude keys or > autocapitalise things etc > > I wondered how this worked in gambas, as though I can detect the keypress, > I > couldnt see a way to send back a changed key value to the textbox. > > Thanks in anticipation. > > > Richard > > > > > ------------------------------ > > Message: 7 > Date: Fri, 8 Feb 2008 12:14:13 +0530 > From: "Mukul Khullar" > Subject: [Gambas-user] Re : Re: SHELL command problem > To: gambas-user at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > > Am trying to execute a command "aureport -f -i --summary --failed | > > /root/Desktop/try" which works really fine on the terminal and creates > an > > image file on the root directory. > > But, when I try to execute the same using SHELL "aureport -f -i > --summary > > --failed | /root/Desktop/try", the file gets generated but > > incorrectly(something like an empty text file). Is there some tweak or > some > > way by which I can get this command running, using the SHELL command ? > > > > Please help.. > > Thanking you, > > Mukul Khullar. > > >>Try to put a WAIT at the end of the SHELL sentence. > > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT > > >>Stefano > > > I have already tried the same command adding WAIT but in vain. Actually, > the first part of the command sends some data to the 2nd part of the > command > through the " | " operator, which is not happening via the SHELL command, > but happens fine when executed on the terminal. Any suggestions ?? > Thanks, > Mukul Khullar. > > > ------------------------------ > > Message: 8 > Date: Fri, 8 Feb 2008 10:14:42 +0100 > From: Stefano Palmeri > Subject: Re: [Gambas-user] Re : Re: SHELL command problem > To: mailing list for gambas users > Message-ID: <200802081014.42189.rospolosco at ...152...> > Content-Type: text/plain; charset="iso-8859-1" > > Alle 07:44, venerd? 8 febbraio 2008, Mukul Khullar ha scritto: > > > Am trying to execute a command "aureport -f -i --summary --failed | > > > /root/Desktop/try" which works really fine on the terminal and creates > an > > > image file on the root directory. > > > But, when I try to execute the same using SHELL "aureport -f -i > --summary > > > --failed | /root/Desktop/try", the file gets generated but > > > incorrectly(something like an empty text file). Is there some tweak or > > > > some > > > > > way by which I can get this command running, using the SHELL command ? > > > > > > Please help.. > > > Thanking you, > > > Mukul Khullar. > > > > > >>Try to put a WAIT at the end of the SHELL sentence. > > >> > > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT > > >> > > >>Stefano > > > > I have already tried the same command adding WAIT but in vain. > Actually, > > the first part of the command sends some data to the 2nd part of the > > command through the " | " operator, which is not happening via the SHELL > > command, but happens fine when executed on the terminal. Any suggestions > ?? > > Thanks, > > Mukul Khullar. > > Try this: > > SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT > > Stefano > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------ > > Message: 9 > Date: Fri, 8 Feb 2008 10:55:38 +0100 > From: rolf > Subject: Re: [Gambas-user] Re : Re: SHELL command problem > To: mailing list for gambas users > Message-ID: <200802081055.38911.rolf.frogs at ...221...> > Content-Type: text/plain; charset="iso-8859-15" > > Hi Mukul > : > > > But, when I try to execute the same using SHELL "aureport -f -i > --summary > > > --failed | /root/Desktop/try", the file gets generated but > > > incorrectly(something like an empty text file). Is there some tweak or > > > >>Try to put a WAIT at the end of the SHELL sentence. > > >> > > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT > > > > I have already tried the same command adding WAIT but in vain. > Actually, > > the first part of the command sends some data to the 2nd part of the > > command through the " | " operator, which is not happening via the SHELL > > command, but happens fine when executed on the terminal. Any suggestions > ?? > > Usually subshells in Linux did not have the PATH-variable set (correctly). > So > try to use absolut pathes for your commands, like: > > /usr/bin/aureport -f -i --summary --failed | /root/Desktop/try > > Fine regards > rolf > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 21, Issue 14 > ******************************************* > From rospolosco at ...152... Fri Feb 8 12:56:19 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 12:56:19 +0100 Subject: [Gambas-user] Miscellaneous routines for text box validation In-Reply-To: <200802081132.51495.rospolosco@...152...> References: <200802081439.08124.rterry@...1822...> <200802081132.51495.rospolosco@...152...> Message-ID: <200802081256.19550.rospolosco@...152...> Alle 11:32, venerd? 8 febbraio 2008, Stefano Palmeri ha scritto: > Alle 04:39, venerd? 8 febbraio 2008, richard terry ha scritto: > > Hi all, > > > > My gambas learning project is progressing well (a contacts database > > manager), and I've got the point I can create new > > people/names/address(es), etc, now have to fine tune the gui, so not > > wanting to re-invent the wheel, I wondered if anyone had in their > > possession, or pointers to it, code which would do stuff like. > > > > for textboxes: > > > > Autocapitalise, or autocaps > > Date validation routines/formatting routines > > Name auto capitalisation eg for McBeth, or O'Neil etc > > > > Also In VB in the textbox routines one had (index, keyascii) and one > > could manipulate the keyascii value to whatever to either exclude keys or > > autocapitalise things etc > > > > I wondered how this worked in gambas, as though I can detect the > > keypress, I couldnt see a way to send back a changed key value to the > > textbox. > > > > Thanks in anticipation. > > > > > > Richard > > Hi, Richard. > > In the attached example, you have a form with a textbox. > What it does: > > 1) it autocapitalises the text when it changes > > 2) print the ascii code of the pressed key > > 3) it doesn't allow "W" or "w" > > 4) when you press space bar it becomes an underscore > > all is commented in the code, so you see what does what. > > I think it will not be difficult for you to manage Mc or O' > using string manipulation functions. > > Regards, > > Stefano Palmeri > Please, use the attached 0.0.2 source as I fixed a bug. Stefano > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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: textboxstuff-0.0.2.tar.gz Type: application/x-tgz Size: 8181 bytes Desc: not available URL: From rospolosco at ...152... Fri Feb 8 13:18:37 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 13:18:37 +0100 Subject: [Gambas-user] bug or normal when Upper$ a textbox text? Message-ID: <200802081318.38007.rospolosco@...152...> Hi, Benoit. I noticed this behaviour using Upper$. I've attached a little example to explain better. To reproduce: 1) Run the example; 2) in the textbox labelled bad type: aaaa (it becomes AAAA) 3) move the cursor on second A and type b here's strange: b becomes B (that's right) but the cursor moves at the end of the text (that's bad, for me :-) ). It would be better that the cursor stays in the position where it was before the Upper function was called. Do the same in textbox labelled good to see what I expect. Bye, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: upper-0.0.1.tar.gz Type: application/x-tgz Size: 7793 bytes Desc: not available URL: From gambas at ...1... Fri Feb 8 13:25:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 8 Feb 2008 13:25:59 +0100 Subject: [Gambas-user] bug or normal when Upper$ a textbox text? In-Reply-To: <200802081318.38007.rospolosco@...152...> References: <200802081318.38007.rospolosco@...152...> Message-ID: <200802081325.59738.gambas@...1...> On vendredi 8 f?vrier 2008, Stefano Palmeri wrote: > Hi, Benoit. > > I noticed this behaviour using Upper$. > > I've attached a little example to explain better. > > To reproduce: > > 1) Run the example; > 2) in the textbox labelled bad type: aaaa (it becomes AAAA) > 3) move the cursor on second A and type b > > here's strange: b becomes B (that's right) but the cursor moves > at the end of the text (that's bad, for me :-) ). > > It would be better that the cursor stays > in the position where it was before the Upper function was called. > > Do the same in textbox labelled good to see what I expect. > > Bye, > > Stefano If you reassign the Text property of a TextBox, the cursor goes to the end. Inserting text works as if you did it by hand. So you have to do what you did for your second TextBox. Regards, -- Benoit Minisini From rospolosco at ...152... Fri Feb 8 13:27:22 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 13:27:22 +0100 Subject: [Gambas-user] bug or normal when Upper$ a textbox text? In-Reply-To: <200802081325.59738.gambas@...1...> References: <200802081318.38007.rospolosco@...152...> <200802081325.59738.gambas@...1...> Message-ID: <200802081327.22623.rospolosco@...152...> Alle 13:25, venerd? 8 febbraio 2008, Benoit Minisini ha scritto: > On vendredi 8 f?vrier 2008, Stefano Palmeri wrote: > > Hi, Benoit. > > > > I noticed this behaviour using Upper$. > > > > I've attached a little example to explain better. > > > > To reproduce: > > > > 1) Run the example; > > 2) in the textbox labelled bad type: aaaa (it becomes AAAA) > > 3) move the cursor on second A and type b > > > > here's strange: b becomes B (that's right) but the cursor moves > > at the end of the text (that's bad, for me :-) ). > > > > It would be better that the cursor stays > > in the position where it was before the Upper function was called. > > > > Do the same in textbox labelled good to see what I expect. > > > > Bye, > > > > Stefano > > If you reassign the Text property of a TextBox, the cursor goes to the end. > Inserting text works as if you did it by hand. So you have to do what you > did for your second TextBox. > > Regards, Ok, thank you. Stefano From gambas at ...1... Fri Feb 8 13:27:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 8 Feb 2008 13:27:27 +0100 Subject: [Gambas-user] Picture box problem In-Reply-To: References: Message-ID: <200802081327.27477.gambas@...1...> On vendredi 8 f?vrier 2008, Mukul Khullar wrote: > Thank you all for my previous Shell command query. I have another problem. > Actually, I am generating some kind of image file for my project which > changes according to the option selected on my GUI. I am displaying it > using a picture box. > But the problem is that, since I am giving the path of the image file, it > doesn't refresh and shows the last image(maybe cached)itself. > I tried to use picturebox.refresh , even main form.refresh, but to no use. > I suppose, the picture box takes the image into a buffer, and next time if > the same path is specified, it uses the same image(the name of the image > being the same). But, since the image file is changing on the hard disk, it > should take the refreshed path(image file). > How can I do the same? I hope i've been able to describe my problem. > > P.s In short, the path given on the picturebox.picture property loads the > same image file, even when the picturebox.picture property is set > again(with the same path,though refreshed image file). Please help. > Thanks once again, > Mukul Khullar. > If you use Picture[] to get your images, you actually use an internal cache. So, you must reassing the image in the cache by using Picture["xxx"] = Picture.Load("xxx"), or, better, you should not use the cache for images that could change, i.e. just use Picture.Load(). Regards, -- Benoit Minisini From maximvonk at ...626... Fri Feb 8 13:35:35 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 8 Feb 2008 04:35:35 -0800 (PST) Subject: [Gambas-user] Strange second instance that never opens In-Reply-To: <200802072223.48843.ronstk@...239...> References: <15253495.post@...1379...> <47A60AA6.2020305@...680...> <15259925.post@...1379...> <200802040027.00205.gambas@...1...> <15266252.post@...1379...> <200802041722.33192.ronstk@...239...> <15273838.post@...1379...> <200802050714.16956.ronstk@...239...> <15307512.post@...1379...> <200802061943.08111.ronstk@...239...> <15331847.post@...1379...> <200802072223.48843.ronstk@...239...> Message-ID: <15354438.post@...1379...> Thanks Ron -- View this message in context: http://www.nabble.com/Strange-second-instance-that-never-opens-tp15253495p15354438.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Fri Feb 8 13:54:08 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 8 Feb 2008 04:54:08 -0800 (PST) Subject: [Gambas-user] Packaged programs - Update or reinstall? Message-ID: <15354774.post@...1379...> Hi there. I have several small programs installed that I packaged with the Ubuntu option in the Gambas package creator. As with all applications they are being updated as time goes by, and my question is this: Is there a way to update a currently installed program with the latest version, or do I need to uninstall the old version and reinstall the newer one? (I'm using Ubuntu 7.10 and Gambas 2.0.0) Cheers Max -- View this message in context: http://www.nabble.com/Packaged-programs---Update-or-reinstall--tp15354774p15354774.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...9... Fri Feb 8 14:23:01 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 08 Feb 2008 14:23:01 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200802071554.31919.gambas@...1...> References: <200801201412.15879.scatman@...1832...> <1202328191.5551.4.camel@...40...> <200802071554.31919.gambas@...1...> Message-ID: <1202476981.5550.7.camel@...40...> Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini: > On mercredi 6 f?vrier 2008, Charlie Reinl wrote: > > Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > On dimanche 20 janvier 2008, scatman wrote: > > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > > > > > > > Hello, > > > > > > > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- > > > > > > >64 .cac he-2 ", O_RDONLY) = 14 > > > > > > > > > > > > > > and so on. > > > > > > > > > > > > > > very strange. > > > > > > > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > > > > > > > QT-3.3.8-r4 > > > > > > > > Does it change anything if you run a Gambas project by typing 'gbx3 -p' > > > > in a console inside the project directory? > > > > > > No, it?s the same. See Attachment. > > > > Salut, > > > > had my first go with the gambas2 (from svn 1061) today on gentoo. > > > > after 'gambas2' on the prompt, I had that ( and see also the attached > > png) > > > > Fontconfig warning: no elements found. Check configuration. > > Fontconfig warning: adding /var/cache/fontconfig > > Fontconfig warning: adding ~/.fontconfig > > The messages tell that there is a fontconfig configuration problem. Do you > have the same message if you run another QT3 application? > Salut Benoit, hadn't much time yesterday, so I posted after quick tests my results. Have you ideas about QT3 application which I can run to test that ? I haven't planned, to work with gambas2 during the next few weeks, so if you want to carry out tests, I can do this as long as my time permits. Amicalment Charlie From nix.or.die at ...1601... Fri Feb 8 15:15:57 2008 From: nix.or.die at ...1601... (Gabriel C) Date: Fri, 08 Feb 2008 15:15:57 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <1202476981.5550.7.camel@...40...> References: <200801201412.15879.scatman@...1832...> <1202328191.5551.4.camel@...40...> <200802071554.31919.gambas@...1...> <1202476981.5550.7.camel@...40...> Message-ID: <47AC641D.5090605@...1601...> Charlie Reinl wrote: > Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini: >> On mercredi 6 f?vrier 2008, Charlie Reinl wrote: >>> Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: >>>> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: >>>>> On dimanche 20 janvier 2008, scatman wrote: >>>>>> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: >>>>>> >>>>>> Hello, >>>>>> >>>>>>>> open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- >>>>>>>> 64 .cac he-2 ", O_RDONLY) = 14 >>>>>>>> >>>>>>>> and so on. >>>>>>>> >>>>>>>> very strange. >>>>>>> Which GUI library do you use: QT or GTK+ ? >>>>>> QT-3.3.8-r4 >>>>> Does it change anything if you run a Gambas project by typing 'gbx3 -p' >>>>> in a console inside the project directory? >>>> No, it?s the same. See Attachment. >>> Salut, >>> >>> had my first go with the gambas2 (from svn 1061) today on gentoo. >>> >>> after 'gambas2' on the prompt, I had that ( and see also the attached >>> png) >>> >>> Fontconfig warning: no elements found. Check configuration. >>> Fontconfig warning: adding /var/cache/fontconfig >>> Fontconfig warning: adding ~/.fontconfig >> The messages tell that there is a fontconfig configuration problem. Do you >> have the same message if you run another QT3 application? >> > Salut Benoit, > > hadn't much time yesterday, so I posted after quick tests my results. > Have you ideas about QT3 application which I can run to test that ? > I haven't planned, to work with gambas2 during the next few weeks, so if > you want to carry out tests, I can do this as long as my time permits. I have an report from a user in Frugalware getting that when installing gambas2 from 'source' / 'svn'. I myself cannot reproduce that , however you can try to run : fc-cache -f -r -s -v as root. > > Amicalment > Charlie Regards, Gabriel From gambas at ...1... Fri Feb 8 15:36:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 8 Feb 2008 15:36:41 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <47AC641D.5090605@...1601...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> Message-ID: <200802081536.41443.gambas@...1...> On vendredi 8 f?vrier 2008, Gabriel C wrote: > I have an report from a user in Frugalware getting that when installing > gambas2 from 'source' / 'svn'. > > I myself cannot reproduce that , however you can try to run : > > fc-cache -f -r -s -v as root. > Is it on a Gentoo system? I don't think this problem is really Gambas' fault, as I do nothing special about fonts. -- Benoit Minisini From nix.or.die at ...1601... Fri Feb 8 15:52:06 2008 From: nix.or.die at ...1601... (Gabriel C) Date: Fri, 08 Feb 2008 15:52:06 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200802081536.41443.gambas@...1...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> <200802081536.41443.gambas@...1...> Message-ID: <47AC6C96.3090604@...1601...> Benoit Minisini wrote: > On vendredi 8 f?vrier 2008, Gabriel C wrote: >> I have an report from a user in Frugalware getting that when installing >> gambas2 from 'source' / 'svn'. >> >> I myself cannot reproduce that , however you can try to run : >> >> fc-cache -f -r -s -v as root. >> > > Is it on a Gentoo system? No is Frugalware Linux. > > I don't think this problem is really Gambas' fault, as I do nothing special > about fonts. > Also I could not reproduce that problem at all, for me gambas2 works fine on the same Frugalware version. From marco at ...1785... Fri Feb 8 17:19:09 2008 From: marco at ...1785... (Marco Mascia) Date: Fri, 08 Feb 2008 17:19:09 +0100 Subject: [Gambas-user] Serial Port Reading Issue Message-ID: <47AC80FD.7010601@...1785...> Hi there! We have some trouble making a Serial port Read (first time that i work on it). Our card reader is a device that sends a "await command" every 500 ms (Note: the device works on a serial port standard RS232 br: 19200, 8-N-1, no flow control.) if we do from shell cat /dev/ttyS0/ we obtain: INSERISCI COMANDO INSERISCI COMANDO MEMORIZZAZIONE CODICE ->101027256<- (a card read) INSERISCI COMANDO ... etc Instead a read on gambas console with this code: PUBLIC SUB Sport_Read() DIM s AS String READ #Sport, s, Lof(Sport) print s END we obtain: INSERISC I COMANDO INSERISC I COMANDO MEMORIZZ AZIONE CODICE ->10102725 6<- INSERISC I COMANDO ... etc problems: Weird output or i am a noob and i miss something? :D I need to extract the card code between "->" and "<-" from the stream. any help/suggestion? anybody knows how to obtain the same result of cat command inside gambas? tnx in advance. --- Marco From ronstk at ...239... Fri Feb 8 18:01:59 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 8 Feb 2008 18:01:59 +0100 Subject: [Gambas-user] OPEN DMX USB Failed to open with Serial Port In-Reply-To: <15348079.post@...1379...> References: <15348079.post@...1379...> Message-ID: <200802081802.00157.ronstk@...239...> On Friday 08 February 2008 03:14, 2020 wrote: > > Hello folk, > I tried to connect to a DMX USB device with Gambas 2.0 Serial Port example, > but freeze wen I click on open (Button1). > > http://www.nabble.com/file/p15348079/serialport_ss1.png > > The driver was loaded during my attempt; > > [ 2088.929843] usb 1-8: new full speed USB device using ohci_hcd and address > 7 > [ 2089.024217] usb 1-8: configuration #1 chosen from 1 choice > [ 2089.025658] ftdi_sio 1-8:1.0: FTDI USB Serial Device converter detected > [ 2089.025687] > /build/buildd/linux-source-2.6.22-2.6.22/debian/build/custom-source-rt/drivers/usb/serial/ftdi_sio.c: > Detected FT232BM > [ 2089.025857] usb 1-8: FTDI USB Serial Device converter now attached to > ttyUSB0 > > Any ideas, thanks in advance. > > Sylvain. > > > When USB devices are attached to the system, the hotplug event starts. This will add the /dev/ttyUSB0 and set the rights/permission to root:root You need it however as user and can add a configuration line to a hotplug event script wich detect and mount the device to change this. I have done something like this to add a POS display to tell me from a php page the debug echo's durring development the php script. Works from inside gambas too. I hope next will help. Ron For me the device is called 'vfdisplay' on kubuntu 6.10 ======================================= rc.local chmod 777 /dev/ttyUSB0 This add to rc.local is done primair for other things. ==================================== I did add the following files to the rules.d 25-vfdisplay.rules ( the name ) 45-vfdisplay.rules ( the permission ) 65-vfdisplay.rules ( the symlink ) The leading number is the group name=20/perm=40/symlnk=60 with 5 add by me regarding the udev rules. /etc/udev/rules.d ------------------ root at ...1311...:/etc/udev/rules.d# cat 25-vfdisplay.rules # This file establishes the device names according to Ubuntu policy. # See udev(8) for syntax. # # Permissions and ownership of devices must not be set here, but in # 40-permissions.rules; user-friendly symlinks to devices should be # set in 60-symlinks.rules. # USB devices (usbfs replacement), group under /dev/bus/usb SUBSYSTEM!="usb_device", GOTO="usb_device_end" IMPORT{program}="usb_device_name --export %k" ENV{USB_BUS}=="?*", ENV{USB_DEV}=="?*", \ NAME="bus/usb/$env{USB_BUS}/$env{USB_DEV}" LABEL="usb_device_end" ------------------- root at ...1311...:/etc/udev/rules.d# cat 45-vfdisplay.rules # This file establishes permissions and ownership of devices according # to Ubuntu policy. See udev(8) for syntax. # # The names of the devices must not be set here, but in 20-names.rules; # user-friendly symlinks (which need no permissions or ownership) should # be set in 60-symlinks.rules. # Serial devices KERNEL=="ttyUSB[0-9]*", GROUP="www-data", MODE="0660" # USB devices (usbfs replacement) SUBSYSTEM=="usb_device", MODE="0664" ------------------- root at ...1311...:/etc/udev/rules.d# cat 65-vfdisplay.rules # This file establishes user-friendly symlinks to devices according to # Ubuntu policy. See udev(8) for syntax. # # The names of the actual devices themselves must not be set here, but # in 20-names.rules; the permissions and ownership of those devices # should be set in 40-permissions.rules. # create /dev/vfdisplay symlink for vfdisplay KERNEL=="ttyUSB*", SYSFS{product}=="USB-Serial Controller", \ <----- SYMLINK+="vfdisplay" ================================ root at ...1311...:/dev# ls -l /dev/ttyUSB0 crw-rw---- 1 root www-data 188, 0 2008-02-08 17:10 /dev/ttyUSB0 cat /var/log/vfdphp > /dev/ttyUSB0 shows the php log now From rospolosco at ...152... Fri Feb 8 18:06:19 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Feb 2008 18:06:19 +0100 Subject: [Gambas-user] Serial Port Reading Issue In-Reply-To: <47AC80FD.7010601@...1785...> References: <47AC80FD.7010601@...1785...> Message-ID: <200802081806.19206.rospolosco@...152...> Alle 17:19, venerd? 8 febbraio 2008, Marco Mascia ha scritto: > anybody knows how to obtain the same result of cat command inside gambas? DIM sShellOutput AS String SHELL "cat your_file 2>&1" TO sShellOutput PRINT sShellOutput Stefano From ronstk at ...239... Fri Feb 8 18:22:03 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 8 Feb 2008 18:22:03 +0100 Subject: [Gambas-user] Re : Re: SHELL command problem In-Reply-To: <200802081014.42189.rospolosco@...152...> References: <200802081014.42189.rospolosco@...152...> Message-ID: <200802081822.03801.ronstk@...239...> On Friday 08 February 2008 10:14, Stefano Palmeri wrote: >> >>Try to put a WAIT at the end of the SHELL sentence. >> >> >> >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT >> >> >> >>Stefano > > ?I have already tried the same command adding WAIT but in vain. Actually, > > the first part of the command sends some data to the 2nd part of the > > command through the " | " operator, which is not happening via the SHELL > > command, but happens fine when executed on the terminal. Any suggestions ?? > > Thanks, > > Mukul Khullar. > > Try this: > > SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT > > Stefano > Or this one: >> >>SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT to: SHELL "(aureport -f -i --summary --failed | /root/Desktop/try)" WAIT Take not of the '(' and ')' without the () you have to read SHELL "command1 | command2" where at the '|' there is a jump back from each command to the initiating shell and here is gambas the caller. The env (where the temp pipe exists) is lost and given again to command2. By using the () all is executed in one subshell with same environment for both commands and keeping the temp pipe. (When I'm right, it is however not exact how it works) Adding the () did solve in the past for someone else the environment problems with gambas. Ron From ronstk at ...239... Fri Feb 8 18:26:14 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 8 Feb 2008 18:26:14 +0100 Subject: [Gambas-user] OPEN DMX USB Failed to open with Serial Port In-Reply-To: <200802081802.00157.ronstk@...239...> References: <15348079.post@...1379...> <200802081802.00157.ronstk@...239...> Message-ID: <200802081826.14768.ronstk@...239...> On Friday 08 February 2008 18:01, Ron Onstenk wrote: > # create /dev/vfdisplay symlink for vfdisplay > KERNEL=="ttyUSB*", SYSFS{product}=="USB-Serial Controller", \ ? <----- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SYMLINK+="vfdisplay" > Oeps :=( Must be KERNEL=="ttyUSB*", SYSFS{product}=="USB-Serial Controller", \ SYMLINK+="vfdisplay" Also take note of the ident to 'SYMLINK' in the files. This is concat of the above line with the '\' KERNEL=="ttyUSB*", SYSFS{product}=="USB-Serial Controller", SYMLINK+="vfdisplay" Ron From Karl.Reinl at ...9... Fri Feb 8 18:56:22 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 08 Feb 2008 18:56:22 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200802081536.41443.gambas@...1...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> <200802081536.41443.gambas@...1...> Message-ID: <1202493382.5550.9.camel@...40...> Am Freitag, den 08.02.2008, 15:36 +0100 schrieb Benoit Minisini: > On vendredi 8 f?vrier 2008, Gabriel C wrote: > > I have an report from a user in Frugalware getting that when installing > > gambas2 from 'source' / 'svn'. > > > > I myself cannot reproduce that , however you can try to run : > > > > fc-cache -f -r -s -v as root. > > > > Is it on a Gentoo system? > > I don't think this problem is really Gambas' fault, as I do nothing special > about fonts. Yes, for me is it on Gentoo System. From Mike at ...680... Fri Feb 8 19:42:39 2008 From: Mike at ...680... (Mike Keehan) Date: Fri, 08 Feb 2008 18:42:39 +0000 Subject: [Gambas-user] Serial Port Reading Issue In-Reply-To: <47AC80FD.7010601@...1785...> References: <47AC80FD.7010601@...1785...> Message-ID: <47ACA29F.3090503@...680...> Hi Marco. The 'READ #Sport' returns after a number of characters, or after a timeout. It does not give you a whole line of text, usually. I think it is the 'Print s' that is making it look like separate partial lines. You will need to build up another string adding in each part of the 'Read Sport'. And then scan this complete string to see what has been received. For a simple test, try this (untested I'm afraid :( ) PUBLIC SUB Sport_Read() DIM s AS String DIM t as String READ #Sport, s, Lof(Sport) t = t & s Print t END This will repeat all it's input each time the READ occurs, but it might help explain what is happening. Mike. Marco Mascia wrote: > Hi there! > We have some trouble making a Serial port Read (first time that i work > on it). > > Our card reader is a device that sends a "await command" every 500 ms > (Note: the device works on a serial port standard RS232 br: 19200, > 8-N-1, no flow control.) > > if we do from shell cat /dev/ttyS0/ we obtain: > > INSERISCI COMANDO > INSERISCI COMANDO > MEMORIZZAZIONE CODICE ->101027256<- (a card read) > INSERISCI COMANDO > ... > etc > > > Instead a read on gambas console with this code: > > PUBLIC SUB Sport_Read() > > DIM s AS String > > READ #Sport, s, Lof(Sport) > print s > > END > > > we obtain: > > > INSERISC > I COMANDO > > INSERISC > I COMANDO > > MEMORIZZ > AZIONE CODICE ->10102725 > 6<- > > INSERISC > I COMANDO > ... > etc > > problems: > > Weird output or i am a noob and i miss something? :D > I need to extract the card code between "->" and "<-" from the stream. > any help/suggestion? > > anybody knows how to obtain the same result of cat command inside gambas? > > tnx in advance. > > --- > Marco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From nando_f at ...951... Sat Feb 9 03:00:17 2008 From: nando_f at ...951... (nando) Date: Fri, 8 Feb 2008 21:00:17 -0500 Subject: [Gambas-user] Serial Port Reading Issue In-Reply-To: <47AC80FD.7010601@...1785...> References: <47AC80FD.7010601@...1785...> Message-ID: <20080209014606.M32635@...951...> The SPort_Read() routine runs when there are SOME characters received from the serial port.. and they get printed with the PRINT statement. The PRINT statement adds the LineFeed, so the next print statement begins on the next line. So: INSERISC <----These characters were available with one SPort_Read event I COMANDO <----These characters were available with next SPort_Read event You have to remember that data transfer at 19200 is very slow compared to the speed the CPU works, so it can print what it has before all characters arrive. Here is an idea to solve your problem: 1) Have a public string PUBLIC serialportread AS STRING 2) the following will accumulate characters received in 'serialportread' PUBLIC SUB Sport_Read() DIM s AS String READ #Sport, s, Lof(Sport) serialportread = serialportread & s 'Test here if 'serialportread' has "->" and "<-" in it 'if it does, then use it. Don't forget to clear serialportread 'if it doesn't have -> and <-, just exit..hopefully the next event will have it. END -Fernando ---------- Original Message ----------- From: Marco Mascia To: gambas-user at lists.sourceforge.net Sent: Fri, 08 Feb 2008 17:19:09 +0100 Subject: [Gambas-user] Serial Port Reading Issue > Hi there! > We have some trouble making a Serial port Read (first time that i work > on it). > > Our card reader is a device that sends a "await command" every 500 ms > (Note: the device works on a serial port standard RS232 br: 19200, > 8-N-1, no flow control.) > > if we do from shell cat /dev/ttyS0/ we obtain: > > INSERISCI COMANDO > INSERISCI COMANDO > MEMORIZZAZIONE CODICE ->101027256<- (a card read) > INSERISCI COMANDO > ... > etc > > Instead a read on gambas console with this code: > > PUBLIC SUB Sport_Read() > > DIM s AS String > > READ #Sport, s, Lof(Sport) > print s > > END > > we obtain: > > INSERISC > I COMANDO > > INSERISC > I COMANDO > > MEMORIZZ > AZIONE CODICE ->10102725 > 6<- > > INSERISC > I COMANDO > ... > etc > > problems: > > Weird output or i am a noob and i miss something? :D > I need to extract the card code between "->" and "<-" from the stream. > any help/suggestion? > > anybody knows how to obtain the same result of cat command inside gambas? > > tnx in advance. > > --- > Marco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nxgtrturbo at ...626... Sat Feb 9 06:42:23 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Fri, 8 Feb 2008 21:42:23 -0800 Subject: [Gambas-user] Installing a Gambas DEB package Message-ID: <688afe140802082142n7f359eb6i6d16438290900df7@...627...> Installing a Gambas DEB package Hi, I finished the first release of my Gambas2 application so I create a Ubuntu package (DEB of course), everything was perfect (or it looked like) So When I tried to install my DEB in my machine I got errors: nxgtr at ...1856...:~/Desktop/install$ sudo dpkg -i arpi_0-0_i386.deb Password: Selecting previously deselected package arpi. (Reading database ... 145704 files and directories currently installed.) Unpacking arpi (from arpi_0-0_i386.deb) ... dpkg: dependency problems prevent configuration of arpi: arpi depends on gambas2-gb-debug (>= 1.9.48); however: Package gambas2-gb-debug is not installed. arpi depends on gambas2-gb-debug (<< 2.1); however: Package gambas2-gb-debug is not installed. dpkg: error processing arpi (--install): dependency problems - leaving unconfigured Errors were encountered while processing: arpi My question is, even when I have a complete Gambas2 development setup do I need to install something else? If not, so, what do you think is happening? If yes, is gambas2-gb-debug the only package I need to install? Thanks a Lot -- Nx GT-R From kaoticus60 at ...151... Sat Feb 9 07:25:41 2008 From: kaoticus60 at ...151... (andy60) Date: Sat, 09 Feb 2008 07:25:41 +0100 Subject: [Gambas-user] HowTo parse html data In-Reply-To: References: Message-ID: <47AD4765.3020902@...151...> I would like to parse html data on a web page. Has Anyone developed a class/routine to make this job? Thank you for your attention. Andy From jredrejo at ...626... Sat Feb 9 10:16:43 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sat, 9 Feb 2008 10:16:43 +0100 Subject: [Gambas-user] Installing a Gambas DEB package In-Reply-To: <688afe140802082142n7f359eb6i6d16438290900df7@...627...> References: <688afe140802082142n7f359eb6i6d16438290900df7@...627...> Message-ID: <8eb28a500802090116j13ac0275vb45894a62e77df41@...627...> gambas2-gb-debug does not exist. You should unselect debug component in your project before creating the debian package. Debug component does not make sense unless you're developing a new gambas IDE, and in such case you should have enough knowledge to create the packages manually. Cheers. Jos? L. 2008/2/9, Nx GT-R BOY : > > Installing a Gambas DEB package > > Hi, I finished the first release of my Gambas2 application so I create a > Ubuntu package (DEB of course), everything was perfect (or it looked like) > > So When I tried to install my DEB in my machine I got errors: > nxgtr at ...1856...:~/Desktop/install$ sudo dpkg -i arpi_0-0_i386.deb > Password: > Selecting previously deselected package arpi. > (Reading database ... 145704 files and directories currently installed.) > Unpacking arpi (from arpi_0-0_i386.deb) ... > dpkg: dependency problems prevent configuration of arpi: > arpi depends on gambas2-gb-debug (>= 1.9.48); however: > Package gambas2-gb-debug is not installed. > arpi depends on gambas2-gb-debug (<< 2.1); however: > Package gambas2-gb-debug is not installed. > dpkg: error processing arpi (--install): > dependency problems - leaving unconfigured > Errors were encountered while processing: > arpi > > My question is, even when I have a complete Gambas2 development setup do I > need to install something else? > > If not, so, what do you think is happening? > > If yes, is gambas2-gb-debug the only package I need to install? > > Thanks a Lot > -- > Nx GT-R > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Feb 9 12:16:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 9 Feb 2008 12:16:34 +0100 Subject: [Gambas-user] Installing a Gambas DEB package In-Reply-To: <8eb28a500802090116j13ac0275vb45894a62e77df41@...627...> References: <688afe140802082142n7f359eb6i6d16438290900df7@...627...> <8eb28a500802090116j13ac0275vb45894a62e77df41@...627...> Message-ID: <200802091216.34774.gambas@...1...> On samedi 9 f?vrier 2008, Jos? Luis Redrejo wrote: > gambas2-gb-debug does not exist. > You should unselect debug component in your project before creating the > debian package. > Debug component does not make sense unless you're developing a new gambas > IDE, and in such case you should have enough knowledge to create the > packages manually. > > Cheers. > Jos? L. > > 2008/2/9, Nx GT-R BOY : > > Installing a Gambas DEB package > > > > Hi, I finished the first release of my Gambas2 application so I create a > > Ubuntu package (DEB of course), everything was perfect (or it looked > > like) > > > > So When I tried to install my DEB in my machine I got errors: > > nxgtr at ...1856...:~/Desktop/install$ sudo dpkg -i arpi_0-0_i386.deb > > Password: > > Selecting previously deselected package arpi. > > (Reading database ... 145704 files and directories currently installed.) > > Unpacking arpi (from arpi_0-0_i386.deb) ... > > dpkg: dependency problems prevent configuration of arpi: > > arpi depends on gambas2-gb-debug (>= 1.9.48); however: > > Package gambas2-gb-debug is not installed. > > arpi depends on gambas2-gb-debug (<< 2.1); however: > > Package gambas2-gb-debug is not installed. > > dpkg: error processing arpi (--install): > > dependency problems - leaving unconfigured > > Errors were encountered while processing: > > arpi > > > > My question is, even when I have a complete Gambas2 development setup do > > I need to install something else? > > > > If not, so, what do you think is happening? > > > > If yes, is gambas2-gb-debug the only package I need to install? > > > > Thanks a Lot > > -- > > Nx GT-R Actually this is a bug in the IDE. It should not add gb.debug as a dependency, as this component is located inside the runtime package. I will fix it. Regards, -- Benoit Minisini From steven at ...1545... Sat Feb 9 13:29:13 2008 From: steven at ...1545... (Steven Drinnan) Date: Sat, 09 Feb 2008 20:29:13 +0800 Subject: [Gambas-user] GTK problem Message-ID: <1202560153.21200.4.camel@...1857...> I use gnome by default and I am running Fedora core 9 But when I use GTK controls or GUI control it displays 2 key presses for every press i make. ( QT works fine). This goes for using database manager. Please do not tell me to use KDE. Many thanks steven From o.s.p at ...69... Sat Feb 9 15:46:09 2008 From: o.s.p at ...69... (o.s.p) Date: Sat, 09 Feb 2008 14:46:09 +0000 Subject: [Gambas-user] no fonts at all In-Reply-To: <47AC6C96.3090604@...1601...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> <200802081536.41443.gambas@...1...> <47AC6C96.3090604@...1601...> Message-ID: <47ADBCB1.9060509@...69...> Gabriel C ha scritto: > Benoit Minisini wrote: > >> On vendredi 8 f?vrier 2008, Gabriel C wrote: >> >>> I have an report from a user in Frugalware getting that when installing >>> gambas2 from 'source' / 'svn'. >>> >>> I myself cannot reproduce that , however you can try to run : >>> >>> fc-cache -f -r -s -v as root. >>> >>> >> Is it on a Gentoo system? >> > > No is Frugalware Linux. > > >> I don't think this problem is really Gambas' fault, as I do nothing special >> about fonts. >> >> > > Also I could not reproduce that problem at all, for me gambas2 works fine on the same Frugalware version. > > here i am! frugalware daily updated. till the 1.9.xxx series i haven't had any problem with gambas i have qt3 and kde3.5 installed but i can't try qt4 for space problems gambas is the only application with this problem on my system all paths and sections into fonts.conf are correct fc-cache reports around 500 fonts... but on other systems with this distro (i've posted this problem on the forums) this problem doesn't exist... i'm waiting for a package created by a programmer to be added to the repos to see what happens. thanks From nix.or.die at ...1601... Sat Feb 9 16:11:55 2008 From: nix.or.die at ...1601... (Gabriel C) Date: Sat, 09 Feb 2008 16:11:55 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <47ADBCB1.9060509@...69...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> <200802081536.41443.gambas@...1...> <47AC6C96.3090604@...1601...> <47ADBCB1.9060509@...69...> Message-ID: <47ADC2BB.6080808@...1601...> o.s.p wrote: > Gabriel C ha scritto: >> Benoit Minisini wrote: >> >>> On vendredi 8 f?vrier 2008, Gabriel C wrote: >>> >>>> I have an report from a user in Frugalware getting that when installing >>>> gambas2 from 'source' / 'svn'. >>>> >>>> I myself cannot reproduce that , however you can try to run : >>>> >>>> fc-cache -f -r -s -v as root. >>>> >>>> >>> Is it on a Gentoo system? >>> >> No is Frugalware Linux. >> >> >>> I don't think this problem is really Gambas' fault, as I do nothing special >>> about fonts. >>> >>> >> Also I could not reproduce that problem at all, for me gambas2 works fine on the same Frugalware version. >> >> > here i am! > frugalware daily updated. > till the 1.9.xxx series i haven't had any problem with gambas > i have qt3 and kde3.5 installed but i can't try qt4 for space problems > gambas is the only application with this problem on my system > all paths and sections into fonts.conf are correct > fc-cache reports around 500 fonts... > but on other systems with this distro (i've posted this problem on the > forums) > this problem doesn't exist... > i'm waiting for a package created by a programmer to be added to the repos > to see what happens. s/programmer/developer/ :P , which is me :) Anyway , I'm with Benoit , can't see how this can be caused by gambas itself. > thanks > Gabriel From sylvain.marleau at ...647... Sat Feb 9 16:21:41 2008 From: sylvain.marleau at ...647... (2020) Date: Sat, 9 Feb 2008 07:21:41 -0800 (PST) Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? Message-ID: <15372045.post@...1379...> Hello folk, I am trying to migrate a VB6 project to Gambas 2.0. My VB6 project require ftd2xx.dll, but in xubuntu 7.10 I will used ftdi_sio driver (FTDI USB Serial Device converter). All I want to do is to call FTDI functions from Gambas 2.0 project. Snippet code from my VB6 project; Private Declare Function FT_Open Lib "FTD2XX.DLL" (ByVal intDeviceNumber As Integer, ByRef lngHandle As Long) As Long Any ideas, thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/Migrate-VB6-project-to-Gambas--2.0---tp15372045p15372045.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...1652... Sun Feb 10 15:02:51 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 10 Feb 2008 15:02:51 +0100 Subject: [Gambas-user] Konquiror Message-ID: <1202652171.11979.3.camel@...1816...> Hi, I use the webbrowser control in my app. it is set to the url : http://www.revimmo.com/agence_interne_2.php It's a map application with google maps. If I do the URL in konquiror it displays just fine. If I do it in the Gambas component, the maps donnot display, google send that the resolution is not available (which is not true) Any ideas ? Regards, Steven From topplereffect at ...1858... Sun Feb 10 20:47:43 2008 From: topplereffect at ...1858... (Laxminarayan AB) Date: Mon, 11 Feb 2008 01:17:43 +0530 Subject: [Gambas-user] classic asp and vbscript compatibility Message-ID: <200802110117.44085.topplereffect@...1858...> Hi all, is there an attempt to make vbscript and jscript conversion or run directly under gambas? What i know so far: - compiled gambas 2 from source - works fine - saw the excellent set of examples, but gambas web runs as CGI, afaik - have a long familiarity with MS VB, VB.Net What i would like to see or do is gambas as an apache module or with a native web server to host "ASP" applications. I know that writing a web server is not an easy task. I know that Gambas is not aiming to repeat the mistakes of VB. So, maybe the VBScript API can be emulated by a wrapper over gb web, just to maintain syntax compatiblity. Debugging and other things can be added while improving the port. (Or does it need to be designed into new code?) The need for ASP compatibility is that MS is trying to phase out ASP and there is a ton of code in ASP. And many users of ASP. MS does not mind ditching them or forcing them to learn ASP.Net. ASP.Net is very slow and bloated. Also, Mono is handling ASP.Net on Linux. The only other systems that run ASP 3.0 are the SUN Java System Active Server Pages or the ActiveHTML component from selisoft. The first one is Java, which needs a J2EE server and the second is a closed proprietary extension to ABYSS web server. Halcyonsoft's iASP seems to have gone off the web, untraceably! I am not very skilled at systems programming, but i'm good at learning things. Is this task easy or difficult? I'd be glad if someone gave a quick overview od what would be required. Also, if anyone is already working on this, there's no need to duplicate effort. Other than that, whenever I get the time, I'm willing to help out in any other way. Regards, Laxminarayan AB. PS: gambas IDE and the example set is awesome. Just if we could make the IDE a bit more polished, it would strike a chord with MS Windows RAD users. From gambas at ...1... Sun Feb 10 21:30:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 10 Feb 2008 21:30:27 +0100 Subject: [Gambas-user] classic asp and vbscript compatibility In-Reply-To: <200802110117.44085.topplereffect@...1858...> References: <200802110117.44085.topplereffect@...1858...> Message-ID: <200802102130.27610.gambas@...1...> On dimanche 10 f?vrier 2008, Laxminarayan AB wrote: > Hi all, > > is there an attempt to make vbscript and jscript conversion or run directly > under gambas? No, but something very similar is doable. The gb.web component have all the methods equivalent to ASP. The only thing that is missing is a support for an equivalent of the ASP pages. > > What i know so far: > - compiled gambas 2 from source - works fine > - saw the excellent set of examples, but gambas web runs as CGI, afaik A CGI script written in Gambas can beat all bloated ASP.NET applications. Tested in reality :-) SO CGI is not really a problem. A support for FastCGI would be better. > - have a long familiarity with MS VB, VB.Net > > What i would like to see or do is gambas as an apache module or with a > native web server to host "ASP" applications. I know that writing a web > server is not an easy task. You don't write a web server. You use Apache, or better, thttpd (or lighttpd). For just running CGI scripts and serving static contents, thttpd is very small and fast. > I know that Gambas is not aiming to repeat the mistakes of VB. So, maybe > the VBScript API can be emulated by a wrapper over gb web, just to maintain > syntax compatiblity. Debugging and other things can be added while > improving the port. (Or does it need to be designed into new code?) Real compatibility is a matter of translating the VBScript syntax into Gambas syntax. I.e. it would be a sort of converter that would be run before the compilation. Debugging a CGI script is really not easy at the moment. To do that, I need to embed a web server into gb.web (thttpd!) so that the Gambas CGI script is independent. Note you don't have to make a program for each page. Your web site should be a unique CGI script, a unique Gambas project, will the rendering code of all pages inside. > > The need for ASP compatibility is that MS is trying to phase out ASP and > there is a ton of code in ASP. And many users of ASP. MS does not mind > ditching them or forcing them to learn ASP.Net. > > ASP.Net is very slow and bloated. Also, Mono is handling ASP.Net on Linux. > > The only other systems that run ASP 3.0 are the SUN Java System Active > Server Pages or the ActiveHTML component from selisoft. > The first one is Java, which needs a J2EE server and the second is a > closed proprietary extension to ABYSS web server. > Halcyonsoft's iASP seems to have gone off the web, untraceably! > A VBScript->Gambas translator would be easy I think, more than a VB->Gambas translator, as the syntax is less complex. Except for obscure ASP methods, and for ActiveX components that are just there to prevent you from escaping from Windows. > I am not very skilled at systems programming, but i'm good at learning > things. Is this task easy or difficult? I'd be glad if someone gave a quick > overview od what would be required. > Also, if anyone is already working on this, there's no need to duplicate > effort. Other than that, whenever I get the time, I'm willing to help out > in any other way. I think I was not very clear, but continue on asking questions if you are motivated. > > Regards, > Laxminarayan AB. > > PS: gambas IDE and the example set is awesome. Just if we could make the > IDE a bit more polished, Please give more details, as sometimes I don't have the idea to add some very easy features. But if you want code folding, you have to wait, wait... :-) > it would strike a chord with MS Windows RAD users. > Regards, -- Benoit Minisini From gambas at ...1... Sun Feb 10 21:41:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 10 Feb 2008 21:41:45 +0100 Subject: [Gambas-user] GTK problem In-Reply-To: <1202560153.21200.4.camel@...1857...> References: <1202560153.21200.4.camel@...1857...> Message-ID: <200802102141.45780.gambas@...1...> On samedi 9 f?vrier 2008, Steven Drinnan wrote: > I use gnome by default and I am running Fedora core 9 > > But when I use GTK controls or GUI control it displays 2 key presses for > every press i make. ( QT works fine). This goes for using database > manager. Please do not tell me to use KDE. > > Many thanks steven > Can you tell what controls raise two key press events? Or better, send me a project so that I can debug. Regards, -- Benoit Minisini From rterry at ...1822... Sun Feb 10 22:03:25 2008 From: rterry at ...1822... (richard terry) Date: Mon, 11 Feb 2008 08:03:25 +1100 Subject: [Gambas-user] a question re columnlistview control Message-ID: <200802110803.25959.rterry@...1822...> In my practice learning gambas program (Contact manager), I've used (rightly or wrongly ?is another control better), a column view control, so I can display data like this: Jo Blogs address1 bla bla address2 bla bla Peter Hill address1 bla bla Jo Smith address1 bla bla After I've saved a record(s) I want to re-set the screen display to that record, so I've made the key to the column listview = the primary key of the patient. So far so good. cvPersons.MoveTo(Key) correctly moves the internal cursor back to the correct line for the person, and I can display the data in the textboxes below, but the row in the column view control is not highlighted as it would be if the user (moi!!!! only) clicked on the row. Q: Is it possible to make this happen in code ie send a message to the control so that the marquee highlights the row? Thanks Richard From rterry at ...1822... Sun Feb 10 22:13:32 2008 From: rterry at ...1822... (richard terry) Date: Mon, 11 Feb 2008 08:13:32 +1100 Subject: [Gambas-user] no fonts at all In-Reply-To: <47AC6C96.3090604@...1601...> References: <200802081536.41443.gambas@...1...> <47AC6C96.3090604@...1601...> Message-ID: <200802110813.33079.rterry@...1822...> Since I upgraded to version 1056 many of my fonts have disappeared from the choices gambas presents via the font property, which was not so in earlier versions. I was left with bitstream and a few weird fonts. Those same fonts are still in the KDE control panel. However this morning on re-booting my computer after many hours work, they are back again. Strange. Regards Richard On Sat, 9 Feb 2008 01:52:06 am Gabriel C wrote: > Benoit Minisini wrote: > > On vendredi 8 f?vrier 2008, Gabriel C wrote: > >> I have an report from a user in Frugalware getting that when installing > >> gambas2 from 'source' / 'svn'. > >> > >> I myself cannot reproduce that , however you can try to run : > >> > >> fc-cache -f -r -s -v as root. > > > > Is it on a Gentoo system? > > No is Frugalware Linux. > > > I don't think this problem is really Gambas' fault, as I do nothing > > special about fonts. > > Also I could not reproduce that problem at all, for me gambas2 works fine > on the same Frugalware version. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Sun Feb 10 22:15:26 2008 From: rterry at ...1822... (richard terry) Date: Mon, 11 Feb 2008 08:15:26 +1100 Subject: [Gambas-user] A suggestion for the menu editor in IDE Message-ID: <200802110815.26416.rterry@...1822...> Having the ability to load/save menu's would make repetitive coding less tedious - one could then have templates, or just make minor changes to menu's as needed. Regards Richard From maillists.gurulounge at ...626... Sun Feb 10 23:44:37 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 10 Feb 2008 14:44:37 -0800 Subject: [Gambas-user] DirView and FileView mouse events. Message-ID: <1202683477.17470.3.camel@...1853...> I'm can't seem to capture mouse events for the DirView and FileView controls. Click seems to work ok... but I can't capture MouseDown or MouseUp -- I'm attempting to capture the Right-Click event for these controls. It's basically a Form with an HSplit Panel, the two above controls are contained within the HSplit. I'm using the QT components. Jeff From cheguebeara at ...626... Mon Feb 11 00:07:36 2008 From: cheguebeara at ...626... (Che) Date: Sun, 10 Feb 2008 18:07:36 -0500 Subject: [Gambas-user] classic asp and vbscript compatibility In-Reply-To: <200802102130.27610.gambas@...1...> References: <200802110117.44085.topplereffect@...1858...> <200802102130.27610.gambas@...1...> Message-ID: <1202684856.20469.4.camel@...1859...> One of the reasons I first became interested in Gambas was the idea of a VBScript type scripting language for Linux / Apache (thanks but ChiliASP is just a bit out of my price range) that would allow me to migrate away from IIS without having to rely on PHP / MySQL (thanks but no thanks...). I have quite a bit of experience developing in ASP (OsoBlues et al http://ob.indigoblues.ca) and would gladly contribute if it meant getting some of the more used Classic ASP functions ported over to Gambas. Of course documentation might be helpful... >:^) Mark On Sun, 2008-02-10 at 21:30 +0100, Benoit Minisini wrote: > On dimanche 10 f?vrier 2008, Laxminarayan AB wrote: > > Hi all, > > > > is there an attempt to make vbscript and jscript conversion or run directly > > under gambas? > > No, but something very similar is doable. The gb.web component have all the > methods equivalent to ASP. The only thing that is missing is a support for an > equivalent of the ASP pages. > > > > > What i know so far: > > - compiled gambas 2 from source - works fine > > - saw the excellent set of examples, but gambas web runs as CGI, afaik > > A CGI script written in Gambas can beat all bloated ASP.NET applications. > Tested in reality :-) SO CGI is not really a problem. A support for FastCGI > would be better. > > > - have a long familiarity with MS VB, VB.Net > > > > What i would like to see or do is gambas as an apache module or with a > > native web server to host "ASP" applications. I know that writing a web > > server is not an easy task. > > You don't write a web server. You use Apache, or better, thttpd (or lighttpd). > For just running CGI scripts and serving static contents, thttpd is very > small and fast. > > > I know that Gambas is not aiming to repeat the mistakes of VB. So, maybe > > the VBScript API can be emulated by a wrapper over gb web, just to maintain > > syntax compatiblity. Debugging and other things can be added while > > improving the port. (Or does it need to be designed into new code?) > > Real compatibility is a matter of translating the VBScript syntax into Gambas > syntax. I.e. it would be a sort of converter that would be run before the > compilation. > > Debugging a CGI script is really not easy at the moment. To do that, I need to > embed a web server into gb.web (thttpd!) so that the Gambas CGI script is > independent. > > Note you don't have to make a program for each page. Your web site should be a > unique CGI script, a unique Gambas project, will the rendering code of all > pages inside. > > > > > The need for ASP compatibility is that MS is trying to phase out ASP and > > there is a ton of code in ASP. And many users of ASP. MS does not mind > > ditching them or forcing them to learn ASP.Net. > > > > ASP.Net is very slow and bloated. Also, Mono is handling ASP.Net on Linux. > > > > The only other systems that run ASP 3.0 are the SUN Java System Active > > Server Pages or the ActiveHTML component from selisoft. > > The first one is Java, which needs a J2EE server and the second is a > > closed proprietary extension to ABYSS web server. > > Halcyonsoft's iASP seems to have gone off the web, untraceably! > > > > A VBScript->Gambas translator would be easy I think, more than a VB->Gambas > translator, as the syntax is less complex. Except for obscure ASP methods, > and for ActiveX components that are just there to prevent you from escaping > from Windows. > > > I am not very skilled at systems programming, but i'm good at learning > > things. Is this task easy or difficult? I'd be glad if someone gave a quick > > overview od what would be required. > > Also, if anyone is already working on this, there's no need to duplicate > > effort. Other than that, whenever I get the time, I'm willing to help out > > in any other way. > > I think I was not very clear, but continue on asking questions if you are > motivated. > > > > > Regards, > > Laxminarayan AB. > > > > PS: gambas IDE and the example set is awesome. Just if we could make the > > IDE a bit more polished, > > Please give more details, as sometimes I don't have the idea to add some very > easy features. But if you want code folding, you have to wait, wait... :-) > > > it would strike a chord with MS Windows RAD users. > > > > Regards, > From gambas at ...1... Mon Feb 11 00:10:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Feb 2008 00:10:19 +0100 Subject: [Gambas-user] DirView and FileView mouse events. In-Reply-To: <1202683477.17470.3.camel@...1853...> References: <1202683477.17470.3.camel@...1853...> Message-ID: <200802110010.19149.gambas@...1...> On dimanche 10 f?vrier 2008, Jeffrey Cobb wrote: > I'm can't seem to capture mouse events for the DirView and FileView > controls. Click seems to work ok... but I can't capture MouseDown or > MouseUp -- I'm attempting to capture the Right-Click event for these > controls. > > It's basically a Form with an HSplit Panel, the two above controls are > contained within the HSplit. I'm using the QT components. > > Jeff > DirView and FileView are not basic controls, so using MouseDown and MouseUp events have no sense. What do you want to do exactly? -- Benoit Minisini From maillists.gurulounge at ...626... Mon Feb 11 00:23:26 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 10 Feb 2008 15:23:26 -0800 Subject: [Gambas-user] DirView and FileView mouse events. In-Reply-To: <200802110010.19149.gambas@...1...> References: <1202683477.17470.3.camel@...1853...> <200802110010.19149.gambas@...1...> Message-ID: <1202685806.17470.7.camel@...1853...> I'm making a quick and dirty file browser for my low-end laptop. Rox-filer doesn't cut it so I thought I'd throw something together in Gambas. So I was hoping to utilize a right-click context menu with these controls... and add things like "cut, copy, open with", etc. Jeff On Mon, 2008-02-11 at 00:10 +0100, Benoit Minisini wrote: > On dimanche 10 f?vrier 2008, Jeffrey Cobb wrote: > > I'm can't seem to capture mouse events for the DirView and FileView > > controls. Click seems to work ok... but I can't capture MouseDown or > > MouseUp -- I'm attempting to capture the Right-Click event for these > > controls. > > > > It's basically a Form with an HSplit Panel, the two above controls are > > contained within the HSplit. I'm using the QT components. > > > > Jeff > > > > DirView and FileView are not basic controls, so using MouseDown and MouseUp > events have no sense. What do you want to do exactly? > From gambas at ...1... Mon Feb 11 08:05:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Feb 2008 08:05:04 +0100 Subject: [Gambas-user] DirView and FileView mouse events. In-Reply-To: <1202685806.17470.7.camel@...1853...> References: <1202683477.17470.3.camel@...1853...> <200802110010.19149.gambas@...1...> <1202685806.17470.7.camel@...1853...> Message-ID: <200802110805.04828.gambas@...1...> On lundi 11 f?vrier 2008, Jeffrey Cobb wrote: > I'm making a quick and dirty file browser for my low-end laptop. > Rox-filer doesn't cut it so I thought I'd throw something together in > Gambas. > > So I was hoping to utilize a right-click context menu with these > controls... and add things like "cut, copy, open with", etc. > > Jeff > *Never* use mouse right click event for opening a contextual pop-up menu, in any case, with any control! Because contextual menu can be opened by other means: the "Menu" key for example. You *must* use the Menu event, and fortunately, DirView and FileView have it. :-) Regards, -- Benoit Minisini From maximvonk at ...626... Mon Feb 11 11:43:05 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 11 Feb 2008 02:43:05 -0800 (PST) Subject: [Gambas-user] Gambas 2 updates in Ubuntu 7.10 - Not working? Message-ID: <15409061.post@...1379...> Hi there. I have just had an update report telling me that there is an update for Gambas 2, however the update cannot continue and the update manager will not allow me to select any of the items that are int he update list. In my software sources I have "http://xoomer.alice.it/pixel", which is where I got the Gambas 2 in the first place. Is this correct, and how can I get the update manager to install the updates? Thanks Max -- View this message in context: http://www.nabble.com/Gambas-2-updates-in-Ubuntu-7.10---Not-working--tp15409061p15409061.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Mon Feb 11 16:33:40 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 11 Feb 2008 16:33:40 +0100 Subject: [Gambas-user] a question re columnlistview control In-Reply-To: <200802110803.25959.rterry@...1822...> References: <200802110803.25959.rterry@...1822...> Message-ID: <200802111633.40572.rospolosco@...152...> Alle 22:03, domenica 10 febbraio 2008, richard terry ha scritto: > In my practice learning gambas program (Contact manager), I've used > (rightly or wrongly ?is another control better), a column view control, so > I can display data like this: > > Jo Blogs address1 bla bla > address2 bla bla > Peter Hill address1 bla bla > Jo Smith address1 bla bla > > > After I've saved a record(s) I want to re-set the screen display to that > record, so I've made the key to the column listview = the primary key of > the patient. > > So far so good. > > > cvPersons.MoveTo(Key) correctly moves the internal cursor back to the > correct line for the person, and I can display the data in the textboxes > below, but the row in the column view control is not highlighted as it > would be if the user (moi!!!! only) clicked on the row. > > Q: Is it possible to make this happen in code ie send a message to the > control so that the marquee highlights the row? > Once you moved the internal cursor do: ColumnView1.Item.Selected = TRUE Bye, Stefano > Thanks > > Richard > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From topplereffect at ...1858... Mon Feb 11 19:34:12 2008 From: topplereffect at ...1858... (Laxminarayan AB) Date: Tue, 12 Feb 2008 00:04:12 +0530 Subject: [Gambas-user] classic asp and vbscript compatibility Message-ID: <200802120004.12957.topplereffect@...1858...> Hi, On Monday 11 February 2008 02:00, you wrote: > On dimanche 10 f?vrier 2008, Laxminarayan AB wrote: > > is there an attempt to make vbscript and jscript conversion or run > > directly under gambas? > > No, but something very similar is doable. The gb.web component have all the > methods equivalent to ASP. The only thing that is missing is a support for > an equivalent of the ASP pages. Excellent. shall look into it very soon and hopefully report back with some progress. > > What i know so far: > > - compiled gambas 2 from source - works fine > > - saw the excellent set of examples, but gambas web runs as CGI, afaik > > A CGI script written in Gambas can beat all bloated ASP.NET applications. > Tested in reality :-) SO CGI is not really a problem. agreed :-) > A support for FastCGI would be better. Have to look > > - have a long familiarity with MS VB, VB.Net > > > > What i would like to see or do is gambas as an apache module or with a > > native web server to host "ASP" applications. I know that writing a web > > server is not an easy task. > > You don't write a web server. You use Apache, or better, thttpd (or > lighttpd). For just running CGI scripts and serving static contents, thttpd > is very small and fast. Great. > > I know that Gambas is not aiming to repeat the mistakes of VB. So, maybe > > the VBScript API can be emulated by a wrapper over gb web, just to > > maintain syntax compatiblity. Debugging and other things can be added > > while improving the port. (Or does it need to be designed into new code?) > > Real compatibility is a matter of translating the VBScript syntax into > Gambas syntax. I.e. it would be a sort of converter that would be run > before the compilation. OK. > Debugging a CGI script is really not easy at the moment. To do that, I need > to embed a web server into gb.web (thttpd!) so that the Gambas CGI script > is independent. OK. > Note you don't have to make a program for each page. Your web site should > be a unique CGI script, a unique Gambas project, will the rendering code of > all pages inside. OK. > > The need for ASP compatibility is that MS is trying to phase out ASP and > > there is a ton of code in ASP. And many users of ASP. MS does not mind > > ditching them or forcing them to learn ASP.Net. ASP.Net is very slow and > A VBScript->Gambas translator would be easy I think, more than a VB->Gambas > translator, as the syntax is less complex. Except for obscure ASP methods, > and for ActiveX components that are just there to prevent you from escaping > from Windows. OK. > I think I was not very clear, but continue on asking questions if you are > motivated. Clear enough :) Now, I just have to RTFM and WTFC .... > Please give more details, as sometimes I don't have the idea to add some > very easy features. But if you want code folding, you have to wait, wait... > > :-) Code-folding can be done temporarily from another "established" IDE or editor with gambas2 syntax highlighting - both on windows and linux. In that way, code can be written comfortably and then tested via gambas2 IDE. Although this sounds like riding two horses at once, it is not as impractical as it may sound. Hopefully I'll soon have some good code to show. :) /L From garulfounix at ...626... Mon Feb 11 19:50:43 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Mon, 11 Feb 2008 19:50:43 +0100 Subject: [Gambas-user] Projet, porter Gambas sur Windows Message-ID: <200802111950.44915.garulfounix@...626...> (re)Hello Beno?t, Comment Laurent travaille sur le portage de GB sur OpenBSD, j'ai pris l'initiative de me lancer dans le port de Gambas sur Windows. Petit b?mol qui m'aide gu?re, l'environnement de d?veloppement sur cette plate-forme. J'ai pas l'habitude de d?velopper dessus et de plus, il est pas vraiment pratique pour ?a, je voudrai avoir ton avis sur les outils que tu utiliserais pour le portage? Pour ma part, j'ai install? MinGW + MSYS + les programmes autoconf, automake, bash, et d'autres outils important au d?veloppement. J'ai r?cup?r? les sources de la branche stable 2.0, je d?sire commencer ? travailler sur gbc, et l?, d?s que je fais un " ./configure" dans le r?pertoire `main`, j'obtiens en sortie un message d'erreur concernant le configure : $ ./configure ./configure: line 1917: syntax error near unexpected token `GB_INIT(main)' ./configure: line 1917: `GB_INIT(main)' Bon du coup, je reste perplexe sur "l'environnement" pour travailler sur le portage. J'aimerai avoir ton avis sur les outils que tu aurais envisager d'utiliser pour effectuer le portage (je sais que tu es pr?t ? aider quiconque qui tentera de porter Gambas sur Windows :-) ). -- -------------- Fran?ois Gallo From gambas at ...1... Mon Feb 11 22:05:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Feb 2008 22:05:20 +0100 Subject: [Gambas-user] A suggestion for the menu editor in IDE In-Reply-To: <200802110815.26416.rterry@...1822...> References: <200802110815.26416.rterry@...1822...> Message-ID: <200802112205.20295.gambas@...1...> On dimanche 10 f?vrier 2008, richard terry wrote: > Having the ability to load/save menu's would make repetitive coding less > tedious - one could then have templates, or just make minor changes to > menu's as needed. > > Regards > > Richard > I note that in the TODO file. But I can't guarantee that I will have time to do it. A volunteer? :-) -- Benoit Minisini From gambas at ...1... Mon Feb 11 22:09:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 11 Feb 2008 22:09:31 +0100 Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <15372045.post@...1379...> References: <15372045.post@...1379...> Message-ID: <200802112209.31484.gambas@...1...> On samedi 9 f?vrier 2008, 2020 wrote: > Hello folk, > > I am trying to migrate a VB6 project to Gambas 2.0. > > My VB6 project require ftd2xx.dll, but in xubuntu 7.10 I will used ftdi_sio > driver (FTDI USB Serial Device converter). > > All I want to do is to call FTDI functions from Gambas 2.0 project. > > Snippet code from my VB6 project; > Private Declare Function FT_Open Lib "FTD2XX.DLL" (ByVal intDeviceNumber As > Integer, ByRef lngHandle As Long) As Long > > Any ideas, thanks in advance. > > Sylvain. You must tell me the prototype of the function in C to be sure. So the following *may* work: It is a bit complicated in Gambas 2, because VarPtr() exists only in Gambas 3. --8<--------------------------- PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) AS Integer ... DIM plngHandle AS Pointer = Alloc(8) DIM lngHandle AS Integer DIM iRet AS Integer iRet = FT_Open(..., plngHandle) READ #plngHandle, lngHandle --8<--------------------------- Tell me if it works. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon Feb 11 23:16:34 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 11 Feb 2008 17:16:34 -0500 Subject: [Gambas-user] classic asp and vbscript compatibility In-Reply-To: <200802120004.12957.topplereffect@...1858...> References: <200802120004.12957.topplereffect@...1858...> Message-ID: <200802111716.34613.sourceforge-raindog2@...94...> On Monday 11 February 2008 13:34, Laxminarayan AB wrote: > Code-folding can be done temporarily from another "established" IDE > or editor with gambas2 syntax highlighting - both on windows and > linux. In that way, code can be written comfortably and then tested > via gambas2 IDE. Although this sounds like riding two horses at > once, it is not as impractical as it may sound. I have often written Gambas code in emacs, leafpad or kate. I found a visual-basic-mode.el file years ago for emacs that works more or less for Gambas highlighting, and that could probably be modified to create a gambas-mode. In kate, the MonoBasic highlighting (which I assume is meant for VB.NET) seems to work okay as well. I usually work in the IDE (especially when I have forms to design) but it's great to be able to fire up my choice of editor, write code and go "gbc2", "gbx2" when I just want to make some changes to a project. Rob From ariefbayu at ...626... Tue Feb 12 01:59:45 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 12 Feb 2008 07:59:45 +0700 Subject: [Gambas-user] Request for info re user-made dialog In-Reply-To: <200802070822.06865.rterry@...1822...> References: <200802070822.06865.rterry@...1822...> Message-ID: <976ad9050802111659t1b9af460r6ee966b812fe0a92@...627...> On 2/7/08, richard terry wrote: > > Well, not the dialog, but an example of how to get back information the > user > has entered into a component of a popup form. > > I've a custom dialog, and want to return the contents of a combo box on > the > form. How about this example? -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: FormPassParameter-0.0.1.tar.gz Type: application/x-gzip Size: 8178 bytes Desc: not available URL: From nxgtrturbo at ...626... Tue Feb 12 07:01:18 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 11 Feb 2008 22:01:18 -0800 Subject: [Gambas-user] Untranslated Strings Message-ID: <688afe140802112201i4a322c26uf931c38296e51ef7@...627...> Untranslated Strings Hi, I have a question about Project translation. When I develop my app I write everything without notice about the language, so now, I want to translate it to English, everything works perfect IN ENGLISH, but what about all my untranslated strings? I mean when I create my "executable" I open it from my console with just ./, since lang variable is null then English language is set, that works perfect, but whats the syntax to leave everything untranslated? I know I can have 2 projects and compile one with the *.mo file and the other one without it, but thats not practical and I would need to create two DEB packages (I guess) By the way, Is there any Gambas projects repositories where everybody could upload Install packages, so everybody could try somebody else projects?, If not, would be nice to have one, I could help. Thanks in advance -- Nx GT-R From ariefbayu at ...626... Tue Feb 12 09:05:56 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 12 Feb 2008 15:05:56 +0700 Subject: [Gambas-user] Untranslated Strings In-Reply-To: <688afe140802112201i4a322c26uf931c38296e51ef7@...627...> References: <688afe140802112201i4a322c26uf931c38296e51ef7@...627...> Message-ID: <976ad9050802120005q596496cnca11ceb90f83b982@...627...> On Feb 12, 2008 1:01 PM, Nx GT-R BOY wrote: > > > By the way, Is there any Gambas projects repositories where everybody > could > upload Install packages, so everybody could try somebody else projects?, > If > not, would be nice to have one, I could help. I currently developing the script for gambasworld.com which will contain user submitted tutorial, snippet, example, etc. Hope to finish it by the end of next week. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From rospolosco at ...152... Tue Feb 12 11:20:37 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 12 Feb 2008 11:20:37 +0100 Subject: [Gambas-user] off topic - security - kernel bug Message-ID: <200802121120.37462.rospolosco@...152...> Hi, all. There's an important bug in the kernel. http://secunia.com/advisories/28835/ http://isc.sans.org/diary.html?storyid=3968 To test if you're vulnerable, compile as *normal* user the attached exploit.c. gcc exploit.c then run as *normal* user ./a.out and incredibly you will get a root shell (if your kernel is buggy). So, if you're vulnerable check for your distro security updates. Sorry Benoit for the off-topic, but it seems important. Bye, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: exploit.c Type: text/x-csrc Size: 6292 bytes Desc: not available URL: From rospolosco at ...152... Tue Feb 12 11:31:29 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 12 Feb 2008 11:31:29 +0100 Subject: [Gambas-user] Untranslated Strings In-Reply-To: <688afe140802112201i4a322c26uf931c38296e51ef7@...627...> References: <688afe140802112201i4a322c26uf931c38296e51ef7@...627...> Message-ID: <200802121131.29228.rospolosco@...152...> Alle 07:01, marted? 12 febbraio 2008, Nx GT-R BOY ha scritto: > Untranslated Strings > > Hi, I have a question about Project translation. > > When I develop my app I write everything without notice about the language, > so now, I want to translate it to English, everything works perfect IN > ENGLISH, but what about all my untranslated strings? > > I mean when I create my "executable" I open it from my console with just > works perfect, but whats the syntax to leave everything untranslated? > Read this mail from Benoit: The actual algorithm is the following: 1) The contents of the LC_ALL environment variable is taken. 2) If LC_ALL is void, then the contents of the LANG environment variable is taken. 3) If LANG is void, then the language is set to "en_US". 4) The associated translation file is loaded. 5) If no associated file is found, and if the language has the "xx_YY" form, then the translation associated with the language "xx", without the country part "_YY", is loaded. 6) If no translation file can be found, then no string is translated. Note that the translation file cannot be loaded if the associated glibc locale files are not installed on the system. For example, on my french Mandriva, I have to install the "locale-es" package to be able to run the IDE in spanish. Regards, -- Benoit Minisini > I know I can have 2 projects and compile one with the *.mo file and the > other one without it, but thats not practical and I would need to create > two DEB packages (I guess) > > By the way, Is there any Gambas projects repositories where everybody could > upload Install packages, so everybody could try somebody else projects?, If > not, would be nice to have one, I could help. > > Thanks in advance > > -- > Nx GT-R > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From d.paleino at ...626... Tue Feb 12 11:33:13 2008 From: d.paleino at ...626... (David Paleino) Date: Tue, 12 Feb 2008 11:33:13 +0100 Subject: [Gambas-user] off topic - security - kernel bug In-Reply-To: <200802121120.37462.rospolosco@...152...> References: <200802121120.37462.rospolosco@...152...> Message-ID: <20080212113313.70136c6d@...1860...> Il giorno Tue, 12 Feb 2008 11:20:37 +0100 Stefano Palmeri ha scritto: > Hi, all. Hi Stefano, > There's an important bug in the kernel. > > http://secunia.com/advisories/28835/ > > http://isc.sans.org/diary.html?storyid=3968 > > To test if you're vulnerable, compile as *normal* user the attached exploit.c. > > gcc exploit.c > > then run as *normal* user ./a.out > and incredibly you will get a root shell (if your kernel is buggy). There's also: http://milw0rm.com/exploits/5093 you'll get a root shell as well. David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From rospolosco at ...152... Tue Feb 12 11:54:36 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 12 Feb 2008 11:54:36 +0100 Subject: [Gambas-user] off topic - security - kernel bug In-Reply-To: <20080212113313.70136c6d@...1860...> References: <200802121120.37462.rospolosco@...152...> <20080212113313.70136c6d@...1860...> Message-ID: <200802121154.36172.rospolosco@...152...> Alle 11:33, marted? 12 febbraio 2008, David Paleino ha scritto: > Il giorno Tue, 12 Feb 2008 11:20:37 +0100 > > Stefano Palmeri ha scritto: > > Hi, all. > > Hi Stefano, > > > There's an important bug in the kernel. > > > > http://secunia.com/advisories/28835/ > > > > http://isc.sans.org/diary.html?storyid=3968 > > > > To test if you're vulnerable, compile as *normal* user the attached > > exploit.c. > > > > gcc exploit.c > > > > then run as *normal* user ./a.out > > and incredibly you will get a root shell (if your kernel is buggy). > > There's also: > > http://milw0rm.com/exploits/5093 > > you'll get a root shell as well. > > David Yes, they are both on the Secunia page I linked. :-) Stefano From maximvonk at ...626... Tue Feb 12 12:38:45 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 12 Feb 2008 03:38:45 -0800 (PST) Subject: [Gambas-user] How to search in the Editor Control Message-ID: <15431432.post@...1379...> Hi, I'm making use of the excellent highlight editor in Gambas 2, but Iv become stuck trying to search through the code shown in it. The closest I can come is the 'findnextword' method, but the description is missing from both the online and installed help file and I cant work out how to use it. Can anyone help please? Regards Max -- View this message in context: http://www.nabble.com/How-to-search-in-the-Editor-Control-tp15431432p15431432.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Feb 12 12:55:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Feb 2008 12:55:27 +0100 Subject: [Gambas-user] How to search in the Editor Control In-Reply-To: <15431432.post@...1379...> References: <15431432.post@...1379...> Message-ID: <200802121255.27470.gambas@...1...> On mardi 12 f?vrier 2008, MaxVK wrote: > Hi, I'm making use of the excellent highlight editor in Gambas 2, but Iv > become stuck trying to search through the code shown in it. The closest I > can come is the 'findnextword' method, but the description is missing from > both the online and installed help file and I cant work out how to use it. > > Can anyone help please? > > Regards > > Max You must do it "by hand", by using Editor.Lines[LineNumber] to get the text of each line. Regards, -- Benoit Minisini From maximvonk at ...626... Tue Feb 12 13:22:14 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 12 Feb 2008 04:22:14 -0800 (PST) Subject: [Gambas-user] How to search in the Editor Control In-Reply-To: <200802121255.27470.gambas@...1...> References: <15431432.post@...1379...> <200802121255.27470.gambas@...1...> Message-ID: <15432083.post@...1379...> Thanks Benoit, but is there a way to select the word once you have found it? Iv just now discovered that the selection properties are read only. Regards Max Bugzilla from gambas at ...1... wrote: > > On mardi 12 f?vrier 2008, MaxVK wrote: >> Hi, I'm making use of the excellent highlight editor in Gambas 2, but Iv >> become stuck trying to search through the code shown in it. The closest I >> can come is the 'findnextword' method, but the description is missing >> from >> both the online and installed help file and I cant work out how to use >> it. >> >> Can anyone help please? >> >> Regards >> >> Max > > You must do it "by hand", by using Editor.Lines[LineNumber] to get the > text of > each line. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/How-to-search-in-the-Editor-Control-tp15431432p15432083.html Sent from the gambas-user mailing list archive at Nabble.com. From nxgtrturbo at ...626... Tue Feb 12 16:26:57 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 12 Feb 2008 07:26:57 -0800 Subject: [Gambas-user] Untranslated Strings (in a executable) Message-ID: <688afe140802120726y34dd74ccn11f0adb205069186@...627...> > Untranslated Strings > > Hi, I have a question about Project translation. > > When I develop my app I write everything without notice about the language, > so now, I want to translate it to English, everything works perfect IN > ENGLISH, but what about all my untranslated strings? > > I mean when I create my "executable" I open it from my console with just > works perfect, but whats the syntax to leave everything untranslated? > >Read this mail from Benoit: >The actual algorithm is the following: >1) The contents of the LC_ALL environment variable is taken. >2) If LC_ALL is void, then the contents of the LANG environment variable is >taken. >3) If LANG is void, then the language is set to "en_US". >4) The associated translation file is loaded. >5) If no associated file is found, and if the language has the "xx_YY" form, >then the translation associated with the language "xx", without the country >part "_YY", is loaded. >6) If no translation file can be found, then no string is translated. >Note that the translation file cannot be loaded if the associated glibc locale >files are not installed on the system. >For example, on my french Mandriva, I have to install the "locale-es" package >to be able to run the IDE in spanish. >Regards, >-- >Benoit Minisini Yes I read that before, I understand the points number 1 to 5, but, what about point 6 in a executable?, I have my project already released in a DEB package, so I would like to have ONE SINGLE DEB to install my app in both languages, so I was wonder if theres a way to tell the gambas environment no to translate the app even when theres the translation-file and translate the app ONLY when the user wants. I think the problem is that the gambas environment takes English file (if present) as the default language (if not you don't set the language wanted), would be better to take Untranslated string if no-language set. I mean To run my app in English I type: ./ (since I don't need to set the Lang variable) Then, since all my Untranslated string are in Spanish I would like to run the app in the same way, something like: LANG = no_translate (I don't know I am just guessing) then ./ Thanks in advance -- Nx GT-R From d.paleino at ...626... Tue Feb 12 16:37:14 2008 From: d.paleino at ...626... (David Paleino) Date: Tue, 12 Feb 2008 16:37:14 +0100 Subject: [Gambas-user] Untranslated Strings (in a executable) In-Reply-To: <688afe140802120726y34dd74ccn11f0adb205069186@...627...> References: <688afe140802120726y34dd74ccn11f0adb205069186@...627...> Message-ID: <20080212163714.6bd8a8b3@...1860...> Il giorno Tue, 12 Feb 2008 07:26:57 -0800 "Nx GT-R BOY" ha scritto: > I mean > To run my app in English I type: ./ > (since I don't need to set the Lang variable) > > Then, since all my Untranslated string are in Spanish I would like to run > the app in the same way, something like: > LANG = no_translate (I don't know I am just guessing) > then > ./ It should be: $ LANG=C ./app but I'm not sure. What you do is not TheRightWay though. What I do is writing all the strings of the application in English, and then translate them to Italian, or whatever language. This way, anyone can contribute to any of my projects, not only Italian-speaking people :) Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From rospolosco at ...152... Tue Feb 12 16:42:28 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 12 Feb 2008 16:42:28 +0100 Subject: [Gambas-user] Untranslated Strings (in a executable) In-Reply-To: <688afe140802120726y34dd74ccn11f0adb205069186@...627...> References: <688afe140802120726y34dd74ccn11f0adb205069186@...627...> Message-ID: <200802121642.28313.rospolosco@...152...> Alle 16:26, marted? 12 febbraio 2008, Nx GT-R BOY ha scritto: > > Untranslated Strings > > > > Hi, I have a question about Project translation. > > > > When I develop my app I write everything without notice about the > > language, > > > so now, I want to translate it to English, everything works perfect IN > > ENGLISH, but what about all my untranslated strings? > > > > I mean when I create my "executable" I open it from my console with just > > works perfect, but whats the syntax to leave everything untranslated? > > > > > >Read this mail from Benoit: > >The actual algorithm is the following: > >1) The contents of the LC_ALL environment variable is taken. > >2) If LC_ALL is void, then the contents of the LANG environment variable > > is taken. > >3) If LANG is void, then the language is set to "en_US". > >4) The associated translation file is loaded. > >5) If no associated file is found, and if the language has the "xx_YY" > > form, > > >then the translation associated with the language "xx", without the > > country part "_YY", is loaded. > >6) If no translation file can be found, then no string is translated. > > > >Note that the translation file cannot be loaded if the associated glibc > > locale > > >files are not installed on the system. > > > >For example, on my french Mandriva, I have to install the "locale-es" > > package > > >to be able to run the IDE in spanish. > > > >Regards, > >-- > >Benoit Minisini > > Yes I read that before, I understand the points number 1 to 5, but, what > about point 6 in a executable?, I have my project already released in a DEB > package, so I would like to have ONE SINGLE DEB to install my app in both > languages, so I was wonder if theres a way to tell the gambas environment > no to translate the app even when theres the translation-file and translate > the app ONLY when the user wants. > > I think the problem is that the gambas environment takes English file (if > present) as the default language (if not you don't set the language > wanted), would be better to take Untranslated string if no-language set. > > I mean > To run my app in English I type: ./ > (since I don't need to set the Lang variable) > > Then, since all my Untranslated string are in Spanish I would like to run > the app in the same way, something like: > LANG = no_translate (I don't know I am just guessing) > then > ./ > > > Thanks in advance Ok. did you try: LC_ALL=es_ES ./your_executable What happens? Stefano From rterry at ...1822... Tue Feb 12 21:48:12 2008 From: rterry at ...1822... (richard terry) Date: Wed, 13 Feb 2008 07:48:12 +1100 Subject: [Gambas-user] Passing parameters to a subroutine Message-ID: <200802130748.12284.rterry@...1822...> If you have a sub eg Sub Example (param1 as string, param2 as boolean, param3 as integer) ' bla bla do something end sub Can you make one or more of these parameters optional, eg must have param1, but if param2,3 are mising, the sytem dosn't complain?) Regards Richard From rterry at ...1822... Tue Feb 12 21:48:05 2008 From: rterry at ...1822... (richard terry) Date: Wed, 13 Feb 2008 07:48:05 +1100 Subject: [Gambas-user] Can't collapse the Heirachy tree in IDE Message-ID: <200802130748.05892.rterry@...1822...> I've several questions about this part of the IDE: 1) What are the four little arrows up the top for - they seem to indicate some sort of navigation, but do nothing on my system. 2) Remember the comment I made about losing sight of which control you were working on in the editor, and Bernoit was kind enough to add this to the top of the properties tab, well, the same thing applies to which level of the tree you are on in the heirachies pane, when you have multiple nested levels of controls its really easy to get lost - you could put the current parent control on the top of the tab. 3) I can't collapse/expand the branches of my tree: Wondered if there was a reason for that, as it can be near nigh impossible to find a lost control amongst the masses of similarly named (and unimportant controls ) Rational for needing it: I've dropped controls onto the form only to 'loose them', ie they've dropped out of sight somewhere on a complex gui form, and one has to go through the tree heirachy to try and find the control - being able to collapse branches would be a boon. Hope this makes sense. From lordheavym at ...626... Tue Feb 12 22:04:38 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 12 Feb 2008 22:04:38 +0100 Subject: [Gambas-user] Passing parameters to a subroutine In-Reply-To: <200802130748.12284.rterry@...1822...> References: <200802130748.12284.rterry@...1822...> Message-ID: <200802122204.38727.lordheavym@...626...> Le Tuesday 12 February 2008 21:48:12 richard terry, vous avez ?crit?: > If you have a sub eg > Sub Example (param1 as string, param2 as boolean, param3 as integer) > > ' bla bla do something > > end sub > > Can you make one or more of these parameters optional, eg must have param1, > but if param2,3 are mising, the sytem dosn't complain?) > > Regards > > Richard See OPTIONAL keyword http://64.128.110.55/help/cat/methoddecl ++ From gambas at ...1... Tue Feb 12 23:49:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Feb 2008 23:49:23 +0100 Subject: [Gambas-user] Can't collapse the Heirachy tree in IDE In-Reply-To: <200802130748.05892.rterry@...1822...> References: <200802130748.05892.rterry@...1822...> Message-ID: <200802122349.23346.gambas@...1...> On mardi 12 f?vrier 2008, richard terry wrote: > I've several questions about this part of the IDE: > > 1) What are the four little arrows up the top for - they seem to indicate > some sort of navigation, but do nothing on my system. They move the hierarchy. > > 2) Remember the comment I made about losing sight of which control you > were working on in the editor, and Bernoit was kind enough to add this to > the top of the properties tab, well, the same thing applies to which level > of the tree you are on in the heirachies pane, when you have multiple > nested levels of controls its really easy to get lost - you could put the > current parent control on the top of the tab. Mmf. How could you be lost? Or maybe you give random names to your controls? > > 3) I can't collapse/expand the branches of my tree: > > Wondered if there was a reason for that, as it can be near nigh impossible > to find a lost control amongst the masses of similarly named (and > unimportant controls ) Why do you need to *find* a control? > > Rational for needing it: > > I've dropped controls onto the form only to 'loose them', ie they've > dropped out of sight somewhere on a complex gui form, and one has to go > through the tree heirachy to try and find the control - being able to > collapse branches would be a boon. OK. But if you don't know the name of your control, and if you don't know where it is on the form... What do you know then? :-) > > Hope this makes sense. > Not really. If you are lost in your own form, I can't imagine the poor user... I don't understand why displaying the parent of the current selected control in the hierarchy would help you. Regards, -- Benoit Minisini From gambas at ...1... Tue Feb 12 23:53:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Feb 2008 23:53:08 +0100 Subject: [Gambas-user] Konquiror In-Reply-To: <1202652171.11979.3.camel@...1816...> References: <1202652171.11979.3.camel@...1816...> Message-ID: <200802122353.08503.gambas@...1...> On dimanche 10 f?vrier 2008, Steven Lobbezoo wrote: > Hi, > > I use the webbrowser control in my app. > it is set to the url : http://www.revimmo.com/agence_interne_2.php > > It's a map application with google maps. > > If I do the URL in konquiror it displays just fine. > If I do it in the Gambas component, the maps donnot display, google > send that the resolution is not available (which is not true) > > Any ideas ? > > Regards, > Steven > It works there. I tested with the WebBrowser example. -- Benoit Minisini From rterry at ...1822... Wed Feb 13 01:20:04 2008 From: rterry at ...1822... (richard terry) Date: Wed, 13 Feb 2008 11:20:04 +1100 Subject: [Gambas-user] Can't collapse the Heirachy tree in IDE In-Reply-To: <200802122349.23346.gambas@...1...> References: <200802130748.05892.rterry@...1822...> <200802122349.23346.gambas@...1...> Message-ID: <200802131120.04646.rterry@...1822...> Er.... I can see that posting fell flat. Maybe I think differently to you, or you work with simpler forms. But as I posted previously, the heirachy tree seems fixed and non-collapsable like a normal tree control would be. I do notice now that clicking does something, but nothing that makes sense to me - ie dosn't move you up/down the branches When my project is more funcitonal I'll send it to you to look at it in the IDE and then when you scroll the heirachy tree you will see exactly what I mean, for now, I'll re-think my description of what I see as a problem and maybe post again at a future date. As to the poor users, fortunately they only see the elegant screen design they play with, and not the IDE, however as I'm the only poor user likely to see the end result as I'm doing it for learning/the office it if ever works, I wont complain to myself. Regards Richard. On Wed, 13 Feb 2008 09:49:23 am Benoit Minisini wrote: > On mardi 12 f?vrier 2008, richard terry wrote: > > I've several questions about this part of the IDE: > > > > 1) What are the four little arrows up the top for - they seem to indicate > > some sort of navigation, but do nothing on my system. > > They move the hierarchy. > > > 2) Remember the comment I made about losing sight of which control you > > were working on in the editor, and Bernoit was kind enough to add this to > > the top of the properties tab, well, the same thing applies to which > > level of the tree you are on in the heirachies pane, when you have > > multiple nested levels of controls its really easy to get lost - you > > could put the current parent control on the top of the tab. > > Mmf. How could you be lost? Or maybe you give random names to your > controls? > > > 3) I can't collapse/expand the branches of my tree: > > > > Wondered if there was a reason for that, as it can be near nigh > > impossible to find a lost control amongst the masses of similarly named > > (and unimportant controls ) > > Why do you need to *find* a control? > > > Rational for needing it: > > > > I've dropped controls onto the form only to 'loose them', ie they've > > dropped out of sight somewhere on a complex gui form, and one has to go > > through the tree heirachy to try and find the control - being able to > > collapse branches would be a boon. > > OK. But if you don't know the name of your control, and if you don't know > where it is on the form... What do you know then? :-) > > > Hope this makes sense. > > Not really. If you are lost in your own form, I can't imagine the poor > user... I don't understand why displaying the parent of the current > selected control in the hierarchy would help you. > > Regards, From steven at ...1545... Wed Feb 13 02:48:15 2008 From: steven at ...1545... (Steven Drinnan) Date: Wed, 13 Feb 2008 09:48:15 +0800 Subject: [Gambas-user] GTK problem In-Reply-To: <200802102141.45780.gambas@...1...> References: <1202560153.21200.4.camel@...1857...> <200802102141.45780.gambas@...1...> Message-ID: <1202867295.3130.6.camel@...1857...> No need to send you my project, as the behaviour is present in the database manager of gambas running in GNOME(btw typo last time I use fedora 8 sorry). But I have noticed that it is related to scim (input manager). If I select another language (or the same one for that matter) the problem goes away. Strange I know, but this problem only occurs with gambas. Steven On Sun, 2008-02-10 at 21:41 +0100, Benoit Minisini wrote: > On samedi 9 f?vrier 2008, Steven Drinnan wrote: > > I use gnome by default and I am running Fedora core 9 > > > > But when I use GTK controls or GUI control it displays 2 key presses for > > every press i make. ( QT works fine). This goes for using database > > manager. Please do not tell me to use KDE. > > > > Many thanks steven > > > > Can you tell what controls raise two key press events? Or better, send me a > project so that I can debug. > > Regards, > From sourceforge-raindog2 at ...94... Wed Feb 13 05:12:11 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 12 Feb 2008 23:12:11 -0500 Subject: [Gambas-user] Can't collapse the Heirachy tree in IDE In-Reply-To: <200802122349.23346.gambas@...1...> References: <200802130748.05892.rterry@...1822...> <200802122349.23346.gambas@...1...> Message-ID: <200802122312.11669.sourceforge-raindog2@...94...> On Tuesday 12 February 2008 17:49, Benoit Minisini wrote: > > its really easy to get lost - you could put the current parent > > control on the top of the tab. > > Mmf. How could you be lost? Or maybe you give random names to your > controls? A client of mine ported a specialized text editor from VB to Gambas. In VB, each line was made up of three fields positioned together to look like a single textbox with highlighting at the beginning and end, and he used VB's control array feature to lay out 25 copies of the three fields, using the index of the control to determine which row was in use when events fired. In Gambas, that wouldn't have been possible due to the lack of control array creation in the form designer. Since the original programmer didn't know how to create controls at runtime, he'd have had 75 similarly-named, similarly-appearing controls on his form (and no way to determine which row the user was clicking on without manually setting the Tag property on each of those 75 fields, but that's a topic for another night.) Throw in overlapping controls -- I've messed with VB projects where a large control was used to hide controls underneath it, for example -- and it's easy to see why you might need to hunt around the control hierarchy to find something: you're stuck maintaining code written by someone else who didn't know how to write it as elegantly as you would have. ;-) Rob From marco at ...1785... Wed Feb 13 08:59:52 2008 From: marco at ...1785... (Marco Mascia) Date: Wed, 13 Feb 2008 08:59:52 +0100 Subject: [Gambas-user] Serial Port Reading Issue In-Reply-To: <20080209014606.M32635@...951...> References: <47AC80FD.7010601@...1785...> <20080209014606.M32635@...951...> Message-ID: <47B2A378.10504@...1785...> nando wrote: > The SPort_Read() routine runs when there are SOME > characters received from the serial port.. > and they get printed with the PRINT statement. > The PRINT statement adds the LineFeed, so the next > print statement begins on the next line. > > So: > > INSERISC <----These characters were available with one SPort_Read event > I COMANDO <----These characters were available with next SPort_Read event > > You have to remember that data transfer at 19200 is very slow compared to the > speed the CPU works, so it can print what it has before all characters arrive. > > Here is an idea to solve your problem: > > 1) Have a public string > PUBLIC serialportread AS STRING > > 2) the following will accumulate characters received in 'serialportread' > PUBLIC SUB Sport_Read() > > DIM s AS String > > READ #Sport, s, Lof(Sport) > serialportread = serialportread & s > > 'Test here if 'serialportread' has "->" and "<-" in it > 'if it does, then use it. Don't forget to clear serialportread > 'if it doesn't have -> and <-, just exit..hopefully the next event will have it. > > END > > -Fernando It works! now i understand, tnx for the explanation! :) Marco From jedsoftware at ...626... Wed Feb 13 12:23:48 2008 From: jedsoftware at ...626... (John Dizaro) Date: Wed, 13 Feb 2008 09:23:48 -0200 Subject: [Gambas-user] "no keyboard event data" in gridview Gambas 2.0.0 debian Text In-Reply-To: <200802011351.54045.gambas@...1...> References: <11c2d5210801310846n4ebffd73l205f67bce0bd91b1@...627...> <200802011351.54045.gambas@...1...> Message-ID: <11c2d5210802130323q1013370dj61a5f8ae845d3f8f@...627...> Sorry but i still have the problem: PUBLIC SUB GV_t07_carro_KeyPress() GTK lib In gridview do not works as you can see PUBLIC SUB GV_t07_carro_KeyPress() IF key.code = 65293 THEN Label12.Text = "qqq" ELSE Label12.Text = "AAA" ENDIF END --------------------------------------------------- but in valuebox it works PUBLIC SUB ValueBox6_KeyRelease() IF key.code = 65293 THEN Label12.Text = "qqq" ELSE Label12.Text = "AAA" ENDIF END --------------------------------------------------------- what is happing? 2008/2/1, Benoit Minisini : > > On jeudi 31 janvier 2008, John Dizaro wrote: > > I am javing problema with key.code = key.Enter in GRIDVIEW > > as you can see in Captura_da_tela.png > > > > can someone help me? > > Thanks for all > > John Evan Dizaro > > Key.Enter is a constant. It does not tell you the state of the Enter key. > You > must use the properties of the Key class (Code, Text...). Look at the > documentation of the Key class for more informations. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- John Evan Dizaro Software - Windows e Linux O software do jeito que voc? precisa Fone: (41) 3333-0303 Fone: (41) 9244-4603 Rua: Alferes Poli Curitiba - PR - Brasil From maximvonk at ...626... Wed Feb 13 12:53:11 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 13 Feb 2008 03:53:11 -0800 (PST) Subject: [Gambas-user] Highlight Editor - Capslock Key State Message-ID: <15456466.post@...1379...> Hi there, I'm using the Highlight editor in Gambas2 and have added a status bar at the bottom of the editor window. I would like to be able to display the state of the capslock key there, but the problem I have is that while I can detect when capslock has been pressed, I cant seem to determine its state before the keypress. In other words I cant tell the state of the capslock key when the program is started, so I cant accurately display its state within the program because I have to make an assumption about its state in the first place. Can anyone point me in the right direction please? Thanks Max -- View this message in context: http://www.nabble.com/Highlight-Editor---Capslock-Key-State-tp15456466p15456466.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Feb 13 14:04:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Feb 2008 14:04:01 +0100 Subject: [Gambas-user] GTK problem In-Reply-To: <1202867295.3130.6.camel@...1857...> References: <1202560153.21200.4.camel@...1857...> <200802102141.45780.gambas@...1...> <1202867295.3130.6.camel@...1857...> Message-ID: <200802131404.01802.gambas@...1...> On mercredi 13 f?vrier 2008, Steven Drinnan wrote: > No need to send you my project, as the behaviour is present in the > database manager of gambas running in GNOME(btw typo last time I use > fedora 8 sorry). > > But I have noticed that it is related to scim (input manager). If I > select another language (or the same one for that matter) the problem > goes away. > > Strange I know, but this problem only occurs with gambas. > > Steven > Please at least explain me what you did -exactly-. I couldn't reproduce the behaviour you depicted by changing the input method in a TextArea. And tell me which version of gambas you use. Regards, -- Benoit Minisini From steven at ...1545... Wed Feb 13 14:27:21 2008 From: steven at ...1545... (Steven Drinnan) Date: Wed, 13 Feb 2008 21:27:21 +0800 Subject: [Gambas-user] GTK problem In-Reply-To: <200802131404.01802.gambas@...1...> References: <1202560153.21200.4.camel@...1857...> <200802102141.45780.gambas@...1...> <1202867295.3130.6.camel@...1857...> <200802131404.01802.gambas@...1...> Message-ID: <1202909241.3080.10.camel@...1857...> No prob, Gambas version 2.0.0 compiled from source code Fedora 8, GNOME 2.20.2, SCIM 1.4.6 1. Open gambas 2. Create a new project (graphical) 3. Goto Tools-Database manager 4. Connect to Server When you type there two characters are displayed when you press one key. Click on the SCIM icon select a language, any language, the problem disappears. As this has only happened in gambas I have not filed a bug report else where. Waiting your advice. P.S Your support is awesome. On Wed, 2008-02-13 at 14:04 +0100, Benoit Minisini wrote: > On mercredi 13 f?vrier 2008, Steven Drinnan wrote: > > No need to send you my project, as the behaviour is present in the > > database manager of gambas running in GNOME(btw typo last time I use > > fedora 8 sorry). > > > > But I have noticed that it is related to scim (input manager). If I > > select another language (or the same one for that matter) the problem > > goes away. > > > > Strange I know, but this problem only occurs with gambas. > > > > Steven > > > > Please at least explain me what you did -exactly-. I couldn't reproduce the > behaviour you depicted by changing the input method in a TextArea. And tell > me which version of gambas you use. > > Regards, > From steven at ...1652... Wed Feb 13 19:08:31 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 13 Feb 2008 19:08:31 +0100 Subject: [Gambas-user] Konquiror In-Reply-To: <200802122353.08503.gambas@...1...> References: <1202652171.11979.3.camel@...1816...> <200802122353.08503.gambas@...1...> Message-ID: <1202926111.9422.18.camel@...1816...> I tried it too with the webBrowser exmple. It does not work, i must have some libs for kde f.... up ???? I'll do some more investigation and will come back to it. Steven Le mardi 12 f?vrier 2008 ? 23:53 +0100, Benoit Minisini a ?crit : > On dimanche 10 f?vrier 2008, Steven Lobbezoo wrote: > > Hi, > > > > I use the webbrowser control in my app. > > it is set to the url : http://www.revimmo.com/agence_interne_2.php > > > > It's a map application with google maps. > > > > If I do the URL in konquiror it displays just fine. > > If I do it in the Gambas component, the maps donnot display, google > > send that the resolution is not available (which is not true) > > > > Any ideas ? > > > > Regards, > > Steven > > > > It works there. I tested with the WebBrowser example. > From rospolosco at ...152... Wed Feb 13 19:19:48 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 13 Feb 2008 19:19:48 +0100 Subject: [Gambas-user] Highlight Editor - Capslock Key State In-Reply-To: <15456466.post@...1379...> References: <15456466.post@...1379...> Message-ID: <200802131919.48148.rospolosco@...152...> Alle 12:53, mercoled? 13 febbraio 2008, MaxVK ha scritto: > Hi there, I'm using the Highlight editor in Gambas2 and have added a status > bar at the bottom of the editor window. I would like to be able to display > the state of the capslock key there, but the problem I have is that while I > can detect when capslock has been pressed, I cant seem to determine its > state before the keypress. > > In other words I cant tell the state of the capslock key when the program > is started, so I cant accurately display its state within the program > because I have to make an assumption about its state in the first place. > > Can anyone point me in the right direction please? > > Thanks > > Max Hi, the attached example shows a raw dirty way to know if the capslock key is on/off on startup. Use at your own risk :-) Bye, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: capslock-0.0.1.tar.gz Type: application/x-tgz Size: 7924 bytes Desc: not available URL: From maximvonk at ...626... Wed Feb 13 20:12:45 2008 From: maximvonk at ...626... (Max) Date: Wed, 13 Feb 2008 19:12:45 +0000 Subject: [Gambas-user] Highlight Editor - Capslock Key State In-Reply-To: <200802131919.48148.rospolosco@...152...> References: <15456466.post@...1379...> <200802131919.48148.rospolosco@...152...> Message-ID: <6ddfd02f0802131112l70197acfx94f7045025066eeb@...627...> Hi Stefano, thanks for the example. It works fine of itself, but unfortunately when the code is transferred to my own project it doesn't seem to work. The code runs, but the state of the capslock key is not picked up. Nice try though and thanks! ;) All the best Max On Feb 13, 2008 6:19 PM, Stefano Palmeri wrote: > Alle 12:53, mercoled? 13 febbraio 2008, MaxVK ha scritto: > > Hi there, I'm using the Highlight editor in Gambas2 and have added a > status > > bar at the bottom of the editor window. I would like to be able to > display > > the state of the capslock key there, but the problem I have is that > while I > > can detect when capslock has been pressed, I cant seem to determine its > > state before the keypress. > > > > In other words I cant tell the state of the capslock key when the > program > > is started, so I cant accurately display its state within the program > > because I have to make an assumption about its state in the first place. > > > > Can anyone point me in the right direction please? > > > > Thanks > > > > Max > > Hi, > > the attached example shows a raw dirty way to know > if the capslock key is on/off on startup. > Use at your own risk :-) > > Bye, > > Stefano > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed Feb 13 21:08:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Feb 2008 21:08:04 +0100 Subject: [Gambas-user] Highlight Editor - Capslock Key State In-Reply-To: <6ddfd02f0802131112l70197acfx94f7045025066eeb@...627...> References: <15456466.post@...1379...> <200802131919.48148.rospolosco@...152...> <6ddfd02f0802131112l70197acfx94f7045025066eeb@...627...> Message-ID: <200802132108.04945.gambas@...1...> On mercredi 13 f?vrier 2008, Max wrote: > Hi Stefano, thanks for the example. It works fine of itself, but > unfortunately when the code is transferred to my own project it doesn't > seem to work. The code runs, but the state of the capslock key is not > picked up. > > Nice try though and thanks! ;) > > All the best > > Max > Interesting problem. I don't know if there is a way to know the status of CAPS LOCK, or other modifier keys. -- Benoit Minisini From maximvonk at ...626... Wed Feb 13 21:21:19 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 13 Feb 2008 12:21:19 -0800 (PST) Subject: [Gambas-user] Highlight Editor - Capslock Key State In-Reply-To: <200802131919.48148.rospolosco@...152...> References: <15456466.post@...1379...> <200802131919.48148.rospolosco@...152...> Message-ID: <15466932.post@...1379...> Aha! Scrap the first message! It DOES work, but... The Form_KeyPress event would not seem to fire at all, so I added an invisible button to the form, and as the last line in the Form_Open event I added Button1.SetFocus. With the code from the Form_Activate event in your example in the Button1_GotFocus event the Keypress was now firing and the State of the capslock key was successfully read. Thanks again Stefano, I'm not sure why I had to change the code like that (Your example works on its own), but its working now. All the best Max Stefano Palmeri wrote: > > Alle 12:53, mercoled? 13 febbraio 2008, MaxVK ha scritto: >> Hi there, I'm using the Highlight editor in Gambas2 and have added a >> status >> bar at the bottom of the editor window. I would like to be able to >> display >> the state of the capslock key there, but the problem I have is that while >> I >> can detect when capslock has been pressed, I cant seem to determine its >> state before the keypress. >> >> In other words I cant tell the state of the capslock key when the program >> is started, so I cant accurately display its state within the program >> because I have to make an assumption about its state in the first place. >> >> Can anyone point me in the right direction please? >> >> Thanks >> >> Max > > Hi, > > the attached example shows a raw dirty way to know > if the capslock key is on/off on startup. > Use at your own risk :-) > > Bye, > > Stefano > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Highlight-Editor---Capslock-Key-State-tp15456466p15466932.html Sent from the gambas-user mailing list archive at Nabble.com. From richard.j.walker at ...247... Wed Feb 13 21:46:14 2008 From: richard.j.walker at ...247... (Richard) Date: Wed, 13 Feb 2008 20:46:14 +0000 Subject: [Gambas-user] Miscellaneous routines for text box validation In-Reply-To: <200802081439.08124.rterry@...1822...> References: <200802081439.08124.rterry@...1822...> Message-ID: <200802132046.15150.richard.j.walker@...247...> On Friday 08 February 2008 03:39:07 richard terry wrote: > Hi all, > > My gambas learning project is progressing well (a contacts database > manager), and I've got the point I can create new people/names/address(es), > etc, now have to fine tune the gui, so not wanting to re-invent the wheel, > I wondered if anyone had in their possession, or pointers to it, code which > would do stuff like. > > for textboxes: > > Autocapitalise, or autocaps > Date validation routines/formatting routines > Name auto capitalisation eg for McBeth, or O'Neil etc > > Also In VB in the textbox routines one had (index, keyascii) and one could > manipulate the keyascii value to whatever to either exclude keys or > autocapitalise things etc > > I wondered how this worked in gambas, as though I can detect the keypress, > I couldnt see a way to send back a changed key value to the textbox. > > Thanks in anticipation. > > > Richard > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Richard, I did some name and address processing for a data capture post-processing program at work last year which involved processing UK postcodes and Mc, Mac and O' surnames. The problem I had to solve for the surnames was to present them in a uniform format as specified by the customer. I had to be able to take whatever style the operator had used and convert it to whatever the customer expected. The method I chose was to convert all name fields to title case and then search for the "Mc", "Mac" and "O'" patterns so I could capitalise the next letter. That was usually all I needed to do for "Mc" and "O'" as these are quite unique patterns at the beginning of names. The case for "Mac" was complicated by the possibility of a word not being a Scottish name; Macey, Mackie and Macclesfield spring to mind. I handled these using a lookup list in an array. The list should contain all words you don't want to convert, like those three and maybe a dozen others. In Gambas there is no title case function for a string. Just parse out the words using your own white space character list to determine the word breaks and then set the first character of each word to upper case. Now you have me interested in it again I think I'll try a Gambas translation. Richard From sourceforge-raindog2 at ...94... Wed Feb 13 22:40:09 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 13 Feb 2008 16:40:09 -0500 Subject: [Gambas-user] Highlight Editor - Capslock Key State In-Reply-To: <200802132108.04945.gambas@...1...> References: <15456466.post@...1379...> <6ddfd02f0802131112l70197acfx94f7045025066eeb@...627...> <200802132108.04945.gambas@...1...> Message-ID: <200802131640.09543.sourceforge-raindog2@...94...> On Wednesday 13 February 2008 15:08, Benoit Minisini wrote: > Interesting problem. I don't know if there is a way to know the > status of CAPS LOCK, or other modifier keys. I think there is. At the end of this post is the output of xev when I press "a" three times, turning caps lock on and off in between. Looking at the source of xev, the current status of the caps lock key seems to be bit 1 (value of 2) in XKeyEvent->state, which seems to correspond to the macro LockMask in X.h: /* from xev.c */ const char *Yes = "YES"; const char *No = "NO"; /* ... */ static void do_KeyPress (XEvent *eventp) { XKeyEvent *e = (XKeyEvent *) eventp; KeySym ks; char *ksname; /* ... */ printf (" state 0x%x, keycode %u (keysym 0x%lx, %s), same_screen %s,\n", e->state, e->keycode, (unsigned long) ks, ksname, e->same_screen ? Yes : No); } /* the above outputs "state 0x2" when caps lock is on */ /* from X.h */ #define LockMask (1<<1) /* i.e., 0x2 */ So someone using gb.api could probably detect the caps lock key the first time a key is pressed, after a little bit of painful libX11 manipulation. While this would only work when the user presses a key, the state flag is also passed with XMotionEvent, and appears to work the same way, so whenever the user moved the mouse you'd have your caps lock state as well. This doesn't seem to work for Scroll Lock, and I don't have a Num Lock key on my laptop so I don't know whether that would work too. Rob KeyPress event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286280441, (486,459), root:(489,543), state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XmbLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286280497, (486,459), root:(489,543), state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286281927, (486,459), root:(489,543), state 0x0, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286282007, (486,459), root:(489,543), state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286282869, (486,459), root:(489,543), state 0x2, keycode 38 (keysym 0x41, A), same_screen YES, XLookupString gives 1 bytes: (41) "A" XmbLookupString gives 1 bytes: (41) "A" XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286282933, (486,459), root:(489,543), state 0x2, keycode 38 (keysym 0x41, A), same_screen YES, XLookupString gives 1 bytes: (41) "A" XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286283508, (486,459), root:(489,543), state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286283587, (486,459), root:(489,543), state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286284033, (486,459), root:(489,543), state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XmbLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x3c00001, root 0x5d, subw 0x0, time 1286284097, (486,459), root:(489,543), state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False From maillists.gurulounge at ...626... Thu Feb 14 09:18:01 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Thu, 14 Feb 2008 00:18:01 -0800 Subject: [Gambas-user] FileView columns Message-ID: <1202977081.26362.4.camel@...1853...> I need to find a way to mantain "fixed" column widths for the FileView control. I haven't been able to find an explaination of the "settings" property for this or any control. I assume knowledge of this string would allow me to maintain "fixed" column widths for the Fileview control. Could somebody explain the "settings" string or point me in the right direction? Jeff From gambas at ...1... Thu Feb 14 12:05:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 14 Feb 2008 12:05:41 +0100 Subject: [Gambas-user] GTK problem In-Reply-To: <1202909241.3080.10.camel@...1857...> References: <1202560153.21200.4.camel@...1857...> <200802131404.01802.gambas@...1...> <1202909241.3080.10.camel@...1857...> Message-ID: <200802141205.41660.gambas@...1...> On mercredi 13 f?vrier 2008, Steven Drinnan wrote: > No prob, > > Gambas version 2.0.0 compiled from source code > > Fedora 8, GNOME 2.20.2, SCIM 1.4.6 > > > > 1. Open gambas > 2. Create a new project (graphical) > 3. Goto Tools-Database manager > 4. Connect to Server > > When you type there two characters are displayed when you press one > key. > > Click on the SCIM icon select a language, any language, the problem > disappears. > > As this has only happened in gambas I have not filed a bug report else > where. > > Waiting your advice. > > P.S Your support is awesome. > Can you try to compile from the /branches/2.0 subversion directory? (The future 2.1). There is a fix in keyboard management in it. But I'm not sure it will fix your problem I cannot reproduce. Regards, -- Benoit Minisini From gambas at ...1... Thu Feb 14 12:38:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 14 Feb 2008 12:38:18 +0100 Subject: [Gambas-user] Daniel Campos' interview Message-ID: <200802141238.18977.gambas@...1...> It's about his job in Extramadura, Linex, and the sense of life. Gambas is mentioned twice. Very interesting interview IMHO. http://hehe2.net/linux-general/an-interview-with-an-extremadura-developer-bringing-linux-to-the-masses -- Benoit Minisini From jfabiani at ...1109... Thu Feb 14 16:35:43 2008 From: jfabiani at ...1109... (johnf) Date: Thu, 14 Feb 2008 07:35:43 -0800 Subject: [Gambas-user] Daniel Campos' interview In-Reply-To: <200802141238.18977.gambas@...1...> References: <200802141238.18977.gambas@...1...> Message-ID: <200802140735.43999.jfabiani@...1109...> On Thursday 14 February 2008 03:38:18 am Benoit Minisini wrote: > It's about his job in Extramadura, Linex, and the sense of life. Gambas is > mentioned twice. Very interesting interview IMHO. > > http://hehe2.net/linux-general/an-interview-with-an-extremadura-developer-b >ringing-linux-to-the-masses Thanks for the link very good reading. -- John Fabiani From rterry at ...1822... Thu Feb 14 22:05:19 2008 From: rterry at ...1822... (richard terry) Date: Fri, 15 Feb 2008 08:05:19 +1100 Subject: [Gambas-user] Solution to your google maps problem Message-ID: <200802150805.20137.rterry@...1822...> To whoever posted the thing yesterday about konqueror not showing their google map reference, I tried it and same thing on my computer. However, driving to work this morning I suddenly though it was probably a javascript thing, so setting webbrowser2.javascript = True fixes the problem, and hey presto, there are the maps. Regards Richard From gambas.fr at ...626... Fri Feb 15 00:35:40 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 15 Feb 2008 00:35:40 +0100 Subject: [Gambas-user] Daniel Campos' interview In-Reply-To: <200802141238.18977.gambas@...1...> References: <200802141238.18977.gambas@...1...> Message-ID: <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> yes really good interview ... good job ... a new time Daniel ! 2008/2/14, Benoit Minisini : > > It's about his job in Extramadura, Linex, and the sense of life. Gambas is > mentioned twice. Very interesting interview IMHO. > > > http://hehe2.net/linux-general/an-interview-with-an-extremadura-developer-bringing-linux-to-the-masses > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Fri Feb 15 03:52:09 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 15 Feb 2008 02:52:09 +0000 Subject: [Gambas-user] Miscellaneous routines for text box validation In-Reply-To: <200802132046.15150.richard.j.walker@...247...> References: <200802081439.08124.rterry@...1822...> <200802132046.15150.richard.j.walker@...247...> Message-ID: <200802150252.09406.richard.j.walker@...247...> On Wednesday 13 February 2008 20:46:14 Richard wrote: > On Friday 08 February 2008 03:39:07 richard terry wrote: > > Hi all, > > > > My gambas learning project is progressing well (a contacts database > > manager), and I've got the point I can create new > > people/names/address(es), etc, now have to fine tune the gui, so not > > wanting to re-invent the wheel, I wondered if anyone had in their > > possession, or pointers to it, code which would do stuff like. > > > > for textboxes: > > > > Autocapitalise, or autocaps > > Date validation routines/formatting routines > > Name auto capitalisation eg for McBeth, or O'Neil etc > > > > Also In VB in the textbox routines one had (index, keyascii) and one > > could manipulate the keyascii value to whatever to either exclude keys or > > autocapitalise things etc > > > > I wondered how this worked in gambas, as though I can detect the > > keypress, I couldnt see a way to send back a changed key value to the > > textbox. > > > > Thanks in anticipation. > > > > > > Richard > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi Richard, > I did some name and address processing for a data capture post-processing > program at work last year which involved processing UK postcodes and Mc, > Mac and O' surnames. The problem I had to solve for the surnames was to > present them in a uniform format as specified by the customer. > > I had to be able to take whatever style the operator had used and convert > it to whatever the customer expected. The method I chose was to convert all > name fields to title case and then search for the "Mc", "Mac" and "O'" > patterns so I could capitalise the next letter. > > That was usually all I needed to do for "Mc" and "O'" as these are quite > unique patterns at the beginning of names. The case for "Mac" was > complicated by the possibility of a word not being a Scottish name; Macey, > Mackie and Macclesfield spring to mind. I handled these using a lookup list > in an array. The list should contain all words you don't want to convert, > like those three and maybe a dozen others. > > In Gambas there is no title case function for a string. Just parse out the > words using your own white space character list to determine the word > breaks and then set the first character of each word to upper case. Now you > have me interested in it again I think I'll try a Gambas translation. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Richard, I have attached a simple Gambas project which demonstrates the method I used for forcing initial capital letters in names. It uses a a slightly modified version of the TitleCase() function I sent to you to enable smart handling of names like O'Donnell, MacDonald, Mackintosh and McVeigh. It also makes a fair job of abbreviations (Mrs, Dr, MP) and any it misses are quite easy to add to the relevant look up word list. Names like Du Plessis and place names like Southend-On-Sea should work too. You may also want to add any two or three letter words which might be found in Oz that I haven't included. It is fairly well tested, but I may have introduced unexpected "features" as the code is completely different from my original VB implementation of the same concepts. If you have any problems just shout out and I'll either fix it or just commiserate with you :~) Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: TitleTest-1.0.tar.gz Type: application/x-tgz Size: 11853 bytes Desc: not available URL: From o.s.p at ...69... Fri Feb 15 14:30:09 2008 From: o.s.p at ...69... (o.s.p) Date: Fri, 15 Feb 2008 13:30:09 +0000 Subject: [Gambas-user] no fonts at all In-Reply-To: <47ADC2BB.6080808@...1601...> References: <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> <200802081536.41443.gambas@...1...> <47AC6C96.3090604@...1601...> <47ADBCB1.9060509@...69...> <47ADC2BB.6080808@...1601...> Message-ID: <47B593E1.1000508@...69...> Gabriel C ha scritto: > o.s.p wrote: > >> Gabriel C ha scritto: >> >>> Benoit Minisini wrote: >>> >>> >>>> On vendredi 8 f?vrier 2008, Gabriel C wrote: >>>> >>>> >>>>> I have an report from a user in Frugalware getting that when installing >>>>> gambas2 from 'source' / 'svn'. >>>>> >>>>> I myself cannot reproduce that , however you can try to run : >>>>> >>>>> fc-cache -f -r -s -v as root. >>>>> >>>>> >>>>> >>>> Is it on a Gentoo system? >>>> >>>> >>> No is Frugalware Linux. >>> >>> >>> >>>> I don't think this problem is really Gambas' fault, as I do nothing special >>>> about fonts. >>>> >>>> >>>> >>> Also I could not reproduce that problem at all, for me gambas2 works fine on the same Frugalware version. >>> >>> >>> >> here i am! >> frugalware daily updated. >> till the 1.9.xxx series i haven't had any problem with gambas >> i have qt3 and kde3.5 installed but i can't try qt4 for space problems >> gambas is the only application with this problem on my system >> all paths and sections into fonts.conf are correct >> fc-cache reports around 500 fonts... >> but on other systems with this distro (i've posted this problem on the >> forums) >> this problem doesn't exist... >> i'm waiting for a package created by a programmer to be added to the repos >> to see what happens. >> > > s/programmer/developer/ :P , which is me :) > > Anyway , I'm with Benoit , can't see how this can be caused by gambas itself. > > >> thanks >> >> > > Gabriel > my os becomes from the 0.4 version... but the message reports that section is not found if you have not this problem can you send me the font.conf and font.dtd to see if there are differences? thanks From adhayantinur at ...43... Sat Feb 16 02:20:35 2008 From: adhayantinur at ...43... (Adhayanti Nur) Date: Fri, 15 Feb 2008 17:20:35 -0800 (PST) Subject: [Gambas-user] ask for any example programs for gambas Message-ID: <961217.1198.qm@...1861...> dear all, i' new face in gambas. may be some can tell me what situs can i found many programs with free source code for examine.pliz !!! thank you --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. From richard.j.walker at ...247... Sat Feb 16 02:26:39 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 16 Feb 2008 01:26:39 +0000 Subject: [Gambas-user] ask for any example programs for gambas In-Reply-To: <961217.1198.qm@...1861...> References: <961217.1198.qm@...1861...> Message-ID: <200802160126.39931.richard.j.walker@...247...> On Saturday 16 February 2008 01:20:35 Adhayanti Nur wrote: > dear all, > i' new face in gambas. may be some can tell me what situs can i found many > programs with free source code for examine.pliz !!! thank you > > > --------------------------------- > Looking for last minute shopping deals? Find them fast with Yahoo! Search. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Welcome to our happy band. Try here for working programs and some tutorials: http://www.gambasforge.net/cgi-bin/index.gambas Also look in the Gambas startup screen for the opportunity to load and view/run many example programs included with the Gambas IDE. Richard From richard.j.walker at ...247... Sat Feb 16 03:26:04 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 16 Feb 2008 02:26:04 +0000 Subject: [Gambas-user] Miscellaneous routines for text box validation In-Reply-To: <200802150252.09406.richard.j.walker@...247...> References: <200802081439.08124.rterry@...1822...> <200802132046.15150.richard.j.walker@...247...> <200802150252.09406.richard.j.walker@...247...> Message-ID: <200802160226.04388.richard.j.walker@...247...> On Friday 15 February 2008 02:52:09 Richard wrote: > On Wednesday 13 February 2008 20:46:14 Richard wrote: > > On Friday 08 February 2008 03:39:07 richard terry wrote: > > > Hi all, > > > > > > My gambas learning project is progressing well (a contacts database > > > manager), and I've got the point I can create new > > > people/names/address(es), etc, now have to fine tune the gui, so not > > > wanting to re-invent the wheel, I wondered if anyone had in their > > > possession, or pointers to it, code which would do stuff like. > > > > > > for textboxes: > > > > > > Autocapitalise, or autocaps > > > Date validation routines/formatting routines > > > Name auto capitalisation eg for McBeth, or O'Neil etc > > > > > > Also In VB in the textbox routines one had (index, keyascii) and one > > > could manipulate the keyascii value to whatever to either exclude keys > > > or autocapitalise things etc > > > > > > I wondered how this worked in gambas, as though I can detect the > > > keypress, I couldnt see a way to send back a changed key value to the > > > textbox. > > > > > > Thanks in anticipation. > > > > > > > > > Richard > > > > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Hi Richard, > > I did some name and address processing for a data capture post-processing > > program at work last year which involved processing UK postcodes and Mc, > > Mac and O' surnames. The problem I had to solve for the surnames was to > > present them in a uniform format as specified by the customer. > > > > I had to be able to take whatever style the operator had used and convert > > it to whatever the customer expected. The method I chose was to convert > > all name fields to title case and then search for the "Mc", "Mac" and > > "O'" patterns so I could capitalise the next letter. > > > > That was usually all I needed to do for "Mc" and "O'" as these are quite > > unique patterns at the beginning of names. The case for "Mac" was > > complicated by the possibility of a word not being a Scottish name; > > Macey, Mackie and Macclesfield spring to mind. I handled these using a > > lookup list in an array. The list should contain all words you don't want > > to convert, like those three and maybe a dozen others. > > > > In Gambas there is no title case function for a string. Just parse out > > the words using your own white space character list to determine the word > > breaks and then set the first character of each word to upper case. Now > > you have me interested in it again I think I'll try a Gambas translation. > > > > Richard > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Richard, > I have attached a simple Gambas project which demonstrates the method I > used for forcing initial capital letters in names. > > It uses a a slightly modified version of the TitleCase() function I sent to > you to enable smart handling of names like O'Donnell, MacDonald, Mackintosh > and McVeigh. It also makes a fair job of abbreviations (Mrs, Dr, MP) and > any it misses are quite easy to add to the relevant look up word list. > Names like Du Plessis and place names like Southend-On-Sea should work too. > > You may also want to add any two or three letter words which might be found > in Oz that I haven't included. > > It is fairly well tested, but I may have introduced unexpected "features" > as the code is completely different from my original VB implementation of > the same concepts. If you have any problems just shout out and I'll either > fix it or just commiserate with you :~) > > Richard I have updated the form to provide some examples of the other types of formatting/validation you mentioned. It is not exhaustive but it should provide some more ideas to add to the techniques Stefano illustrated. The new ValueBox widget is great for controlling input of dates, times, numbers and the like. Reformatting dates for display is also very easy. I have provided one example of a text field for structured numbers like vehicle registration numbers, postcodes, national insurance numbers. It also shows how pattern matching can be used to validate, for example, three letters and 4 digits separated by a space character. > > > I wondered how this worked in gambas, as though I can detect the > > > keypress, I couldnt see a way to send back a changed key value to the > > > textbox. There is an example in Gambas HELP (gb.qt.TextBox.Change) which warns about changing the text within the Change event handler as that triggers another Change event. The recommended workaround doesn't seem to be present in Stefano's example - perhaps it is no longer necessary. -------------- next part -------------- A non-text attachment was scrubbed... Name: TitleTest-1.0.1.tar.gz Type: application/x-tgz Size: 13021 bytes Desc: not available URL: From peterdatkins at ...1073... Sat Feb 16 09:49:00 2008 From: peterdatkins at ...1073... (PETER ATKINS) Date: Sat, 16 Feb 2008 08:49:00 +0000 (GMT) Subject: [Gambas-user] Examples Message-ID: <374844.98208.qm@...1862...> After downloading Archive manager gives error "unexpected end of file" on all the examples I have downloaded from gambas.forgenet. Can you help please Peter From eilert-sprachen at ...221... Sat Feb 16 11:22:51 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 16 Feb 2008 11:22:51 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802011520.40504.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <200802011342.50521.rospolosco@...152...> <200802011437.19471.rospolosco@...152...> <200802011520.40504.rospolosco@...152...> Message-ID: <47B6B97B.8030601@...221...> Stefano Palmeri schrieb: > And so finally :-) , to avoid multiple instances we could do: > > PUBLIC SUB Main() > > DIM sShellOutput AS String > > SHELL "pgrep -f " & Application.Args[0] TO sShellOutput > IF Split(Trim$(sShellOutput), "\n").Count > 1 THEN QUIT > > END > > Stefano > This is not multiuser-safe unfortunately. I just tested it here, and if the second user starts the program, it refuses to come up. Of course it does, as this asks for the name of the program only. So I improved the thing by adding "-u": SHELL "pgrep -f -u " & User.ID & " " & Application.Args[0] TO sShellOutput Now I've got two questions for the experts: First, my program lacks a SUB Main() but it worked within Form1_Load() as well. Is that ok? I ask because if started from a terminal, Gambas says 31 allocations not freed etc. (I am using the HighlightEditor example for this). Second, maybe it's better to use "-U" instead of "-u", what is the difference? Hope someone still follows this thread... :-) Rolf From leonardo at ...1237... Sat Feb 16 11:43:22 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 16 Feb 2008 11:43:22 +0100 Subject: [Gambas-user] Bug submission Message-ID: <47B6BE4A.9000608@...1237...> Question.. in Gambas IDE if I select a word from right to left and press F2 nothing happens on my system.... a friend of mine, instead, gets an error .. but if I select a word from left to right and press F2 all works perfectly and help is shown.. is this right? It is not easy to reproduce it because you have to select an object with its property. Example: let assume that you have Message.Info. If you select all the text ("Message.Info") from right-->left I don't get the browser opened. But if I select from left-->right the browser opens and show the doc. If the selected objet is related to Qt (example: TextBox1.Text), if I select from right-->left I get a "page not found" error in my browser. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From rospolosco at ...152... Sat Feb 16 11:55:50 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 16 Feb 2008 11:55:50 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47B6B97B.8030601@...221...> References: <1201778051.1707.6.camel@...1853...> <200802011520.40504.rospolosco@...152...> <47B6B97B.8030601@...221...> Message-ID: <200802161155.50366.rospolosco@...152...> Alle 11:22, sabato 16 febbraio 2008, Rolf-Werner Eilert ha scritto: > Stefano Palmeri schrieb: > > And so finally :-) , to avoid multiple instances we could do: > > > > PUBLIC SUB Main() > > > > DIM sShellOutput AS String > > > > SHELL "pgrep -f " & Application.Args[0] TO sShellOutput > > IF Split(Trim$(sShellOutput), "\n").Count > 1 THEN QUIT > > > > END > > > > Stefano > > This is not multiuser-safe unfortunately. I just tested it here, and if > the second user starts the program, it refuses to come up. > > Of course it does, as this asks for the name of the program only. So I > improved the thing by adding "-u": > > SHELL "pgrep -f -u " & User.ID & " " & Application.Args[0] TO sShellOutput > > Now I've got two questions for the experts: > > First, my program lacks a SUB Main() but it worked within Form1_Load() > as well. Is that ok? I ask because if started from a terminal, Gambas > says 31 allocations not freed etc. (I am using the HighlightEditor > example for this). > > Second, maybe it's better to use "-U" instead of "-u", what is the > difference? > > Hope someone still follows this thread... :-) > > Rolf > To understand the difference between "-u" and "-U", try to run a SUID application, I mean an application that you can run as normal user and gives you root privileges: "-u" normal_user SUID_application *doesn't* return anything. "-U" normal_user SUID_application returns the process I definitively prefer "-U" option, that manages the user that launches the application. Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mcturra2000 at ...370... Sat Feb 16 13:58:21 2008 From: mcturra2000 at ...370... (mark carter) Date: Sat, 16 Feb 2008 12:58:21 +0000 Subject: [Gambas-user] Where's the FileChooser? Message-ID: <47B6DDED.9090600@...370...> Hi, I'm using Gambas2 on Ubuntu, and I'd like to use the FileChooser. I did apt-get install gambas2 I have created a form and a button, and presumably there should be a control on the toolbox for FormChooser - but it doesn't exist. Please help. BTW, I think Gambas is a neat project on account of its principle of KISS. I'm a keen Pythoneer, BTW. From mcturra2000 at ...370... Sat Feb 16 14:28:18 2008 From: mcturra2000 at ...370... (mark carter) Date: Sat, 16 Feb 2008 13:28:18 +0000 Subject: [Gambas-user] FileChooser - getting closer Message-ID: <47B6E4F2.9080605@...370...> Well, I found that I have to include the componet by selecting menu item: Project > Properties and adding component db.form. So I've added a button and the subroutine: PUBLIC SUB btnSelectFile_Click() DIM fc AS FileChooser fc = NEW FileChooser 'fc.ro 'fc.Show TRUE END So I run it using the debugger, when I click on the button I created, which calls the above sub, it says Not Enough Arguments Huh? From rospolosco at ...152... Sat Feb 16 15:55:12 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 16 Feb 2008 15:55:12 +0100 Subject: [Gambas-user] FileChooser - getting closer In-Reply-To: <47B6E4F2.9080605@...370...> References: <47B6E4F2.9080605@...370...> Message-ID: <200802161555.12399.rospolosco@...152...> Alle 14:28, sabato 16 febbraio 2008, mark carter ha scritto: > PUBLIC SUB btnSelectFile_Click() > > ?DIM fc AS FileChooser > ?fc = NEW FileChooser > ?'fc.ro > ?'fc.Show TRUE > > END fc = NEW FileChooser(ME) Stefano From eilert-sprachen at ...221... Sat Feb 16 17:44:42 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 16 Feb 2008 17:44:42 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200802161155.50366.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <200802011520.40504.rospolosco@...152...> <47B6B97B.8030601@...221...> <200802161155.50366.rospolosco@...152...> Message-ID: <47B712FA.1050707@...221...> Stefano Palmeri schrieb: > Alle 11:22, sabato 16 febbraio 2008, Rolf-Werner Eilert ha scritto: >> Stefano Palmeri schrieb: >>> And so finally :-) , to avoid multiple instances we could do: >>> >>> PUBLIC SUB Main() >>> >>> DIM sShellOutput AS String >>> >>> SHELL "pgrep -f " & Application.Args[0] TO sShellOutput >>> IF Split(Trim$(sShellOutput), "\n").Count > 1 THEN QUIT >>> >>> END >>> >>> Stefano >> This is not multiuser-safe unfortunately. I just tested it here, and if >> the second user starts the program, it refuses to come up. >> >> Of course it does, as this asks for the name of the program only. So I >> improved the thing by adding "-u": >> >> SHELL "pgrep -f -u " & User.ID & " " & Application.Args[0] TO sShellOutput >> >> Now I've got two questions for the experts: >> >> First, my program lacks a SUB Main() but it worked within Form1_Load() >> as well. Is that ok? I ask because if started from a terminal, Gambas >> says 31 allocations not freed etc. (I am using the HighlightEditor >> example for this). >> >> Second, maybe it's better to use "-U" instead of "-u", what is the >> difference? >> >> Hope someone still follows this thread... :-) >> >> Rolf >> > > To understand the difference between "-u" and "-U", try to > run a SUID application, I mean an application that you can run > as normal user and gives you root privileges: > > "-u" normal_user SUID_application *doesn't* return anything. > > "-U" normal_user SUID_application returns the process > > I definitively prefer "-U" option, that manages the user that launches > the application. > > Stefano > Thank you, Stefano, that makes it clear to me. Rolf From nxgtrturbo at ...626... Sat Feb 16 19:53:11 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 16 Feb 2008 10:53:11 -0800 Subject: [Gambas-user] Focus Events on DataControls Message-ID: <688afe140802161053i7f7bd5c9y146aafe300c09060@...627...> Hi everybody, (Hope this wont be junk but.. happy valentine's day) Is there a way to know when a DataControls get focused (by keyboard), What I have tried is: PUBLIC SUB DataControl8_GotFocus() Message.info("Got focus") END PUBLIC SUB DataControl8_KeyPress() Message.Info("Key press") END PUBLIC SUB DataControl8_MouseDown() Message.Info("Mouse down") END But nothing happens, the only way I knew that was focused was by the "Enter" event, I think thats wrong, since "Enter" sound more like "hit enter by keyboard", and the actual behavior is "action when focused by mouse (only)" What I want to do is an automatic process, something like, get number one, then get number two, and automatically give the sum, without the user needs to push a button or something (I am working with Datacontrols, since all the data must be saved) I wanted Focused since most user like to use TAB button to move in each field, so when the result field got focused, the sum would be calculated automatically (thats in some way automatic, in some way not, but thats a good (and fast for the user) option) Thanks in advance. -- Nx GT-R From nxgtrturbo at ...626... Sat Feb 16 21:47:15 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 16 Feb 2008 12:47:15 -0800 Subject: [Gambas-user] Bug in Min function Message-ID: <688afe140802161247m3379de67k5ace366ae11a49dd@...627...> There is a Bug in Min function, or at least, an error in the function syntax The syntax is: Min (Value as variant, Value 2 as variant, Value N as variant) (at least thats what the code editor says) When comparing 2 Values, everything works OK, but when more that 2, I got a "Too many arguments error" I Think thats a bug, but I am not sure, since the HELP documentation says only two parameters are allowed What I want to do is: Min(a, e, i, o, u) But of course, an easy workaround exist: Min(Min(Min(a, e), Min(i, o)), u) -- Nx GT-R From info at ...1863... Sat Feb 16 22:07:34 2008 From: info at ...1863... (Zano) Date: Sat, 16 Feb 2008 22:07:34 +0100 Subject: [Gambas-user] mysql problems Message-ID: <47B75096.9090507@...1863...> Hi guys, I'm new for this mailing list and a new gambas user. I'm from Italy, so be patient if my english is not corect :-) I'm trying some examples, mainly "database" since I'ld like to use gambas instead of php to manage DBs. Well... the problem is that I cannot connect to mysql since I get a socket error. Gambas looks for the socket in /tmp while the working socket is /var/run/mysql, the default [1] Can someone help me? Thank you in advance [1] I use mysqld_multi and there is another socket in /media/hdb1/user/work/ From maximvonk at ...626... Sat Feb 16 22:34:19 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 16 Feb 2008 13:34:19 -0800 (PST) Subject: [Gambas-user] TextEditor - Linking to an Anchor Message-ID: <15518676.post@...1379...> Hi, there. I know that with the ReadOnly property set to TRUE I can raise the Link event in the TextEditor when a link is clicked, but is there any way to actually navigate to an anchor on the same page? Thanks Max -- View this message in context: http://www.nabble.com/TextEditor---Linking-to-an-Anchor-tp15518676p15518676.html Sent from the gambas-user mailing list archive at Nabble.com. From nxgtrturbo at ...626... Sat Feb 16 23:30:51 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 16 Feb 2008 14:30:51 -0800 Subject: [Gambas-user] Console commands from Gambas? Message-ID: <688afe140802161430q69b68749wcfd1216757c77dff@...627...> Hi, everybody, I was wondering if theres a way to access console commands from a gambas app, I mean, something like having a button like "Open Google" what from console can be done by (if you have Firefox of course) firefox www.google.com Actually I am doing that right now by: Desktop.Open("http://www.google.com") But that works freaky, since my app stop working for some seconds, but, opening web pages, isn't the only thing I want to do, thats the reason of this post. Is there a way to input console commands from a gambas app? (that would give infinite possibilities) Thanks in advance -- Nx GT-R From steven at ...1652... Sat Feb 16 23:48:16 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 16 Feb 2008 23:48:16 +0100 Subject: [Gambas-user] Console commands from Gambas? In-Reply-To: <688afe140802161430q69b68749wcfd1216757c77dff@...627...> References: <688afe140802161430q69b68749wcfd1216757c77dff@...627...> Message-ID: <1203202096.20750.25.camel@...1816...> Exec or Shell See doc Steven Le samedi 16 f?vrier 2008 ? 14:30 -0800, Nx GT-R BOY a ?crit : > Hi, everybody, I was wondering if theres a way to access console commands > from a gambas app, I mean, something like having a button like "Open Google" > what from console can be done by (if you have Firefox of course) > > firefox www.google.com > > Actually I am doing that right now by: > Desktop.Open("http://www.google.com") > > But that works freaky, since my app stop working for some seconds, but, > opening web pages, isn't the only thing I want to do, thats the reason of > this post. > > Is there a way to input console commands from a gambas app? (that would give > infinite possibilities) > > Thanks in advance From horechuk at ...981... Sun Feb 17 00:24:02 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sat, 16 Feb 2008 18:24:02 -0500 Subject: [Gambas-user] Runtime error for Gambas3 Message-ID: <200802161824.02966.horechuk@...981...> Running kubuntu 7.04 64 bit svn trunk 1075 I get an immediate error as per the attached screenshot. Where is the default settings file? /usr/local/lib/gb.settings.gambas? How can I correct this? -- -- Paul Horechuk Think Free Use Open Sourec Software -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas Settings.png Type: image/png Size: 19860 bytes Desc: not available URL: From nxgtrturbo at ...626... Mon Feb 18 01:23:15 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sun, 17 Feb 2008 16:23:15 -0800 Subject: [Gambas-user] Empty Result in Gambas Message-ID: <688afe140802171623s45b19073gcbb67aa83e277884@...627...> Hi, I have a little problem with the Result data-type in gambas. I don't know how to know when the result is empty, something like this: myresult = conexion.Exec("select name from table where id = '5'") If theres an id=5 everything goes perfect, since I know that because myresult!name gives me something, but what when nothing was found, I tried: If myresult!name = NULL then Message.info("Not found") end if But that didn't work, so, whats the way to do it? Thanks in advance. -- Nx GT-R From rterry at ...1822... Mon Feb 18 03:27:03 2008 From: rterry at ...1822... (richard terry) Date: Mon, 18 Feb 2008 13:27:03 +1100 Subject: [Gambas-user] Empty Result in Gambas In-Reply-To: <688afe140802171623s45b19073gcbb67aa83e277884@...627...> References: <688afe140802171623s45b19073gcbb67aa83e277884@...627...> Message-ID: <200802181327.03745.rterry@...1822...> On Mon, 18 Feb 2008 11:23:15 am Nx GT-R BOY wrote: > Hi, I have a little problem with the Result data-type in gambas. > > I don't know how to know when the result is empty, something like this: > > myresult = conexion.Exec("select name from table where id = '5'") Try this: If myresult.count then do whatever else print " nothing in my result set" end if regards Richard > > If theres an id=5 everything goes perfect, since I know that because > myresult!name gives me something, but what when nothing was found, I tried: > > If myresult!name = NULL then > Message.info("Not found") > end if > > But that didn't work, so, whats the way to do it? > > Thanks in advance. From nxgtrturbo at ...626... Mon Feb 18 04:43:45 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sun, 17 Feb 2008 19:43:45 -0800 Subject: [Gambas-user] Incompatible components? Message-ID: <688afe140802171943r158d5c4as9dafc8d2b0a8280f@...627...> Hi, I am having problems to print in Gambas Right now I am using the gb.gui component since my program crash if I use the gb.qt component. So, as far as I know I need the gb.qt component to use the "printer object". My question is if there something I can do since the gb.gui component is a QT switcher isn't it? Is there a way to use gb.gui and gb.qt? when I try I got an "incompatible message" (As a workaround I am going to use lpr if thats the only hope) Thanks in advance -- Nx GT-R From Karl.Reinl at ...9... Mon Feb 18 09:13:45 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 18 Feb 2008 09:13:45 +0100 Subject: [Gambas-user] Empty Result in Gambas In-Reply-To: <200802181327.03745.rterry@...1822...> References: <688afe140802171623s45b19073gcbb67aa83e277884@...627...> <200802181327.03745.rterry@...1822...> Message-ID: <1203322426.5478.2.camel@...40...> Salut, I know from gambas1, does that work anymore ? rTest = ThisConn.Handle.Exec(sSQL) IF rTest.Available THEN Amicalment Charlie Am Montag, den 18.02.2008, 13:27 +1100 schrieb richard terry: > On Mon, 18 Feb 2008 11:23:15 am Nx GT-R BOY wrote: > > Hi, I have a little problem with the Result data-type in gambas. > > > > I don't know how to know when the result is empty, something like this: > > > > myresult = conexion.Exec("select name from table where id = '5'") > > Try this: > > If myresult.count then > do whatever > else > print " nothing in my result set" > end if > > regards > > Richard > > > > > If theres an id=5 everything goes perfect, since I know that because > > myresult!name gives me something, but what when nothing was found, I tried: > > > > If myresult!name = NULL then > > Message.info("Not found") > > end if > > > > But that didn't work, so, whats the way to do it? > > > > Thanks in advance. From smiefert at ...784... Mon Feb 18 09:32:48 2008 From: smiefert at ...784... (smiefert at ...784...) Date: 18 Feb 2008 08:32:48 UT Subject: [Gambas-user] load a picture via URL in a PictureBox Message-ID: Hello, how can i load a picture from the web into a gambas Picturebox ? From leonardo at ...1237... Mon Feb 18 10:43:36 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 18 Feb 2008 10:43:36 +0100 Subject: [Gambas-user] Empty Result in Gambas In-Reply-To: <1203322426.5478.2.camel@...40...> References: <688afe140802171623s45b19073gcbb67aa83e277884@...627...> <200802181327.03745.rterry@...1822...> <1203322426.5478.2.camel@...40...> Message-ID: <47B95348.4040507@...1237...> Charlie Reinl ha scritto: > Salut, > > I know from gambas1, does that work anymore ? > > rTest = ThisConn.Handle.Exec(sSQL) > IF rTest.Available THEN This works in Gambas 2 too. I use this to check if I get results from a query. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From rospolosco at ...152... Mon Feb 18 10:45:47 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 18 Feb 2008 10:45:47 +0100 Subject: [Gambas-user] load a picture via URL in a PictureBox In-Reply-To: References: Message-ID: <200802181045.47900.rospolosco@...152...> Alle 09:32, luned? 18 febbraio 2008, smiefert at ...784... ha scritto: > Hello, > > how can i load a picture from the web into a gambas Picturebox ? > I think you have to save it locally and then load it in the picturebox. i.e. : DIM sTempImageFile AS String sTempImageFile = Temp$ SHELL "wget http://www.spreadfirefox.com/sites/all/themes/spreadfirefox_RCS/logo.jpg" & " -O " & sTempImageFile WAIT PictureBox1.Picture = Picture[sTempImageFile] KILL sTempImageFile I don't know if there are better ways to do it. Probably yes. Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Mon Feb 18 10:46:54 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 18 Feb 2008 10:46:54 +0100 Subject: [Gambas-user] Incompatible components? In-Reply-To: <688afe140802171943r158d5c4as9dafc8d2b0a8280f@...627...> References: <688afe140802171943r158d5c4as9dafc8d2b0a8280f@...627...> Message-ID: <47B9540E.8050108@...1237...> Nx GT-R BOY ha scritto: > Hi, I am having problems to print in Gambas > > Right now I am using the gb.gui component since my program crash if I use > the gb.qt component. > > So, as far as I know I need the gb.qt component to use the "printer object". > > My question is if there something I can do since the gb.gui component is a > QT switcher isn't it? > > Is there a way to use gb.gui and gb.qt? when I try I got an "incompatible > message" > > (As a workaround I am going to use lpr if thats the only hope) > > Thanks in advance The gb.gui component is a switch: it automatically select the component from gb.gtk or gb.qt that matches with the desktop environment the user that runs your application has. So you cannot use gb.gui with gb.gtk or gb.qt. I am in a similar condition: I _would_ use the gb.gui component but I _must_ use the gb.qt one because I need the Printer object... :-( -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From david_villalobos_c at ...43... Mon Feb 18 15:19:58 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 18 Feb 2008 06:19:58 -0800 (PST) Subject: [Gambas-user] mysql problems Message-ID: <313297.48596.qm@...1782...> Try this, if not... tell me... http://gambasdoc.org/help/howto/database David ----- Original Message ---- From: Zano To: gambas-user at lists.sourceforge.net Sent: Saturday, February 16, 2008 3:07:34 PM Subject: [Gambas-user] mysql problems Hi guys, I'm new for this mailing list and a new gambas user. I'm from Italy, so be patient if my english is not corect :-) I'm trying some examples, mainly "database" since I'ld like to use gambas instead of php to manage DBs. Well... the problem is that I cannot connect to mysql since I get a socket error. Gambas looks for the socket in /tmp while the working socket is /var/run/mysql, the default [1] Can someone help me? Thank you in advance [1] I use mysqld_multi and there is another socket in /media/hdb1/user/work/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From gambas at ...1... Mon Feb 18 15:30:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 18 Feb 2008 15:30:02 +0100 Subject: [Gambas-user] Bug in Min function In-Reply-To: <688afe140802161247m3379de67k5ace366ae11a49dd@...627...> References: <688afe140802161247m3379de67k5ace366ae11a49dd@...627...> Message-ID: <200802181530.02308.gambas@...1...> On samedi 16 f?vrier 2008, Nx GT-R BOY wrote: > There is a Bug in Min function, or at least, an error in the function > syntax > > The syntax is: > Min (Value as variant, Value 2 as variant, Value N as variant) > (at least thats what the code editor says) > > When comparing 2 Values, everything works OK, but when more that 2, I got a > "Too many arguments error" > > I Think thats a bug, but I am not sure, since the HELP documentation says > only two parameters are allowed > > What I want to do is: > Min(a, e, i, o, u) > > But of course, an easy workaround exist: > Min(Min(Min(a, e), Min(i, o)), u) The code editor is wrong. Min and Max take only two arguments. Regards, -- Benoit Minisini From gambas at ...1... Mon Feb 18 15:34:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 18 Feb 2008 15:34:30 +0100 Subject: [Gambas-user] Where's the FileChooser? In-Reply-To: <47B6DDED.9090600@...370...> References: <47B6DDED.9090600@...370...> Message-ID: <200802181534.30527.gambas@...1...> On samedi 16 f?vrier 2008, mark carter wrote: > Hi, > > I'm using Gambas2 on Ubuntu, and I'd like to use the FileChooser. I did > apt-get install gambas2 > I have created a form and a button, and presumably there should be a > control on the toolbox for FormChooser - but it doesn't exist. > > Please help. > > BTW, I think Gambas is a neat project on account of its principle of > KISS. I'm a keen Pythoneer, BTW. > The FileChooser is in the gb.form component. -- Benoit Minisini From info at ...1863... Mon Feb 18 16:50:19 2008 From: info at ...1863... (Zano) Date: Mon, 18 Feb 2008 16:50:19 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <313297.48596.qm@...1782...> References: <313297.48596.qm@...1782...> Message-ID: <47B9A93B.2020600@...1863...> David Villalobos Cambronero ha scritto il 02/18/2008 03:19 PM: > Try this, if not... tell me... > > http://gambasdoc.org/help/howto/database > I tried, but the result is the same: it looks for the socket in the wrong place From david_villalobos_c at ...43... Mon Feb 18 16:59:58 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 18 Feb 2008 07:59:58 -0800 (PST) Subject: [Gambas-user] mysql problems Message-ID: <776826.14926.qm@...1782...> Well, it seems to me that there is a problem with MySQL and not Gambas, Can you connect with MySQL by a terminal? If Gambas compiled the gb.db.mysql component OK there shouldn?t be a problem. ----- Original Message ---- From: Zano To: mailing list for gambas users Sent: Monday, February 18, 2008 9:50:19 AM Subject: Re: [Gambas-user] mysql problems David Villalobos Cambronero ha scritto il 02/18/2008 03:19 PM: > Try this, if not... tell me... > > http://gambasdoc.org/help/howto/database > I tried, but the result is the same: it looks for the socket in the wrong place ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From info at ...1863... Mon Feb 18 17:34:05 2008 From: info at ...1863... (Zano) Date: Mon, 18 Feb 2008 17:34:05 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <776826.14926.qm@...1782...> References: <776826.14926.qm@...1782...> Message-ID: <47B9B37D.3010403@...1863...> David Villalobos Cambronero ha scritto il 02/18/2008 04:59 PM: > Well, it seems to me that there is a problem with MySQL and not Gambas, Can you connect with MySQL by a terminal? > > If Gambas compiled the gb.db.mysql component OK there shouldn?t be a problem. > This is what I get when connecting with MySql. As you can see, there is a wikidb which I use for personal purposes. This to say that mysql works :-) ============================================= bash-3.2# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 118 Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | | wikidb | +--------------------+ 4 rows in set (0.00 sec) mysql> \q Bye bash-3.2# ============================================= From david_villalobos_c at ...43... Mon Feb 18 18:25:27 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 18 Feb 2008 09:25:27 -0800 (PST) Subject: [Gambas-user] mysql problems Message-ID: <365879.71694.qm@...1782...> So estrange can you send a copy of the project? ----- Original Message ---- From: Zano To: mailing list for gambas users Sent: Monday, February 18, 2008 10:34:05 AM Subject: Re: [Gambas-user] mysql problems David Villalobos Cambronero ha scritto il 02/18/2008 04:59 PM: > Well, it seems to me that there is a problem with MySQL and not Gambas, Can you connect with MySQL by a terminal? > > If Gambas compiled the gb.db.mysql component OK there shouldn?t be a problem. > This is what I get when connecting with MySql. As you can see, there is a wikidb which I use for personal purposes. This to say that mysql works :-) ============================================= bash-3.2# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 118 Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | | wikidb | +--------------------+ 4 rows in set (0.00 sec) mysql> \q Bye bash-3.2# ============================================= ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From info at ...1863... Mon Feb 18 19:14:14 2008 From: info at ...1863... (Zano) Date: Mon, 18 Feb 2008 19:14:14 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <365879.71694.qm@...1782...> References: <365879.71694.qm@...1782...> Message-ID: <47B9CAF6.1090307@...1863...> David Villalobos Cambronero ha scritto il 02/18/2008 06:25 PM: > So estrange can you send a copy of the project? > It's the example you find in /gambas2/examples/Database/Database/Fmain.class in the original package. What I've noticed is that it doesn't care of psw, username. It signals error with "mysql" and "localhost" From maximvonk at ...626... Mon Feb 18 21:20:14 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 18 Feb 2008 12:20:14 -0800 (PST) Subject: [Gambas-user] Bug in Form position? Message-ID: <15549064.post@...1379...> Hi, I noticed this as I was using gb.settings to save and load the size and position of my form: No matter where I am in my program, the Top and Left properties of the form are always zero. I'm using Gambas 2.0.0 on Ubuntu 7.10 Cheers Max -- View this message in context: http://www.nabble.com/Bug-in-Form-position--tp15549064p15549064.html Sent from the gambas-user mailing list archive at Nabble.com. From Mike at ...680... Mon Feb 18 22:09:11 2008 From: Mike at ...680... (Mike Keehan) Date: Mon, 18 Feb 2008 21:09:11 +0000 Subject: [Gambas-user] Bug in Form position? In-Reply-To: <15549064.post@...1379...> References: <15549064.post@...1379...> Message-ID: <47B9F3F7.2060609@...680...> Try moving the form and then looking at the values. It does the same for me - until the form is moved, the reported values are 0. Mike. MaxVK wrote: > Hi, I noticed this as I was using gb.settings to save and load the size and > position of my form: > > No matter where I am in my program, the Top and Left properties of the form > are always zero. > > I'm using Gambas 2.0.0 on Ubuntu 7.10 > > Cheers > > Max From gambas at ...1... Mon Feb 18 23:03:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 18 Feb 2008 23:03:37 +0100 Subject: [Gambas-user] Bug in Form position? In-Reply-To: <15549064.post@...1379...> References: <15549064.post@...1379...> Message-ID: <200802182303.37616.gambas@...1...> On lundi 18 f?vrier 2008, MaxVK wrote: > Hi, I noticed this as I was using gb.settings to save and load the size and > position of my form: > > No matter where I am in my program, the Top and Left properties of the form > are always zero. > > I'm using Gambas 2.0.0 on Ubuntu 7.10 > > Cheers > > Max The Form/Window X and Y properties have been fixed in the 1078 revision. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Mon Feb 18 23:20:34 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 18 Feb 2008 23:20:34 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <47B9CAF6.1090307@...1863...> References: <365879.71694.qm@...1782...> <47B9CAF6.1090307@...1863...> Message-ID: <1203373234.6718.2.camel@...40...> Salut, I think you should create you own account (Ctrl+C) The generated account has no PW. -- Amicalment Charlie Am Montag, den 18.02.2008, 19:14 +0100 schrieb Zano: > David Villalobos Cambronero ha scritto il 02/18/2008 06:25 PM: > > So estrange can you send a copy of the project? > > > It's the example you find in > /gambas2/examples/Database/Database/Fmain.class in the original package. > > What I've noticed is that it doesn't care of psw, username. It signals > error with "mysql" and "localhost" > From info at ...1863... Mon Feb 18 23:46:18 2008 From: info at ...1863... (Zano) Date: Mon, 18 Feb 2008 23:46:18 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <1203373234.6718.2.camel@...40...> References: <365879.71694.qm@...1782...> <47B9CAF6.1090307@...1863...> <1203373234.6718.2.camel@...40...> Message-ID: <47BA0ABA.8090708@...1863...> Charlie Reinl ha scritto il 02/18/2008 11:20 PM: > Salut, > > I think you should create you own account (Ctrl+C) > The generated account has no PW. > I'm not sure to have understood what you mean From rterry at ...1822... Tue Feb 19 01:10:21 2008 From: rterry at ...1822... (richard terry) Date: Tue, 19 Feb 2008 11:10:21 +1100 Subject: [Gambas-user] How to insert names with apostrophe in postgres via gambas Message-ID: <200802191110.21300.rterry@...1822...> eg Peter's if one passes the name to an sql in code it ends up looking like: insert into whatevertable (name) values('Peter's'); and bombs. Any suggestions appreciated. Richard From rterry at ...1822... Tue Feb 19 01:11:41 2008 From: rterry at ...1822... (richard terry) Date: Tue, 19 Feb 2008 11:11:41 +1100 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas Message-ID: <200802191111.41722.rterry@...1822...> eg Peter's if one passes the name to an sql in code it ends up looking like: insert into whatevertable (name) values('Peter's'); and bombs. Any suggestions appreciated. Richard From ariefbayu at ...626... Tue Feb 19 03:47:49 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 19 Feb 2008 09:47:49 +0700 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas In-Reply-To: <200802191111.41722.rterry@...1822...> References: <200802191111.41722.rterry@...1822...> Message-ID: <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> On Feb 19, 2008 7:11 AM, richard terry wrote: > eg Peter's > > if one passes the name to an sql in code it ends up looking like: > > insert into whatevertable (name) values('Peter's'); Taken from this archive[1], you can use : 'foo''s bar' 'foo\'s bar' $$foo's bar$$ [1]http://archives.postgresql.org/pgsql-general/2005-11/msg01288.php -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From ariefbayu at ...626... Tue Feb 19 03:51:05 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 19 Feb 2008 09:51:05 +0700 Subject: [Gambas-user] Bug in Form position? In-Reply-To: <200802182303.37616.gambas@...1...> References: <15549064.post@...1379...> <200802182303.37616.gambas@...1...> Message-ID: <976ad9050802181851h2fff58fekc48a688332cf03c7@...627...> On Feb 19, 2008 5:03 AM, Benoit Minisini wrote: > The Form/Window X and Y properties have been fixed in the 1078 revision. Ah, thank you. I though my code is buggy. I'll test it. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From sylvain.marleau at ...647... Tue Feb 19 03:55:20 2008 From: sylvain.marleau at ...647... (2020) Date: Mon, 18 Feb 2008 18:55:20 -0800 (PST) Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <200802112209.31484.gambas@...1...> References: <15372045.post@...1379...> <200802112209.31484.gambas@...1...> Message-ID: <15550851.post@...1379...> Benoit Minisini wrote: > > On samedi 9 f?vrier 2008, 2020 wrote: >> Hello folk, >> >> I am trying to migrate a VB6 project to Gambas 2.0. >> >> My VB6 project require ftd2xx.dll, but in xubuntu 7.10 I will used >> ftdi_sio >> driver (FTDI USB Serial Device converter). >> >> All I want to do is to call FTDI functions from Gambas 2.0 project. >> >> Snippet code from my VB6 project; >> Private Declare Function FT_Open Lib "FTD2XX.DLL" (ByVal intDeviceNumber >> As > Integer, ByRef lngHandle As Long) As Long >> >> Any ideas, thanks in advance. >> >> Sylvain. > > You must tell me the prototype of the function in C to be sure. So the > following *may* work: > > It is a bit complicated in Gambas 2, because VarPtr() exists only in > Gambas 3. > > --8<--------------------------- > > PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) > AS > Integer > > ... > > DIM plngHandle AS Pointer = Alloc(8) > DIM lngHandle AS Integer > DIM iRet AS Integer > > iRet = FT_Open(..., plngHandle) > READ #plngHandle, lngHandle > > --8<--------------------------- > > Tell me if it works. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Bonjour Benoit, Q1: What do you mean by "prototype of the function in C" in your first statement. Test1; The open device function works fine, but the close device function failed ... return code 1 (invalid handle). For more details ---> http://www.nabble.com/file/p15550851/test1%2Bopen%2Bdmx%2Busb.png http://www.nabble.com/file/p15550851/test1%2Bopen%2Bdmx%2Busb.txt test1+open+dmx+usb.txt Thanks in advance, Sylvain. -- View this message in context: http://www.nabble.com/Migrate-VB6-project-to-Gambas--2.0---tp15372045p15550851.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Tue Feb 19 05:07:10 2008 From: nando_f at ...951... (nando) Date: Mon, 18 Feb 2008 23:07:10 -0500 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas In-Reply-To: <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> References: <200802191111.41722.rterry@...1822...> <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> Message-ID: <20080219040457.M41022@...951...> I made a string function what escapes the following four characters: " ' ` \ the returned string is used for each string item in INSERT or UPDATE. ..it saved a lot of headaches -Fernando ---------- Original Message ----------- From: "Arief Bayu Purwanto" To: rterry at ...1823..., "mailing list for gambas users" Sent: Tue, 19 Feb 2008 09:47:49 +0700 Subject: Re: [Gambas-user] putting name with apostrophe into postgres via gambas > On Feb 19, 2008 7:11 AM, richard terry wrote: > > > eg Peter's > > > > if one passes the name to an sql in code it ends up looking like: > > > > insert into whatevertable (name) values('Peter's'); > > Taken from this archive[1], you can use : > > 'foo''s bar' > 'foo\'s bar' > $$foo's bar$$ > > [1]http://archives.postgresql.org/pgsql-general/2005-11/msg01288.php > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Tue Feb 19 06:15:17 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 19 Feb 2008 06:15:17 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <47BA0ABA.8090708@...1863...> References: <365879.71694.qm@...1782...> <1203373234.6718.2.camel@...40...> <47BA0ABA.8090708@...1863...> Message-ID: <200802190615.17356.ronstk@...239...> On Monday 18 February 2008 23:46, Zano wrote: > Charlie Reinl ha scritto il 02/18/2008 11:20 PM: > > Salut, > > > > I think you should create you own account (Ctrl+C) > > The generated account has no PW. > > > I'm not sure to have understood what you mean > You should use a mysql admin program, like phpadmin or mysqladmin and add a user 'Zano' with or without password to the mysql server. You must do it as mysql root user here.!!! >============================================= >bash-3.2# mysql >Welcome to the MySQL monitor. ?Commands end with ; or \g. >Your MySQL connection id is 118 >Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 > >Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > >mysql> show databases; >+--------------------+ >| Database ? ? ? ? ? | >+--------------------+ >| information_schema | >| mysql ? ? ? ? ? ? ?| >| test ? ? ? ? ? ? ? | >| wikidb ? ? ? ? ? ? | >+--------------------+ >4 rows in set (0.00 sec) > >mysql> \q >Bye >bash-3.2# >============================================= If you have done this as root you should do it as ordinary user !!!! After adding a user account it should work. Ron PS In opposite as MS giving everyone the rights and you CAN block in linux you MUST give the rights and everyone IS blocked default. From ronstk at ...239... Tue Feb 19 06:25:30 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 19 Feb 2008 06:25:30 +0100 Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <15550851.post@...1379...> References: <15372045.post@...1379...> <200802112209.31484.gambas@...1...> <15550851.post@...1379...> Message-ID: <200802190625.30257.ronstk@...239...> On Tuesday 19 February 2008 03:55, 2020 wrote: > > Benoit Minisini wrote: > > > > On samedi 9 f?vrier 2008, 2020 wrote: > >> Hello folk, > >> > >> I am trying to migrate a VB6 project to Gambas 2.0. > >> > >> My VB6 project require ftd2xx.dll, but in xubuntu 7.10 I will used > >> ftdi_sio > >> driver (FTDI USB Serial Device converter). > >> > >> All I want to do is to call FTDI functions from Gambas 2.0 project. > >> > >> Snippet code from my VB6 project; > >> Private Declare Function FT_Open Lib "FTD2XX.DLL" (ByVal intDeviceNumber > >> As > > Integer, ByRef lngHandle As Long) As Long > >> > >> Any ideas, thanks in advance. > >> > >> Sylvain. > > > > You must tell me the prototype of the function in C to be sure. So the > > following *may* work: > > > > It is a bit complicated in Gambas 2, because VarPtr() exists only in > > Gambas 3. > > > > --8<--------------------------- > > > > PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) > > AS > > Integer > > > > ... > > > > DIM plngHandle AS Pointer = Alloc(8) > > DIM lngHandle AS Integer > > DIM iRet AS Integer > > > > iRet = FT_Open(..., plngHandle) > > READ #plngHandle, lngHandle > > > > --8<--------------------------- > > > > Tell me if it works. > > > > Regards, > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Bonjour Benoit, > > Q1: What do you mean by "prototype of the function in C" in your first > statement. > > Test1; > > The open device function works fine, but the close device function failed > ... return code 1 (invalid handle). > > For more details ---> > http://www.nabble.com/file/p15550851/test1%2Bopen%2Bdmx%2Busb.png > http://www.nabble.com/file/p15550851/test1%2Bopen%2Bdmx%2Busb.txt > test1+open+dmx+usb.txt > > Thanks in advance, > Sylvain. > > You did use 'DIM plngHandle AS Pointer' in both sub routines. The function Open does have its own handle and calling the Close function creates his own new one for close and on assign iRet = FT_Open() it is not initialized and a open handle. You should put in the head of your class PRIVATE plngHandle AS Pointer Prefer to do it below the to EXTERN lines in this case. Ron From rterry at ...1822... Tue Feb 19 06:32:44 2008 From: rterry at ...1822... (richard terry) Date: Tue, 19 Feb 2008 16:32:44 +1100 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas In-Reply-To: <20080219040457.M41022@...951...> References: <200802191111.41722.rterry@...1822...> <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> <20080219040457.M41022@...951...> Message-ID: <200802191632.44197.rterry@...1822...> On Tue, 19 Feb 2008 03:07:10 pm nando wrote: > I made a string function what escapes the following four characters: " ' ` > \ the returned string is used for each string item in INSERT or UPDATE. > ..it saved a lot of headaches > -Fernando For my slow to learn mind, I don't suppose you could post your string function to the list/me, so I can read something concrete?. I've many different strings to save, and one can never tell if there could be those characters in them, so perhaps all strings need to be $$string$$ before saving. Seems to a bit tedious , unless of course where they are definately unwanted, they are excluded as the user types. Thanks. Richard > > ---------- Original Message ----------- > From: "Arief Bayu Purwanto" > To: rterry at ...1823..., "mailing list for gambas users" > > Sent: Tue, 19 Feb 2008 09:47:49 +0700 > Subject: Re: [Gambas-user] putting name with apostrophe into postgres via > gambas > > > On Feb 19, 2008 7:11 AM, richard terry wrote: > > > eg Peter's > > > > > > if one passes the name to an sql in code it ends up looking like: > > > > > > insert into whatevertable (name) values('Peter's'); > > > > Taken from this archive[1], you can use : > > > > 'foo''s bar' > > 'foo\'s bar' > > $$foo's bar$$ > > > > [1]http://archives.postgresql.org/pgsql-general/2005-11/msg01288.php > > -- > > Arief Bayu Purwanto > > About : http://about.freelancer.web.id/ > > Blog : http://bayu.freelancer.web.id/ > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ariefbayu at ...626... Tue Feb 19 06:51:31 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 19 Feb 2008 12:51:31 +0700 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas In-Reply-To: <200802191632.44197.rterry@...1822...> References: <200802191111.41722.rterry@...1822...> <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> <20080219040457.M41022@...951...> <200802191632.44197.rterry@...1822...> Message-ID: <976ad9050802182151g1ae4853bi8fc49001bb802a42@...627...> On Feb 19, 2008 12:32 PM, richard terry wrote: > On Tue, 19 Feb 2008 03:07:10 pm nando wrote: > > I made a string function what escapes the following four characters: " ' > ` > > \ the returned string is used for each string item in INSERT or UPDATE. > > ..it saved a lot of headaches > > -Fernando > > For my slow to learn mind, I don't suppose you could post your string > function > to the list/me, so I can read something concrete?. > > I've many different strings to save, and one can never tell if there could > be > those characters in them, so perhaps all strings need to be $$string$$ > before > saving. Seems to a bit tedious , unless of course where they are > definately > unwanted, they are excluded as the user types. My friend, I think you can use postgre's built in function called pg_escape_string[1]. http://pgtclng.projects.postgresql.org/pgtcldocs-20070115/pg-escape-string.html -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Tue Feb 19 07:59:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Feb 2008 07:59:09 +0100 Subject: [Gambas-user] How to insert names with apostrophe in postgres via gambas In-Reply-To: <200802191110.21300.rterry@...1822...> References: <200802191110.21300.rterry@...1822...> Message-ID: <200802190759.09430.gambas@...1...> On mardi 19 f?vrier 2008, richard terry wrote: > eg Peter's > > if one passes the name to an sql in code it ends up looking like: > > insert into whatevertable (name) values('Peter's'); > > and bombs. > > Any suggestions appreciated. > > Richard > You must use the automatic argument quoting of the DB.Exec(), Find(), Edit() and Delete() methods, or directly the DB.Subst() method. Regards, -- Benoit Minisini From maximvonk at ...626... Tue Feb 19 10:01:46 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 19 Feb 2008 01:01:46 -0800 (PST) Subject: [Gambas-user] Bug in Form position? In-Reply-To: <200802182303.37616.gambas@...1...> References: <15549064.post@...1379...> <200802182303.37616.gambas@...1...> Message-ID: <15560478.post@...1379...> Benoit Minisini wrote: > > The Form/Window X and Y properties have been fixed in the 1078 revision. > > Regards, > > -- > Benoit Minisini > Thanks Benoit. -- View this message in context: http://www.nabble.com/Bug-in-Form-position--tp15549064p15560478.html Sent from the gambas-user mailing list archive at Nabble.com. From info at ...1863... Tue Feb 19 11:53:59 2008 From: info at ...1863... (Zano) Date: Tue, 19 Feb 2008 11:53:59 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <200802190615.17356.ronstk@...239...> References: <365879.71694.qm@...1782...> <1203373234.6718.2.camel@...40...> <47BA0ABA.8090708@...1863...> <200802190615.17356.ronstk@...239...> Message-ID: <47BAB547.3050707@...1863...> Ron Onstenk ha scritto il 02/19/2008 06:15 AM: > You should use a mysql admin program, like phpadmin or mysqladmin > and add a user 'Zano' with or without password to the mysql server. > You must do it as mysql root user here.!!! > Sorry, but it doen't work. I've created the user zano with ALL priviledges, I can run it from terminal =================================================================== bash-3.2# mysql -u zano -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | | wikidb | +--------------------+ 4 rows in set (0.00 sec) mysql> =================================================================== but I get error when run from gambas This is the code I use from inside gambas ================================================================== PRIVATE $hConn AS Connection PUBLIC SUB btnConnect_Click() DIM sName AS String TRY $hConn.Close '$hConn = NEW Connection WITH $hConn .Type = "mysql" .Host = "localhost" .Login = "zano" .Password = "mypassword" .Port = "3306" .Name = "" END WITH $hConn.Name = "zano" $hConn.Open ================================================================== While writing this mail, I'm in question. I run the the modified example "database" in gambas package, it shows a form, a click on connect and I get the error. Is it possible there is a problem in the form or something associated with it? From steven at ...1652... Tue Feb 19 16:04:21 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 19 Feb 2008 16:04:21 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> References: <200802141238.18977.gambas@...1...> <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> Message-ID: <1203433461.12188.37.camel@...1816...> Hi, I'm still messing around with gb.report. I try to make a module that takes care of a lot of the internals to print a report (new page : redo header, etc.) For testing I have this in the module : ' 1 Header description PUBLIC HImg AS String ' the image (logo ?) to put in PUBLIC HImgPos AS String ' the position (left, center or right) of the image PUBLIC HImgDes AS Integer[2] ' The Height, Width of the picture PUBLIC Htxt AS String ' the general title of the report PUBLIC {HtxtF} AS NEW Font ' the font of the general title PUBLIC HtxtAlign AS String ' the alignment of the headertext PUBLIC Hsub AS String ' the sub-title of the report PUBLIC {HsubF} AS NEW Font ' the sub-title font ' 2 Footer description PUBLIC FRight AS String ' the right part of the footer PUBLIC FCenter AS String ' the middle part of the footer PUBLIC FLeft AS String ' the left part of the footer ' 3 the titles and other parms of the columns PUBLIC CTits AS String[] ' array of text = titles PUBLIC {CTitsF} AS NEW Font ' the font to use PUBLIC CTitsB AS Color ' the background color PUBLIC CAlign AS String[] ' the alignment (right, left,..) of each column PUBLIC Ctot AS Boolean[] ' the columns have totals (TRUE) or not (FALSE) ' 4 The lines in the report PUBLIC Lin AS String[] ' the array of values ' 5 general parms PUBLIC ULin AS Boolean ' use lines around fields (TRUE, False) PUBLIC Target AS String ' the report to a printer, a pdf or a previewer ' 6 and the internals PrBoxH AS ReportHBox PrBoxV AS ReportVBox PrImg AS ReportImage PrLab AS ReportLabel PUBLIC FUNCTION Init() AS Boolean Report.Clear Report.size = "A4" Report.orientation = report.Portrait Report.Padding = "1 cm" Object.Attach(Report, ME, "Report") Report.Spacing = "0.2 cm" Report.LineStyle = line.Solid Report.Tag = "Report" Report.Font.Name = "Tahoma" RETURN TRUE END PUBLIC SUB DoHdr() ' do the header DIM MyPic AS Picture DIM i AS Integer PrBoxH = NEW ReportHBox(Report) PrBoxH.Height = "3 cm" PrBoxH.Width = "16 cm" PrImg = NEW ReportImage(PrBoxH) PrImg.Path = "./revimmologo.gif" PrImg.Width = "6 cm" PrImg.Height = "3 cm" PrImg.Tag = "Image" PrLab = NEW ReportLabel(PrBoxH) PrLab.Text = "Revimmo - liste du " & Date(Now) PrLab.Alignment = Align.Right PrLab.Font = Font["16"] PrLab.Expand = TRUE PrLab.Tag = "Titre" END 'x Print or draw the report PUBLIC SUB DoIt() DIM i AS Integer INC Application.Busy draw.Begin(Printer) Report.Zoom = 1 Report.Resolution = Printer.Resolution Report.layout FOR i = 1 TO Report.count Report.Draw(i) IF i < Report.count THEN Printer.NewPage NEXT draw.End DEC Application.Busy END Now, the above Report.Layout allways gives the message 'Null Object' since Report.Count is and stays Null, nomather what I write in it.! I checked, and the controles made are there, and attached to the report object. Any ideas ? Thanks, Steven From gambas at ...1... Tue Feb 19 16:08:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Feb 2008 16:08:17 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <47BAB547.3050707@...1863...> References: <365879.71694.qm@...1782...> <200802190615.17356.ronstk@...239...> <47BAB547.3050707@...1863...> Message-ID: <200802191608.17494.gambas@...1...> On mardi 19 f?vrier 2008, Zano wrote: > Ron Onstenk ha scritto il 02/19/2008 06:15 AM: > > You should use a mysql admin program, like phpadmin or mysqladmin > > and add a user 'Zano' with or without password to the mysql server. > > You must do it as mysql root user here.!!! > > Sorry, but it doen't work. > I've created the user zano with ALL priviledges, I can run it from terminal > > =================================================================== > bash-3.2# mysql -u zano -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 5 > Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > mysql> show databases; > +--------------------+ > > | Database | > > +--------------------+ > > | information_schema | > | mysql | > | test | > | wikidb | > > +--------------------+ > 4 rows in set (0.00 sec) > > mysql> > =================================================================== > but I get error when run from gambas > > This is the code I use from inside gambas > ================================================================== > PRIVATE $hConn AS Connection > > PUBLIC SUB btnConnect_Click() > > DIM sName AS String > > TRY $hConn.Close > '$hConn = NEW Connection > WITH $hConn > .Type = "mysql" > .Host = "localhost" > .Login = "zano" > .Password = "mypassword" > .Port = "3306" > .Name = "" > END WITH > > $hConn.Name = "zano" > $hConn.Open > ================================================================== > > While writing this mail, I'm in question. > I run the the modified example "database" in gambas package, it shows a > form, a click on connect and I get the error. > Is it possible there is a problem in the form or something associated > with it? > I think it is a problem in some mysql configuration file, because, to connect to the database, Gambas does nothing more than using the property of the Connection object. I cannot tell you more, except that nobody else have such a problem with the Database example, and I never got it during the development, with many different mysql versions. Regards, -- Benoit Minisini From gambas at ...1... Tue Feb 19 16:08:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Feb 2008 16:08:36 +0100 Subject: [Gambas-user] TextEditor - Linking to an Anchor In-Reply-To: <15518676.post@...1379...> References: <15518676.post@...1379...> Message-ID: <200802191608.37003.gambas@...1...> On samedi 16 f?vrier 2008, MaxVK wrote: > Hi, there. > > I know that with the ReadOnly property set to TRUE I can raise the Link > event in the TextEditor when a link is clicked, but is there any way to > actually navigate to an anchor on the same page? > > Thanks > > Max Yep, the function is missing. I could add it, but only in Gambas 3... -- Benoit Minisini From gambas at ...1... Tue Feb 19 16:09:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Feb 2008 16:09:29 +0100 Subject: [Gambas-user] Bug submission In-Reply-To: <47B6BE4A.9000608@...1237...> References: <47B6BE4A.9000608@...1237...> Message-ID: <200802191609.29208.gambas@...1...> On samedi 16 f?vrier 2008, Leonardo Miliani wrote: > Question.. in Gambas IDE if I select a word from right to left and press > F2 nothing happens on my system.... a friend of mine, instead, gets an > error .. but if I select a word from left to right and press F2 all > works perfectly and help is shown.. is this right? > > It is not easy to reproduce it because you have to select an object with > its property. Example: let assume that you have Message.Info. If you > select all the text ("Message.Info") from right-->left I don't get the > browser opened. But if I select from left-->right the browser opens and > show the doc. > > If the selected objet is related to Qt (example: TextBox1.Text), if I > select from right-->left I get a "page not found" error in my browser. I confirm. Strange bug... I will try to fix it, but I don't know when! -- Benoit Minisini From gambas at ...1... Tue Feb 19 18:35:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Feb 2008 18:35:32 +0100 Subject: [Gambas-user] Focus Events on DataControls In-Reply-To: <688afe140802161053i7f7bd5c9y146aafe300c09060@...627...> References: <688afe140802161053i7f7bd5c9y146aafe300c09060@...627...> Message-ID: <200802191835.32940.gambas@...1...> On samedi 16 f?vrier 2008, Nx GT-R BOY wrote: > Hi everybody, (Hope this wont be junk but.. happy valentine's day) > > Is there a way to know when a DataControls get focused (by keyboard), What > I have tried is: > > PUBLIC SUB DataControl8_GotFocus() > Message.info("Got focus") > END > > PUBLIC SUB DataControl8_KeyPress() > Message.Info("Key press") > END > > PUBLIC SUB DataControl8_MouseDown() > Message.Info("Mouse down") > END > > But nothing happens, the only way I knew that was focused was by the > "Enter" event, I think thats wrong, since "Enter" sound more like "hit > enter by keyboard", and the actual behavior is "action when focused by > mouse (only)" > > What I want to do is an automatic process, something like, get number one, > then get number two, and automatically give the sum, without the user needs > to push a button or something (I am working with Datacontrols, since all > the data must be saved) > > I wanted Focused since most user like to use TAB button to move in each > field, so when the result field got focused, the sum would be calculated > automatically (thats in some way automatic, in some way not, but thats a > good (and fast for the user) option) > > Thanks in advance. I found a workaround, so that DataControl will raise the Control events, but it is far from perfect: the events are raised by the true widget, and not the DataControl itself, so the LAST keyword is not meaningful inside the event handler. But this is better than nothing... You will get in the next subversion commit. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Tue Feb 19 19:09:45 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 19 Feb 2008 19:09:45 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <47BAB547.3050707@...1863...> References: <365879.71694.qm@...1782...> <1203373234.6718.2.camel@...40...> <47BA0ABA.8090708@...1863...> <200802190615.17356.ronstk@...239...> <47BAB547.3050707@...1863...> Message-ID: <1203444586.6287.6.camel@...40...> Am Dienstag, den 19.02.2008, 11:53 +0100 schrieb Zano: > Ron Onstenk ha scritto il 02/19/2008 06:15 AM: > > > You should use a mysql admin program, like phpadmin or mysqladmin > > and add a user 'Zano' with or without password to the mysql server. > > You must do it as mysql root user here.!!! > > > Sorry, but it doen't work. > I've created the user zano with ALL priviledges, I can run it from terminal > > =================================================================== > bash-3.2# mysql -u zano -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 5 > Server version: 5.0.51-log Frugalware Linux - mysql-5.0.51 > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > mysql> show databases; > +--------------------+ > | Database | > +--------------------+ > | information_schema | > | mysql | > | test | > | wikidb | > +--------------------+ > 4 rows in set (0.00 sec) > > mysql> > =================================================================== > but I get error when run from gambas > > This is the code I use from inside gambas > ================================================================== > PRIVATE $hConn AS Connection > > PUBLIC SUB btnConnect_Click() > > DIM sName AS String > > TRY $hConn.Close > '$hConn = NEW Connection > WITH $hConn > .Type = "mysql" > .Host = "localhost" > .Login = "zano" > .Password = "mypassword" > .Port = "3306" > .Name = "" > END WITH > > $hConn.Name = "zano" > $hConn.Open > ================================================================== > > While writing this mail, I'm in question. > I run the the modified example "database" in gambas package, it shows a > form, a click on connect and I get the error. > Is it possible there is a problem in the form or something associated > with it? Salut, start gambas2 in the shell, run the example with F8 ,step by step and/or look at the shrine how to debug an Application http://gambas.sourceforge.net/ Reporting A Problem -- Amicalment Charlie From maximvonk at ...626... Tue Feb 19 20:58:36 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 19 Feb 2008 11:58:36 -0800 (PST) Subject: [Gambas-user] Bug in Form position? In-Reply-To: <200802182303.37616.gambas@...1...> References: <15549064.post@...1379...> <200802182303.37616.gambas@...1...> Message-ID: <15562523.post@...1379...> Thanks Benoit, I thought it might have been me! Mike: Moving the form makes no difference at all. The values are still recorded as zero. Perhaps a difference in version? -- View this message in context: http://www.nabble.com/Bug-in-Form-position--tp15549064p15562523.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Tue Feb 19 21:05:23 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 19 Feb 2008 12:05:23 -0800 (PST) Subject: [Gambas-user] Listitem text as tootip In-Reply-To: <1201979510.5713.26.camel@...1835...> References: <15234877.post@...1379...> <200802021745.25004.rospolosco@...152...> <1201979510.5713.26.camel@...1835...> Message-ID: <15562624.post@...1379...> Thanks Che, but that requires me to click on the list before the tooltip works. I wanted to be able to pick up the mouse position (Maybe) and do what you have done, but without needed the click. Regards Max Che-5 wrote: > > Not sure if this is what you are looking for but... it worked on my > GB2... > > PUBLIC SUB ListBox1_MouseMove() > > listbox1.tooltip = listbox1.Text > > END > > Clicking on an item to highlight it changed the tooltip to whatever was > selected in the listbox... > > Mark > > > On Sat, 2008-02-02 at 17:45 +0100, Stefano Palmeri wrote: >> Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto: >> > Hi there. >> > >> > (Many) years ago as a VB developer I used code that converted the text >> of >> > the listbox item under the mouse into the tooltip for the listbox >> itself, >> > making it easier to read items that are too long for the width of the >> > listbox. I know that Gambas lists can scroll horizontally, allowing you >> to >> > view those items, but Id still like to implement the tooltip as well. >> > >> > Is there any way to do this in Gambas2 (2.0.0) >> > >> > Thanks >> > >> > Max >> >> I don't think you can do it with listbox (unless you make >> some magic with mouse position). But I'm not sure. >> >> Use the ListView control instead, which automagically does >> what you're asking. Example attached. >> >> Stefano >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Listitem-text-as-tootip-tp15234877p15562624.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Wed Feb 20 00:51:33 2008 From: nando_f at ...951... (nando) Date: Tue, 19 Feb 2008 18:51:33 -0500 Subject: [Gambas-user] putting name with apostrophe into postgres via gambas In-Reply-To: <976ad9050802182151g1ae4853bi8fc49001bb802a42@...627...> References: <200802191111.41722.rterry@...1822...> <976ad9050802181847g5962c67ar1a0674a1ffe4a7f2@...627...> <20080219040457.M41022@...951...> <200802191632.44197.rterry@...1822...> <976ad9050802182151g1ae4853bi8fc49001bb802a42@...627...> Message-ID: <20080219234246.M15409@...951...> Yes, you can use the built-in functions that will do it. I personally don't like to use them because I'd rather have the client perform the work as opposed to the server...this would be a personal preference. I like to have the server available for Selects, Inserts, Updates and leave it alone for this type of work. Besides, this is faster because the data doesn't have to go somewhere else. This is used on Gambas1, I use 1.0.6 and 1.0.17. It works. -Fernando PUBLIC FUNCTION GoodSQL (SQLinput AS String) AS String 'escape Apostrophe, Quote, backtick, backslash for SQL INSERT and UPDATE DIM SQLoutput AS String DIM i AS Integer DIM a AS String IF Len(SQLinput) > 0 THEN FOR i = 1 TO Len(SQLinput) a = Mid$(SQLinput,i,1) IF a=Chr$(34) OR a="`" OR a="'" OR a=Chr$(92) THEN a = Chr$(92) & a SQLoutput = SQLoutput & a NEXT ENDIF RETURN SQLoutput END ---------- Original Message ----------- From: "Arief Bayu Purwanto" To: rterry at ...1823..., "mailing list for gambas users" Sent: Tue, 19 Feb 2008 12:51:31 +0700 Subject: Re: [Gambas-user] putting name with apostrophe into postgres via gambas > On Feb 19, 2008 12:32 PM, richard terry wrote: > > > On Tue, 19 Feb 2008 03:07:10 pm nando wrote: > > > I made a string function what escapes the following four characters: " ' > > ` > > > \ the returned string is used for each string item in INSERT or UPDATE. > > > ..it saved a lot of headaches > > > -Fernando > > > > For my slow to learn mind, I don't suppose you could post your string > > function > > to the list/me, so I can read something concrete?. > > > > I've many different strings to save, and one can never tell if there could > > be > > those characters in them, so perhaps all strings need to be $$string$$ > > before > > saving. Seems to a bit tedious , unless of course where they are > > definately > > unwanted, they are excluded as the user types. > > My friend, I think you can use postgre's built in function called > pg_escape_string[1]. > > http://pgtclng.projects.postgresql.org/pgtcldocs-20070115/pg-escape-string.html > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From Mike at ...680... Wed Feb 20 12:44:47 2008 From: Mike at ...680... (Mike Keehan) Date: Wed, 20 Feb 2008 11:44:47 +0000 Subject: [Gambas-user] Bug in Form position? In-Reply-To: <15562523.post@...1379...> References: <15549064.post@...1379...> <200802182303.37616.gambas@...1...> <15562523.post@...1379...> Message-ID: <47BC12AF.5020403@...680...> Since I found that I needed to test for 0.0 in early Gambas 1 versions, I have used it ever since, and I still use it Gambas 2. I'm not running the svn versions though. MaxVK wrote: > Thanks Benoit, I thought it might have been me! > > Mike: Moving the form makes no difference at all. The values are still > recorded as zero. Perhaps a difference in version? From gambas.fr at ...626... Wed Feb 20 14:00:04 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 20 Feb 2008 14:00:04 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <1203433461.12188.37.camel@...1816...> References: <200802141238.18977.gambas@...1...> <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> <1203433461.12188.37.camel@...1816...> Message-ID: <6324a42a0802200500s3047ff44l32609b946f6650a1@...627...> will see about that this evening, but the correction will be available only in the trunk first. Fabien 2008/2/19, Steven Lobbezoo : > > Hi, > > I'm still messing around with gb.report. > I try to make a module that takes care of a lot of the internals to > print a report (new page : redo header, etc.) > For testing I have this in the module : > > ' 1 Header description > PUBLIC HImg AS String ' the image (logo ?) to put in > PUBLIC HImgPos AS String ' the position (left, center or right) of the > image > PUBLIC HImgDes AS Integer[2] ' The Height, Width of the picture > PUBLIC Htxt AS String ' the general title of the report > PUBLIC {HtxtF} AS NEW Font ' the font of the general title > PUBLIC HtxtAlign AS String ' the alignment of the headertext > PUBLIC Hsub AS String ' the sub-title of the report > PUBLIC {HsubF} AS NEW Font ' the sub-title font > > ' 2 Footer description > PUBLIC FRight AS String ' the right part of the footer > PUBLIC FCenter AS String ' the middle part of the footer > PUBLIC FLeft AS String ' the left part of the footer > > ' 3 the titles and other parms of the columns > PUBLIC CTits AS String[] ' array of text = titles > PUBLIC {CTitsF} AS NEW Font ' the font to use > PUBLIC CTitsB AS Color ' the background color > PUBLIC CAlign AS String[] ' the alignment (right, left,..) of each > column > PUBLIC Ctot AS Boolean[] ' the columns have totals (TRUE) or not > (FALSE) > > ' 4 The lines in the report > PUBLIC Lin AS String[] ' the array of values > > ' 5 general parms > PUBLIC ULin AS Boolean ' use lines around fields (TRUE, False) > PUBLIC Target AS String ' the report to a printer, a pdf or a previewer > > ' 6 and the internals > PrBoxH AS ReportHBox > PrBoxV AS ReportVBox > PrImg AS ReportImage > PrLab AS ReportLabel > > > > > PUBLIC FUNCTION Init() AS Boolean > Report.Clear > Report.size = "A4" > Report.orientation = report.Portrait > Report.Padding = "1 cm" > Object.Attach(Report, ME, "Report") > Report.Spacing = "0.2 cm" > Report.LineStyle = line.Solid > Report.Tag = "Report" > Report.Font.Name = "Tahoma" > RETURN TRUE > END > > PUBLIC SUB DoHdr() ' do the header > DIM MyPic AS Picture > DIM i AS Integer > > > PrBoxH = NEW ReportHBox(Report) > PrBoxH.Height = "3 cm" > PrBoxH.Width = "16 cm" > PrImg = NEW ReportImage(PrBoxH) > PrImg.Path = "./revimmologo.gif" > PrImg.Width = "6 cm" > PrImg.Height = "3 cm" > PrImg.Tag = "Image" > PrLab = NEW ReportLabel(PrBoxH) > PrLab.Text = "Revimmo - liste du " & Date(Now) > PrLab.Alignment = Align.Right > PrLab.Font = Font["16"] > PrLab.Expand = TRUE > PrLab.Tag = "Titre" > > END > > 'x Print or draw the report > PUBLIC SUB DoIt() > DIM i AS Integer > > INC Application.Busy > draw.Begin(Printer) > Report.Zoom = 1 > Report.Resolution = Printer.Resolution > Report.layout > > FOR i = 1 TO Report.count > Report.Draw(i) > IF i < Report.count THEN Printer.NewPage > NEXT > draw.End > DEC Application.Busy > > END > > Now, the above Report.Layout allways gives the message 'Null Object' > since Report.Count is and stays Null, nomather what I write in it.! > I checked, and the controles made are there, and attached to the report > object. > > Any ideas ? > Thanks, > Steven > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Feb 20 14:01:31 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 20 Feb 2008 14:01:31 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <6324a42a0802200500s3047ff44l32609b946f6650a1@...627...> References: <200802141238.18977.gambas@...1...> <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> <1203433461.12188.37.camel@...1816...> <6324a42a0802200500s3047ff44l32609b946f6650a1@...627...> Message-ID: <6324a42a0802200501r59102843jdb60a9f18c27bd57@...627...> can you send me project archive with your code ? it will be more simple for me ! 2008/2/20, Fabien Bodard : > > will see about that this evening, > > but the correction will be available only in the trunk first. > > > Fabien > > 2008/2/19, Steven Lobbezoo : > > > > Hi, > > > > I'm still messing around with gb.report. > > I try to make a module that takes care of a lot of the internals to > > print a report (new page : redo header, etc.) > > For testing I have this in the module : > > > > ' 1 Header description > > PUBLIC HImg AS String ' the image (logo ?) to put in > > PUBLIC HImgPos AS String ' the position (left, center or right) of the > > image > > PUBLIC HImgDes AS Integer[2] ' The Height, Width of the picture > > PUBLIC Htxt AS String ' the general title of the report > > PUBLIC {HtxtF} AS NEW Font ' the font of the general title > > PUBLIC HtxtAlign AS String ' the alignment of the headertext > > PUBLIC Hsub AS String ' the sub-title of the report > > PUBLIC {HsubF} AS NEW Font ' the sub-title font > > > > ' 2 Footer description > > PUBLIC FRight AS String ' the right part of the footer > > PUBLIC FCenter AS String ' the middle part of the footer > > PUBLIC FLeft AS String ' the left part of the footer > > > > ' 3 the titles and other parms of the columns > > PUBLIC CTits AS String[] ' array of text = titles > > PUBLIC {CTitsF} AS NEW Font ' the font to use > > PUBLIC CTitsB AS Color ' the background color > > PUBLIC CAlign AS String[] ' the alignment (right, left,..) of each > > column > > PUBLIC Ctot AS Boolean[] ' the columns have totals (TRUE) or not > > (FALSE) > > > > ' 4 The lines in the report > > PUBLIC Lin AS String[] ' the array of values > > > > ' 5 general parms > > PUBLIC ULin AS Boolean ' use lines around fields (TRUE, False) > > PUBLIC Target AS String ' the report to a printer, a pdf or a previewer > > > > ' 6 and the internals > > PrBoxH AS ReportHBox > > PrBoxV AS ReportVBox > > PrImg AS ReportImage > > PrLab AS ReportLabel > > > > > > > > > > PUBLIC FUNCTION Init() AS Boolean > > Report.Clear > > Report.size = "A4" > > Report.orientation = report.Portrait > > Report.Padding = "1 cm" > > Object.Attach(Report, ME, "Report") > > Report.Spacing = "0.2 cm" > > Report.LineStyle = line.Solid > > Report.Tag = "Report" > > Report.Font.Name = "Tahoma" > > RETURN TRUE > > END > > > > PUBLIC SUB DoHdr() ' do the header > > DIM MyPic AS Picture > > DIM i AS Integer > > > > > > PrBoxH = NEW ReportHBox(Report) > > PrBoxH.Height = "3 cm" > > PrBoxH.Width = "16 cm" > > PrImg = NEW ReportImage(PrBoxH) > > PrImg.Path = "./revimmologo.gif" > > PrImg.Width = "6 cm" > > PrImg.Height = "3 cm" > > PrImg.Tag = "Image" > > PrLab = NEW ReportLabel(PrBoxH) > > PrLab.Text = "Revimmo - liste du " & Date(Now) > > PrLab.Alignment = Align.Right > > PrLab.Font = Font["16"] > > PrLab.Expand = TRUE > > PrLab.Tag = "Titre" > > > > END > > > > 'x Print or draw the report > > PUBLIC SUB DoIt() > > DIM i AS Integer > > > > INC Application.Busy > > draw.Begin(Printer) > > Report.Zoom = 1 > > Report.Resolution = Printer.Resolution > > Report.layout > > > > FOR i = 1 TO Report.count > > Report.Draw(i) > > IF i < Report.count THEN Printer.NewPage > > NEXT > > draw.End > > DEC Application.Busy > > > > END > > > > Now, the above Report.Layout allways gives the message 'Null Object' > > since Report.Count is and stays Null, nomather what I write in it.! > > I checked, and the controles made are there, and attached to the report > > object. > > > > Any ideas ? > > Thanks, > > Steven > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From steven at ...1652... Wed Feb 20 15:12:53 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 20 Feb 2008 15:12:53 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <6324a42a0802200501r59102843jdb60a9f18c27bd57@...627...> References: <200802141238.18977.gambas@...1...> <6324a42a0802141535h3af607ddi9ae82f3e2c6ac68d@...627...> <1203433461.12188.37.camel@...1816...> <6324a42a0802200500s3047ff44l32609b946f6650a1@...627...> <6324a42a0802200501r59102843jdb60a9f18c27bd57@...627...> Message-ID: <1203516773.6580.72.camel@...1816...> Sure, you find the module attached. In the mean time I found out that it has to do with images. As soon as I make a failure in the images (f.i. a wrong filename to load), the report.count is set tu NULL (invalid). No other error message. What i'm trying to do, is to write a bit of a standard interface to have all reports I need produced easyer. Steven Le mercredi 20 f?vrier 2008 ? 14:01 +0100, Fabien Bodard a ?crit : > can you send me project archive with your code ? > > it will be more simple for me ! > > > > 2008/2/20, Fabien Bodard : > > > > will see about that this evening, > > > > but the correction will be available only in the trunk first. > > > > > > Fabien > > > > 2008/2/19, Steven Lobbezoo : > > > > > > Hi, > > > > > > I'm still messing around with gb.report. > > > I try to make a module that takes care of a lot of the internals to > > > print a report (new page : redo header, etc.) > > > For testing I have this in the module : > > > > > > ' 1 Header description > > > PUBLIC HImg AS String ' the image (logo ?) to put in > > > PUBLIC HImgPos AS String ' the position (left, center or right) of the > > > image > > > PUBLIC HImgDes AS Integer[2] ' The Height, Width of the picture > > > PUBLIC Htxt AS String ' the general title of the report > > > PUBLIC {HtxtF} AS NEW Font ' the font of the general title > > > PUBLIC HtxtAlign AS String ' the alignment of the headertext > > > PUBLIC Hsub AS String ' the sub-title of the report > > > PUBLIC {HsubF} AS NEW Font ' the sub-title font > > > > > > ' 2 Footer description > > > PUBLIC FRight AS String ' the right part of the footer > > > PUBLIC FCenter AS String ' the middle part of the footer > > > PUBLIC FLeft AS String ' the left part of the footer > > > > > > ' 3 the titles and other parms of the columns > > > PUBLIC CTits AS String[] ' array of text = titles > > > PUBLIC {CTitsF} AS NEW Font ' the font to use > > > PUBLIC CTitsB AS Color ' the background color > > > PUBLIC CAlign AS String[] ' the alignment (right, left,..) of each > > > column > > > PUBLIC Ctot AS Boolean[] ' the columns have totals (TRUE) or not > > > (FALSE) > > > > > > ' 4 The lines in the report > > > PUBLIC Lin AS String[] ' the array of values > > > > > > ' 5 general parms > > > PUBLIC ULin AS Boolean ' use lines around fields (TRUE, False) > > > PUBLIC Target AS String ' the report to a printer, a pdf or a previewer > > > > > > ' 6 and the internals > > > PrBoxH AS ReportHBox > > > PrBoxV AS ReportVBox > > > PrImg AS ReportImage > > > PrLab AS ReportLabel > > > > > > > > > > > > > > > PUBLIC FUNCTION Init() AS Boolean > > > Report.Clear > > > Report.size = "A4" > > > Report.orientation = report.Portrait > > > Report.Padding = "1 cm" > > > Object.Attach(Report, ME, "Report") > > > Report.Spacing = "0.2 cm" > > > Report.LineStyle = line.Solid > > > Report.Tag = "Report" > > > Report.Font.Name = "Tahoma" > > > RETURN TRUE > > > END > > > > > > PUBLIC SUB DoHdr() ' do the header > > > DIM MyPic AS Picture > > > DIM i AS Integer > > > > > > > > > PrBoxH = NEW ReportHBox(Report) > > > PrBoxH.Height = "3 cm" > > > PrBoxH.Width = "16 cm" > > > PrImg = NEW ReportImage(PrBoxH) > > > PrImg.Path = "./revimmologo.gif" > > > PrImg.Width = "6 cm" > > > PrImg.Height = "3 cm" > > > PrImg.Tag = "Image" > > > PrLab = NEW ReportLabel(PrBoxH) > > > PrLab.Text = "Revimmo - liste du " & Date(Now) > > > PrLab.Alignment = Align.Right > > > PrLab.Font = Font["16"] > > > PrLab.Expand = TRUE > > > PrLab.Tag = "Titre" > > > > > > END > > > > > > 'x Print or draw the report > > > PUBLIC SUB DoIt() > > > DIM i AS Integer > > > > > > INC Application.Busy > > > draw.Begin(Printer) > > > Report.Zoom = 1 > > > Report.Resolution = Printer.Resolution > > > Report.layout > > > > > > FOR i = 1 TO Report.count > > > Report.Draw(i) > > > IF i < Report.count THEN Printer.NewPage > > > NEXT > > > draw.End > > > DEC Application.Busy > > > > > > END > > > > > > Now, the above Report.Layout allways gives the message 'Null Object' > > > since Report.Count is and stays Null, nomather what I write in it.! > > > I checked, and the controles made are there, and attached to the report > > > object. > > > > > > Any ideas ? > > > Thanks, > > > Steven > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- ' Gambas module file ' this is the standard printroutine, replace from volmac ' it translates the page, line and field images, takes some general parms, like font and so on ' it users the gb.report to print it (to screen or to printer) ' ' so you fill some general parms and then you can fill the header and footer descriptions ' the routine will call them internally whenever nessesary ' 1 Header description PUBLIC HImg AS String ' the image (logo ?) to put in PUBLIC HImgPos AS String ' the position (left, center or right) of the image PUBLIC HImgDes AS Integer[2] ' The Height, Width of the picture PUBLIC Htxt AS String ' the general title of the report PUBLIC {HtxtF} AS NEW Font ' the font of the general title PUBLIC HtxtAlign AS Integer ' the alignment of the headertext PUBLIC Hsub AS String ' the sub-title of the report PUBLIC {HsubF} AS NEW Font ' the sub-title font ' 2 Footer description PUBLIC FRight AS String ' the right part of the footer PUBLIC FCenter AS String ' the middle part of the footer PUBLIC FLeft AS String ' the left part of the footer ' 3 the titles and other parms of the columns PUBLIC CTits AS String[] ' array of text = titles PUBLIC CWiths AS Integer[] ' the column widths PUBLIC {CTitsF} AS NEW Font ' the font to use PUBLIC CTitsB AS Integer ' the background color PUBLIC CAlign AS Integer[] ' the alignment (right, left,..) of each column PUBLIC Ctot AS String[] ' the columns have totals any valid sql expression or blank (Count, Total, Ave, ...) PUBLIC CFcolor AS Integer[] ' the forground color of a column ' 4 The lines in the report PUBLIC Lin AS String[] ' the array of values ' 5 general parms PUBLIC ULin AS Boolean ' use lines around fields (TRUE, False) PUBLIC Target AS String ' the report to a printer, a pdf or a previewer ' 6 and the internals PrBoxH AS ReportHBox PrBoxV AS ReportVBox PrImg AS ReportImage PrLab AS ReportLabel PrField AS ReportField LiPP AS Integer = 20 ' lines per page ' and now for the real work '1 Initiate the report PUBLIC FUNCTION Init() AS Boolean Report.Clear Report.size = "A4" Report.orientation = report.Portrait 'Report.Units = Units.cm Report.Padding = "1 cm" Object.Attach(Report, ME, "Report") Report.Spacing = "0.5 cm" Report.LineStyle = line.Solid Report.Tag = "Report" Report.Resolution = Printer.Resolution Report.Zoom = 1 Report.Layout Report.Font.Name = "Tahoma" RETURN TRUE END PUBLIC SUB DoHdr() ' do the first header PrBoxH = NEW ReportHBox(Report) PrBoxH.Height = "3 cm" PrBoxH.Width = "16 cm" PrImg = NEW ReportImage(PrBoxH) PrImg.Path = HImg PrImg.Width = "6 cm" PrImg.Height = "3 cm" PrLab = NEW ReportLabel(PrBoxH) PrLab.Text = Htxt PrLab.Alignment = HtxtAlign PrLab.Font = HtxtF PrLab.Expand = TRUE 'for testing only ! DoSHdr() END PUBLIC SUB DoLines(Res AS Result) ' we write all lines from the resultset (sequence fields = col. sequence !) DIM Clin AS Integer ' the current line DIM Cfld AS Integer ' the field in the line DIM hRF AS ResultField DIM Lef, i AS Integer DIM tmp AS String FOR EACH Res PrBoxH = NEW ReportHBox(Report) PrBoxH.Height = "0.6 cm" PrBoxH.Width = "18 cm" FOR EACH hRF IN Res.Fields IF Cfld > CTits.Count - 1 THEN BREAK PrField = NEW ReportField(PrBoxH) tmp = hRF.Name ' i = InStr(tmp, ".") ' IF i > 0 THEN ' tmp = Mid(tmp, i + 1) ' END IF ' we removed any points in the field name TRY tmp = Res[tmp] IF tmp THEN PrField.Data = " " & tmp & " " PrField.Font = CTitsF PrField.Width = Str(CWiths[Cfld]) & " cm" PrField.Left = Str(Lef + 1) & " cm" PrField.LineStyle = Line.Solid PrField.Alignment = CAlign[Cfld] IF CFcolor THEN IF CFcolor[Cfld] <> 0 THEN PrLab.Forecolor = CFcolor[Cfld] END IF Lef = Lef + CWiths[Cfld] + 1 Cfld = Cfld + 1 NEXT Clin = Clin + 1 Cfld = 0 IF Clin > LiPP THEN ' move to a new page DoSHdr END IF NEXT END PRIVATE SUB DoSHdr() ' do the page header DIM i AS Integer DIM Lef AS Integer PrBoxH = NEW ReportHBox(Report) PrBoxH.Height = "0.6 cm" PrBoxH.Width = "18 cm" PrLab = NEW ReportLabel(PrBoxH) PrLab.Text = Hsub PrLab.Font = HsubF ' and now the cols header : PrBoxH = NEW ReportHBox(Report) PrBoxH.Height = "0.6 cm" PrBoxH.Width = "18 cm" ' we do each field as per Ctits FOR i = 0 TO Ctits.Count - 1 PrLab = NEW ReportLabel(PrBoxH) PrLab.Text = " " & Ctits[i] & " " PrLab.Font = CTitsF PrLab.Width = Str(CWiths[i]) & " cm" PrLab.Left = Str(Lef + 1) & " cm" PrLab.LineStyle = Line.Solid PrLab.FillColor = Color.LightGray PrLab.FillStyle = Fill.Solid PrLab.Alignment = CAlign[i] IF CFcolor THEN IF CFcolor[i] <> 0 THEN PrLab.Forecolor = CFcolor[i] END IF Lef = Lef + CWiths[i] + 1 NEXT END 'x Print or draw the report PUBLIC SUB DoIt() frmPreview.Run(Report) END From leonardo at ...1237... Wed Feb 20 15:43:23 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 20 Feb 2008 15:43:23 +0100 Subject: [Gambas-user] Bug submission In-Reply-To: <200802191609.29208.gambas@...1...> References: <47B6BE4A.9000608@...1237...> <200802191609.29208.gambas@...1...> Message-ID: <47BC3C8B.7080004@...1237...> Benoit Minisini ha scritto: > I confirm. Strange bug... I will try to fix it, but I don't know when! > Ok. Thanks a lot. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From ronstk at ...239... Wed Feb 20 16:28:21 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 20 Feb 2008 16:28:21 +0100 Subject: [Gambas-user] mysql problems In-Reply-To: <1203444586.6287.6.camel@...40...> References: <365879.71694.qm@...1782...> <47BAB547.3050707@...1863...> <1203444586.6287.6.camel@...40...> Message-ID: <200802201628.22030.ronstk@...239...> On Tuesday 19 February 2008 19:09, Charlie Reinl wrote: > +--------------------+ > | Database ? ? ? ? ? | > +--------------------+ > | information_schema | > | mysql ? ? ? ? ? ? ?| > | test ? ? ? ? ? ? ? | > | wikidb ? ? ? ? ? ? | > +--------------------+ > 4 rows in set (0.00 sec) ---8<---- > > ? ? ?.Name = "" > > ? ?END WITH > > > > ? ?$hConn.Name = "zano" > > ? ?$hConn.Open > > ================================================================== > > > > While writing this mail, I'm in question. > > I run the the modified example "database" in gambas package, it shows a > hmmm, your db is called 'wikidb" ??? $hConn.Name = "wikidb" The name propertie is missleading IMO, it had to be .dbname but now to late to correct it ? It is not the users name anyway, that is given with the .login property. Ron From steven at ...1652... Wed Feb 20 21:01:57 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 20 Feb 2008 21:01:57 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <200802201628.22030.ronstk@...239...> References: <365879.71694.qm@...1782...> <47BAB547.3050707@...1863...> <1203444586.6287.6.camel@...40...> <200802201628.22030.ronstk@...239...> Message-ID: <1203537717.11744.16.camel@...1816...> Hi, I donnot get it (again ;-) ) I do : IF Res.Fields[CFields[i]].Type = db.Date THEN where Res is a valid result set and CFields[i] contains the name of the field. If I select "Res.Fields[CFields[i]].Type" in the debugger I get a 9, wich is correct ! When I run the program it stops on this line with : 'Not an Object' However, when i look into "Res.Fields[CFields[i]]" the object is there with all items filled corectly (Name, Type, ...) What do i do wrong ? Steven From peterdatkins at ...1073... Wed Feb 20 22:14:42 2008 From: peterdatkins at ...1073... (Peter Atkins) Date: Wed, 20 Feb 2008 21:14:42 -0000 Subject: [Gambas-user] Examples at gambasforge.net Message-ID: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> Hi, I have tried many times to download the examples from gambasforge.net. They do not download properly for me giving 'unexpected end of file' error when unzipping. Has anyone else tried? Regards Peter From gambas at ...1... Wed Feb 20 23:54:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Feb 2008 23:54:24 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <47965D3C.9030105@...1237...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> <47965D3C.9030105@...1237...> Message-ID: <200802202354.24887.gambas@...1...> On mardi 22 janvier 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > On mardi 22 janvier 2008, Leonardo Miliani wrote: > >> Some time ago I developed a little application that docked an icon in > >> the systray and I called a popup menu just by clicking on it. > >> I developed that app when I used SUSE with KDE. > >> > >> Now that I switched to Ubuntu/Gnome I'm having a problem with that app. > >> > >> When I run my app, I don't get the icon in the systray: I just get a > >> vertical line of just 1 pixel width! > >> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui > >> I get my app freezed. > >> > >> Ciao. > >> Leonardo. > > > > Please send the project on the mailing-list if it is small. This way > > other Gnome users could tell me if they have the same behaviour. > > > > Regards, > > The applications is downloadable from here: > http://www.gambas-it.org/gmbs/modules/PDdownloads/singlefile.php?cid=1&lid= >5 There are bugs in your application: You set the trayicon icon to the form background, instead of the form icon. You open a popup menu in the MouseDown event, whereas you must use the Menu event. But this allowed me to fix a bug. Anyway, the vertical 1 pixel width appears when displaying a QT tray icon in the Gnome notification area. Any other combination seems to work (gb.qt/KDE, gb.gtk/Gnome and gb.gtk/KDE). This needs some investigation... Regards, -- Benoit Minisini From Karl.Reinl at ...9... Thu Feb 21 00:09:18 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 21 Feb 2008 00:09:18 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <47AC641D.5090605@...1601...> References: <200801201412.15879.scatman@...1832...> <1202328191.5551.4.camel@...40...> <200802071554.31919.gambas@...1...> <1202476981.5550.7.camel@...40...> <47AC641D.5090605@...1601...> Message-ID: <1203548958.4992.3.camel@...40...> Am Freitag, den 08.02.2008, 15:15 +0100 schrieb Gabriel C: > Charlie Reinl wrote: > > Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini: > >> On mercredi 6 f?vrier 2008, Charlie Reinl wrote: > >>> Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman: > >>>> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > >>>>> On dimanche 20 janvier 2008, scatman wrote: > >>>>>> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > >>>>>> > >>>>>> Hello, > >>>>>> > >>>>>>>> open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86- > >>>>>>>> 64 .cac he-2 ", O_RDONLY) = 14 > >>>>>>>> > >>>>>>>> and so on. > >>>>>>>> > >>>>>>>> very strange. > >>>>>>> Which GUI library do you use: QT or GTK+ ? > >>>>>> QT-3.3.8-r4 > >>>>> Does it change anything if you run a Gambas project by typing 'gbx3 -p' > >>>>> in a console inside the project directory? > >>>> No, it?s the same. See Attachment. > >>> Salut, > >>> > >>> had my first go with the gambas2 (from svn 1061) today on gentoo. > >>> > >>> after 'gambas2' on the prompt, I had that ( and see also the attached > >>> png) > >>> > >>> Fontconfig warning: no elements found. Check configuration. > >>> Fontconfig warning: adding /var/cache/fontconfig > >>> Fontconfig warning: adding ~/.fontconfig > >> The messages tell that there is a fontconfig configuration problem. Do you > >> have the same message if you run another QT3 application? > >> > > Salut Benoit, > > > > hadn't much time yesterday, so I posted after quick tests my results. > > Have you ideas about QT3 application which I can run to test that ? > > I haven't planned, to work with gambas2 during the next few weeks, so if > > you want to carry out tests, I can do this as long as my time permits. > > I have an report from a user in Frugalware getting that when installing gambas2 from 'source' / 'svn'. > > I myself cannot reproduce that , however you can try to run : > > fc-cache -f -r -s -v as root. > > > > > Amicalment > > Charlie > > Regards, > > Gabriel Salut, at that time I tried your fc-cache, but that changed nothing. Today I updated to build 1088 ( and also had some Distro-Updates since 08.02) And all works fine now. -- Amicalment Charlie From sylvain.marleau at ...647... Thu Feb 21 00:28:37 2008 From: sylvain.marleau at ...647... (2020) Date: Wed, 20 Feb 2008 15:28:37 -0800 (PST) Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <200802190625.30257.ronstk@...239...> References: <15372045.post@...1379...> <200802112209.31484.gambas@...1...> <15550851.post@...1379...> <200802190625.30257.ronstk@...239...> Message-ID: <15601452.post@...1379...> Hi Ron, after your recommendations, same problem ... return code 1 (invalid handle) with identical handles. Thanks in advance, Sylvain. Test #2; ' Gambas class file PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) AS Integer IN "libftd2xx" PRIVATE EXTERN FT_Close(plngHandle AS Pointer) AS Integer IN "libftd2xx" PRIVATE plngHandle AS Pointer = Alloc(4) PRIVATE intDeviceNumber AS Integer ' Return codes PRIVATE CONST FT_OK AS Integer = 0 PRIVATE CONST FT_INVALID_HANDLE AS Integer = 1 PRIVATE CONST FT_DEVICE_NOT_FOUND AS Integer = 2 PRIVATE CONST FT_DEVICE_NOT_OPENED AS Integer = 3 PUBLIC SUB Form_Open() DIM returnCodes1 AS Integer DIM returnCodes2 AS Integer ' open the device returnCodes1 = FT_Open(0, plngHandle) PRINT returnCodes1, plngHandle ' close the device returnCodes2 = FT_Close(plngHandle) PRINT returnCodes2, plngHandle END Console output; 0 136297432 1 136297432 -- View this message in context: http://www.nabble.com/Migrate-VB6-project-to-Gambas--2.0---tp15372045p15601452.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Thu Feb 21 03:27:02 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 21 Feb 2008 03:27:02 +0100 Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <15601452.post@...1379...> References: <15372045.post@...1379...> <200802190625.30257.ronstk@...239...> <15601452.post@...1379...> Message-ID: <200802210327.02234.ronstk@...239...> On Thursday 21 February 2008 00:28, 2020 wrote: > ' Gambas class file > PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) AS Integer IN "libftd2xx" > PRIVATE EXTERN FT_Close(plngHandle AS Pointer) AS Integer IN "libftd2xx" > PRIVATE plngHandle AS Pointer = Alloc(4) > PRIVATE intDeviceNumber AS Integer > Just downloaded the source code for libftd2xx. Module Name: ftd2xx.h typedef DWORD *FT_HANDLE; FTD2XX_API FT_STATUS WINAPI FT_Open( int deviceNumber, FT_HANDLE *pHandle ); FTD2XX_API FT_STATUS WINAPI FT_Close( FT_HANDLE ftHandle ); FTD2XX_API FT_STATUS WINAPI FT_Read( FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesReturned ); FTD2XX_API FT_STATUS WINAPI FT_Write( FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesWritten ); > Q1: What do you mean by "prototype of the function in C" in your first statement. The above snippit. The interesting point is in the FT_Open() *pHandle is used and for all other actions ftHandle. Both are type of *FT_HANDLE (a pointer) but in the Open() a pointer to the pointer variable pHandle and the other are the actual pointer set by the FT_Open(). I asume in *pHandle the FT_Open will store the pointer value to the handle. I'm not a C veteran but maybe Benoit can explain the exact difference here. Open(): FT_HANDLE *pHandle (give a pointer to a pointer variable to use) Close(): FT_HANDLE ftHandle (give the pointer set by the open function) I'm also afraid you need the VarPtr function not available in gambas<3 PRIVATE EXTERN FT_Open(intDeviceNumber AS Integer, plngHandle AS Pointer) AS Integer IN "libftd2xx" PRIVATE EXTERN FT_Close(plngHandle AS Pointer) AS Integer IN "libftd2xx" PRIVATE plngHandle AS Pointer = Alloc(4) PUBLIC SUB Form_Open() ? DIM returnCodes1 AS Integer ? DIM returnCodes2 AS Integer ? ' open the device ? returnCodes1 = FT_Open(0, VarPtr(plngHandle) ) '<--- the difference? ? PRINT returnCodes1, plngHandle ' close the device ? ? returnCodes2 = FT_Close(plngHandle) ? PRINT returnCodes2, plngHandle END Ron From sylvain.marleau at ...647... Thu Feb 21 03:39:55 2008 From: sylvain.marleau at ...647... (2020) Date: Wed, 20 Feb 2008 18:39:55 -0800 (PST) Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <15601452.post@...1379...> References: <15372045.post@...1379...> <200802112209.31484.gambas@...1...> <15550851.post@...1379...> <200802190625.30257.ronstk@...239...> <15601452.post@...1379...> Message-ID: <15603656.post@...1379...> Hi Ron, where I can get Gambas 3 ? Thanks, Sylvain. -- View this message in context: http://www.nabble.com/Migrate-VB6-project-to-Gambas--2.0---tp15372045p15603656.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Thu Feb 21 04:38:56 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 21 Feb 2008 04:38:56 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <1203537717.11744.16.camel@...1816...> References: <365879.71694.qm@...1782...> <200802201628.22030.ronstk@...239...> <1203537717.11744.16.camel@...1816...> Message-ID: <200802210438.56282.ronstk@...239...> On Wednesday 20 February 2008 21:01, Steven Lobbezoo wrote: > Hi, > > I donnot get it (again ;-) ) > > I do : > IF Res.Fields[CFields[i]].Type = db.Date THEN > > where Res is a valid result set and CFields[i] contains the name of the > field. > If I select "Res.Fields[CFields[i]].Type" in the debugger I get a 9, > wich is correct ! > When I run the program it stops on this line with : 'Not an Object' > However, when i look into "Res.Fields[CFields[i]]" the object is there > with all items filled corectly (Name, Type, ...) > > What do i do wrong ? > > Steven > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Thu Feb 21 04:53:02 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 21 Feb 2008 04:53:02 +0100 Subject: [Gambas-user] Migrate VB6 project to Gambas 2.0 ? In-Reply-To: <15603656.post@...1379...> References: <15372045.post@...1379...> <15601452.post@...1379...> <15603656.post@...1379...> Message-ID: <200802210453.02338.ronstk@...239...> On Thursday 21 February 2008 03:39, 2020 wrote: > > Hi Ron, where I can get Gambas 3 ? > > Thanks, > Sylvain. > > On the website http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/ v3.0 ???? http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/tags/ v1.9x to v2.1 Be carefull while this is development version and very instable :=) Ron From gambas at ...1... Thu Feb 21 09:37:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 09:37:05 +0100 Subject: [Gambas-user] Release of Gambas 2.1 Message-ID: <200802210937.05088.gambas@...1...> Hi, Gambas 2.1 has been released. This is the first gambas version that works indifferently on 32 bits and 64 bits system. Finally! Because of a design flaw, you have to recompile your project when going from one architecture to the other, as soon as you use the Pointer datatype in your code. Otherwise, Gambas executable aree fully compatible. This flaw design is fixed in the Gambas 3 development version. The IDE now fully supports the development of component projects, i.e. components written in Gambas. It can make binary packages for these components too, but Ubuntu and Debian distributions are not supported at the moment. There are a lot of bug fixes too, you can see them in the ChangeLog as usual. To test a component project, just install it by checking the option in the "make executable" dialog. The component will be installed in your home directory, and the IDE will immediately display the controls defined by this component in its toolbox. Developing a component needs some documentation yet. I hope I will be able to write it soon... Anyway, you can ask questions on the mailing-list as usual. Regards, -- Benoit Minisini From maximvonk at ...626... Thu Feb 21 09:39:03 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 21 Feb 2008 00:39:03 -0800 (PST) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> Message-ID: <15606737.post@...1379...> Yes, Iv had the same problem trying to unzip them using the archive manager in Ubuntu. Im not sure if its the exact same error, but they never seem to work for some reason. Regards Max Peterdatkins wrote: > > Hi, > > I have tried many times to download the examples from gambasforge.net. > > They do not download properly for me giving 'unexpected end of file' error > when unzipping. > > Has anyone else tried? > > Regards > > Peter > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15606737.html Sent from the gambas-user mailing list archive at Nabble.com. From luca.cappelletti at ...626... Thu Feb 21 09:44:54 2008 From: luca.cappelletti at ...626... (Luca Cappelletti) Date: Thu, 21 Feb 2008 09:44:54 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802210937.05088.gambas@...1...> References: <200802210937.05088.gambas@...1...> Message-ID: Hi Benoit, why On Thu, Feb 21, 2008 at 9:37 AM, Benoit Minisini < gambas at ...1...> wrote: > Hi, > ... > > components too, but Ubuntu and Debian distributions are not supported at > the > moment. > :) tnx, Luca -- --- Luca Cappelletti Infodomestic.com "...Together we stand, divided we fall." .O. ..O OOO http://developer.infodomestic.com GTalk: luca cappelletti gmail com Jabber: luca cappelletti jabber org MSN: luca cappelletti gmail com Skype: luca cappelletti Linux Registered User: #223411 Ubuntu Registered User: #7221 http://www.advogato.org/person/mutek/ http://persone.softwarelibero.org/person/mutek https://wiki.ubuntu.com/LucaCappelletti/ "l'intelligenza ? utile per la sopravvivenza se ci permette di estinguere una cattiva idea prima che la cattiva idea estingua noi" "La chiave di ogni uomo ? il suo pensiero. Bench? egli possa apparire saldo e autonomo, ha un criterio cui obbedisce, che ? l'idea in base alla quale classifica tutte le cose. Pu? essere cambiato solo mostrandogli una nuova idea che sovrasti la sua" "Uno studioso ? soltanto un modo in cui una biblioteca crea un'altra biblioteca " From gambas at ...1... Thu Feb 21 10:00:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 10:00:23 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: References: <200802210937.05088.gambas@...1...> Message-ID: <200802211000.23873.gambas@...1...> On jeudi 21 f?vrier 2008, Luca Cappelletti wrote: > Hi Benoit, > > why > > On Thu, Feb 21, 2008 at 9:37 AM, Benoit Minisini < > > gambas at ...1...> wrote: > > Hi, > > ... > > > components too, but Ubuntu and Debian distributions are not supported at > > the > > moment. > > > :) > > tnx, > > Luca Because I didn't develop the Ubuntu/Debian packaging support, and didn't want to break things. Jos? did the job, and I hope he will add support for making components too. Regards, -- Benoit Minisini From rospolosco at ...152... Thu Feb 21 12:01:39 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 21 Feb 2008 12:01:39 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802210937.05088.gambas@...1...> References: <200802210937.05088.gambas@...1...> Message-ID: <200802211201.39240.rospolosco@...152...> Alle 09:37, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > Hi, > > Gambas 2.1 has been released. This is the first gambas version that works > indifferently on 32 bits and 64 bits system. Finally! > > Because of a design flaw, you have to recompile your project when going > from one architecture to the other, as soon as you use the Pointer datatype > in your code. Otherwise, Gambas executable aree fully compatible. > > This flaw design is fixed in the Gambas 3 development version. > > The IDE now fully supports the development of component projects, i.e. > components written in Gambas. It can make binary packages for these > components too, but Ubuntu and Debian distributions are not supported at > the moment. > > There are a lot of bug fixes too, you can see them in the ChangeLog as > usual. > > To test a component project, just install it by checking the option in > the "make executable" dialog. The component will be installed in your home > directory, and the IDE will immediately display the controls defined by > this component in its toolbox. > > Developing a component needs some documentation yet. I hope I will be able > to write it soon... Anyway, you can ask questions on the mailing-list as > usual. > > Regards, Just downloaded 2.1. I get an error on compiling. On same system 2.0 compiled fine. Qt: 3.3.8 KDE: 3.5.4 Slackware 11.0 Attached the error log. Ciao. -------------- next part -------------- Making all in ext make[5]: Entering directory `/home/stefano/src/gambas2-2.1.0/gb.qt/src/ext' /bin/sh ../../libtool --tag=CXX --mode=compile ccache g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/lib/qt-3.3.8/include/ -D_REENTRANT -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp mkdir .libs ccache g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/lib/qt-3.3.8/include/ -D_REENTRANT -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o In file included from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/bits/codecvt.h:475, from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/bits/locale_facets.h:1533, from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/bits/basic_ios.h:44, from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/ios:51, from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/ostream:45, from /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/iterator:71, from /usr/lib/qt/include/qvaluelist.h:48, from /usr/lib/qt/include/qmap.h:46, from /usr/lib/qt/include/qmime.h:43, from /usr/lib/qt/include/qevent.h:45, from /usr/lib/qt/include/qobject.h:45, from /usr/lib/qt/include/qwidget.h:43, from ../gb.qt.h:29, from main.h:27, from main.cpp:36: /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/i486-slackware-linux/bits/codecvt_specializations.h: In member function `virtual std::codecvt_base::result std::codecvt<_InternT, _ExternT, std::__enc_traits>::do_unshift(std::__enc_traits&, _ExternT*, _ExternT*, _ExternT*&) const': /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/i486-slackware-linux/bits/codecvt_specializations.h:359: error: no matching function for call to `__iconv_adaptor(size_t (&)(void*, char**, size_t*, char**, size_t*), void* const&, intptr_t&, intptr_t&, char**&, size_t*&)' make[5]: *** [main.lo] Error 1 make[5]: Leaving directory `/home/stefano/src/gambas2-2.1.0/gb.qt/src/ext' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/stefano/src/gambas2-2.1.0/gb.qt/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/stefano/src/gambas2-2.1.0/gb.qt' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/stefano/src/gambas2-2.1.0/gb.qt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/stefano/src/gambas2-2.1.0' make: *** [all] Error 2 From gambas at ...1... Thu Feb 21 12:24:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 12:24:31 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802211201.39240.rospolosco@...152...> References: <200802210937.05088.gambas@...1...> <200802211201.39240.rospolosco@...152...> Message-ID: <200802211224.31558.gambas@...1...> On jeudi 21 f?vrier 2008, Stefano Palmeri wrote: > Alle 09:37, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > > Hi, > > > > Gambas 2.1 has been released. This is the first gambas version that works > > indifferently on 32 bits and 64 bits system. Finally! > > > > Because of a design flaw, you have to recompile your project when going > > from one architecture to the other, as soon as you use the Pointer > > datatype in your code. Otherwise, Gambas executable aree fully > > compatible. > > > > This flaw design is fixed in the Gambas 3 development version. > > > > The IDE now fully supports the development of component projects, i.e. > > components written in Gambas. It can make binary packages for these > > components too, but Ubuntu and Debian distributions are not supported at > > the moment. > > > > There are a lot of bug fixes too, you can see them in the ChangeLog as > > usual. > > > > To test a component project, just install it by checking the option in > > the "make executable" dialog. The component will be installed in your > > home directory, and the IDE will immediately display the controls defined > > by this component in its toolbox. > > > > Developing a component needs some documentation yet. I hope I will be > > able to write it soon... Anyway, you can ask questions on the > > mailing-list as usual. > > > > Regards, > > Just downloaded 2.1. I get an error on compiling. > On same system 2.0 compiled fine. > > Qt: 3.3.8 > KDE: 3.5.4 > > Slackware 11.0 > > Attached the error log. > > Ciao. The error is in a qt header file, so I think it is a problem with your gcc version and your qt version. Regards, -- Benoit Minisini From rospolosco at ...152... Thu Feb 21 12:30:16 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 21 Feb 2008 12:30:16 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802211224.31558.gambas@...1...> References: <200802210937.05088.gambas@...1...> <200802211201.39240.rospolosco@...152...> <200802211224.31558.gambas@...1...> Message-ID: <200802211230.17049.rospolosco@...152...> Alle 12:24, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > On jeudi 21 f?vrier 2008, Stefano Palmeri wrote: > > Alle 09:37, gioved? 21 febbraio 2008, Benoit Minisini ha scritto: > > > Hi, > > > > > > Gambas 2.1 has been released. This is the first gambas version that > > > works indifferently on 32 bits and 64 bits system. Finally! > > > > > > Because of a design flaw, you have to recompile your project when going > > > from one architecture to the other, as soon as you use the Pointer > > > datatype in your code. Otherwise, Gambas executable aree fully > > > compatible. > > > > > > This flaw design is fixed in the Gambas 3 development version. > > > > > > The IDE now fully supports the development of component projects, i.e. > > > components written in Gambas. It can make binary packages for these > > > components too, but Ubuntu and Debian distributions are not supported > > > at the moment. > > > > > > There are a lot of bug fixes too, you can see them in the ChangeLog as > > > usual. > > > > > > To test a component project, just install it by checking the option in > > > the "make executable" dialog. The component will be installed in your > > > home directory, and the IDE will immediately display the controls > > > defined by this component in its toolbox. > > > > > > Developing a component needs some documentation yet. I hope I will be > > > able to write it soon... Anyway, you can ask questions on the > > > mailing-list as usual. > > > > > > Regards, > > > > Just downloaded 2.1. I get an error on compiling. > > On same system 2.0 compiled fine. > > > > Qt: 3.3.8 > > KDE: 3.5.4 > > > > Slackware 11.0 > > > > Attached the error log. > > > > Ciao. > > The error is in a qt header file, so I think it is a problem with your gcc > version and your qt version. > > Regards, Thanks. Maybe it's time to go Slackware 12.0... but before I'll try Qt upgrading. Stefano From sylvain.marleau at ...647... Thu Feb 21 14:05:34 2008 From: sylvain.marleau at ...647... (2020) Date: Thu, 21 Feb 2008 05:05:34 -0800 (PST) Subject: [Gambas-user] Error on installing Gambas 3.0 Message-ID: <15610991.post@...1379...> Error on installing Gambas 3.0, Xubuntu 7.10 - 32 bits bits system. ... make[2]: *** [gbx3-gbx_extern.o] Error 1 make[2]: Leaving directory `/home/smarleau/trunk/main/gbx' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/smarleau/trunk/main' make: *** [install-recursive] Error 1 Output text: http://www.nabble.com/file/p15610991/output.txt output.txt Thanks in advance, Sylvain. -- View this message in context: http://www.nabble.com/Error-on-installing-Gambas-3.0-tp15610991p15610991.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Feb 21 14:07:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 14:07:58 +0100 Subject: [Gambas-user] Error on installing Gambas 3.0 In-Reply-To: <15610991.post@...1379...> References: <15610991.post@...1379...> Message-ID: <200802211407.58930.gambas@...1...> On jeudi 21 f?vrier 2008, 2020 wrote: > Error on installing Gambas 3.0, Xubuntu 7.10 - 32 bits bits system. > ... > make[2]: *** [gbx3-gbx_extern.o] Error 1 > make[2]: Leaving directory `/home/smarleau/trunk/main/gbx' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/smarleau/trunk/main' > make: *** [install-recursive] Error 1 > > Output text: http://www.nabble.com/file/p15610991/output.txt output.txt > > Thanks in advance, > Sylvain. You must install libffi library and headers. Regards, -- Benoit Minisini From steven at ...1652... Thu Feb 21 14:21:50 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 21 Feb 2008 14:21:50 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <200802210438.56282.ronstk@...239...> References: <365879.71694.qm@...1782...> <200802201628.22030.ronstk@...239...> <1203537717.11744.16.camel@...1816...> <200802210438.56282.ronstk@...239...> Message-ID: <1203600110.2409.50.camel@...1816...> Hi ron, tmpdata = Res.Fields[CFields[i]] is impossible, but I got the idea. So, I did tmptype = Res.Fields[CFields[i]].Type as per your suggestion. Now that works just fine. So I suppose it's really a bug since, when I do: If Res.Fields[CFields[i]].Type = db.date This reases an error, but if I assign first to a tmp field, as you sugested, it works just fine. Thanks a lot, Steven Le jeudi 21 f?vrier 2008 ? 04:38 +0100, Ron Onstenk a ?crit : > On Wednesday 20 February 2008 21:01, Steven Lobbezoo wrote: > > Hi, > > > > I donnot get it (again ;-) ) > > > > I do : > > IF Res.Fields[CFields[i]].Type = db.Date THEN > > > > where Res is a valid result set and CFields[i] contains the name of the > > field. > > If I select "Res.Fields[CFields[i]].Type" in the debugger I get a 9, > > wich is correct ! > > When I run the program it stops on this line with : 'Not an Object' > > However, when i look into "Res.Fields[CFields[i]]" the object is there > > with all items filled corectly (Name, Type, ...) > > > > What do i do wrong ? > > > > Steven > Are the names in CFields array of the same case as in the database, just in case? > Did you create the database with the gambas-database-manager? > > For the remaining not much as we also do ourselfs too :=) > > > Try following in the (sub) routine > > DIM tmptype as integer > DIM tmpdata as Date > > tmptype = Res.Fields[CFields[i]].Type > tmpdata = Res.Fields[CFields[i]] > > IF tmptype = db.Date THEN > > Where does the error occur exact? > > Ron > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Feb 21 14:54:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 14:54:15 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <1203600110.2409.50.camel@...1816...> References: <365879.71694.qm@...1782...> <200802210438.56282.ronstk@...239...> <1203600110.2409.50.camel@...1816...> Message-ID: <200802211454.15688.gambas@...1...> On jeudi 21 f?vrier 2008, Steven Lobbezoo wrote: > Hi ron, > > tmpdata = Res.Fields[CFields[i]] > > is impossible, but I got the idea. > So, I did > > tmptype = Res.Fields[CFields[i]].Type > > as per your suggestion. Now that works just fine. So I suppose it's really > a bug since, when I do: > > If Res.Fields[CFields[i]].Type = db.date > > This reases an error, but if I assign first to a tmp field, as you > sugested, it works just fine. > > Thanks a lot, > Steven > Aren't you using the development version? -- Benoit Minisini From steven at ...1652... Thu Feb 21 16:17:34 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 21 Feb 2008 16:17:34 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <200802211454.15688.gambas@...1...> References: <365879.71694.qm@...1782...> <200802210438.56282.ronstk@...239...> <1203600110.2409.50.camel@...1816...> <200802211454.15688.gambas@...1...> Message-ID: <1203607054.2409.54.camel@...1816...> I use 2.1.0 Steven Le jeudi 21 f?vrier 2008 ? 14:54 +0100, Benoit Minisini a ?crit : > On jeudi 21 f?vrier 2008, Steven Lobbezoo wrote: > > Hi ron, > > > > tmpdata = Res.Fields[CFields[i]] > > > > is impossible, but I got the idea. > > So, I did > > > > tmptype = Res.Fields[CFields[i]].Type > > > > as per your suggestion. Now that works just fine. So I suppose it's really > > a bug since, when I do: > > > > If Res.Fields[CFields[i]].Type = db.date > > > > This reases an error, but if I assign first to a tmp field, as you > > sugested, it works just fine. > > > > Thanks a lot, > > Steven > > > > Aren't you using the development version? > From leonardo at ...1237... Thu Feb 21 16:15:07 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 21 Feb 2008 16:15:07 +0100 Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15606737.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15606737.post@...1379...> Message-ID: <47BD957B.6060203@...1237...> MaxVK ha scritto: > Yes, Iv had the same problem trying to unzip them using the archive manager > in Ubuntu. Im not sure if its the exact same error, but they never seem to > work for some reason. > > Regards > > > Max > > > > Peterdatkins wrote: >> Hi, >> >> I have tried many times to download the examples from gambasforge.net. >> >> They do not download properly for me giving 'unexpected end of file' error >> when unzipping. >> >> Has anyone else tried? >> >> Regards >> >> Peter >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > Me and a friend of mine can confirm that in this moment all the packages downloaded from the above web site arrive as "corrupted". -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From leonardo at ...1237... Thu Feb 21 16:22:30 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 21 Feb 2008 16:22:30 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <200802202354.24887.gambas@...1...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> <47965D3C.9030105@...1237...> <200802202354.24887.gambas@...1...> Message-ID: <47BD9736.1070209@...1237...> Benoit Minisini ha scritto: > There are bugs in your application: You set the trayicon icon to the form > background, instead of the form icon. You open a popup menu in the MouseDown > event, whereas you must use the Menu event. But this allowed me to fix a bug. > Ok. I'll correct my app following your directions... > Anyway, the vertical 1 pixel width appears when displaying a QT tray icon in > the Gnome notification area. Any other combination seems to work (gb.qt/KDE, > gb.gtk/Gnome and gb.gtk/KDE). This needs some investigation... > > Regards, > Happy to be useful ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From ronstk at ...239... Thu Feb 21 16:54:30 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 21 Feb 2008 16:54:30 +0100 Subject: [Gambas-user] Not an Object question In-Reply-To: <1203607054.2409.54.camel@...1816...> References: <365879.71694.qm@...1782...> <200802211454.15688.gambas@...1...> <1203607054.2409.54.camel@...1816...> Message-ID: <200802211654.30986.ronstk@...239...> On Thursday 21 February 2008 16:17, Steven Lobbezoo wrote: > I use 2.1.0 > > Steven > > Le jeudi 21 f?vrier 2008 ? 14:54 +0100, Benoit Minisini a ?crit : > > On jeudi 21 f?vrier 2008, Steven Lobbezoo wrote: > > > Hi ron, > > > > > > tmpdata = Res.Fields[CFields[i]] > > > > > > is impossible, but I got the idea. > > > So, I did > > > > > > tmptype = Res.Fields[CFields[i]].Type > > > > > > as per your suggestion. Now that works just fine. So I suppose it's really > > > a bug since, when I do: > > > > > > If Res.Fields[CFields[i]].Type = db.date > > > > > > This reases an error, but if I assign first to a tmp field, as you > > > sugested, it works just fine. > > > > > > Thanks a lot, > > > Steven I'm happy it was a little help :=) I had in the past also some problems when I did use complex constructions. In fact my example was before I did post DIM tmpname as string DIM tmpfield as ResultField ' or Variant or Object DIM tmptype as integer DIM tmpdata as Date ' get the things step by step tmpname = Fields[i] tmpfield = Res.Fields[tmpname] tmptype = tmpfield.Type ' type tmpdata = tmpfield ' the value However gambas can't DIM a ResultField in real live so you must use Variant or Object. > > > > > > > Aren't you using the development version? > > > You see the question of the gambas version as I mentioned on your request 'What do i do wrong ?' :=) Ron From leonardo at ...1237... Thu Feb 21 17:42:18 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 21 Feb 2008 17:42:18 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <47BD9736.1070209@...1237...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> <47965D3C.9030105@...1237...> <200802202354.24887.gambas@...1...> <47BD9736.1070209@...1237...> Message-ID: <47BDA9EA.1080907@...1237...> Leonardo Miliani ha scritto: >> Anyway, the vertical 1 pixel width appears when displaying a QT tray icon in >> the Gnome notification area. Any other combination seems to work (gb.qt/KDE, >> gb.gtk/Gnome and gb.gtk/KDE). This needs some investigation... Apparently I've solved this problem using the last version of Gambas and changing my code declaring trayicon.icon as the form.icon -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Thu Feb 21 17:59:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 17:59:53 +0100 Subject: [Gambas-user] GridView In-Reply-To: <5071588.1881200938431439.JavaMail.root@...1834...> References: <5071588.1881200938431439.JavaMail.root@...1834...> Message-ID: <200802211759.53727.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > If I take a form which contains a GridView, which has expand set, the > gridview will expand / contract with the main window. > > Unfortunately, "sometimes" when resizing the main window, the GridView > element won't correctly calculate it's width causing the horizontal > scrollbar to appear and a small portion of the header to be chopped off. > > This happens with Qt and Gtk. > > To reproduce, create an empty form, add gridview, turn headers and expand > on. > > Add to form open > > grid.Columns.Count = 4 > grid.Columns[0].Text = "Col1" > grid.Columns[1].Text = "Col2" > grid.Columns[2].Text = "Col3" > grid.Columns[3].Text = "Col4" > grid.Rows.Count = 3 > > > Graphics attached. This is not a bug actually. The width of the last column is expanded to reach the right side of the gridview, but it is never shrinked less than its initial width. So the horizontal scrollbar may appear. You can prevent that by setting the width of the column #3 to a small value. Regards, -- Benoit Minisini From gambas at ...1... Thu Feb 21 18:14:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Feb 2008 18:14:49 +0100 Subject: [Gambas-user] number format In-Reply-To: <479C5379.2010306@...626...> References: <200801211719.06045.gunartha.nyoman@...1817...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <479C5379.2010306@...626...> Message-ID: <200802211814.49558.gambas@...1...> On dimanche 27 janvier 2008, Ep?leg wrote: > En/na Fabien Bodard ha escrit: > > simply do val(textbox.text) but you must take care that your system > > location is correct > > I got a wrong behavior with 'val' function (I think). > > > In an US English locale, I got this: > > Val("1,234,567.89") => 1234567.89 > > > In a Germany German locale: > > Val("1.234.567,89") => 1234567.89 > > > But in a France French locale: > > Val("1 234 567,89") => 1 > > > The thousands separator in all locales cases are correctly set: > > $ LANG=en_US.UTF-8 locale -k LC_NUMERIC > decimal_point="." > thousands_sep="," > grouping=3;3 > numeric-decimal-point-wc=46 > numeric-thousands-sep-wc=44 > numeric-codeset="UTF-8" > > a$ LANG=de_DE.UTF-8 locale -k LC_NUMERIC > decimal_point="," > thousands_sep="." > grouping=3;3 > numeric-decimal-point-wc=44 > numeric-thousands-sep-wc=46 > numeric-codeset="UTF-8" > > $ LANG=fr_FR.UTF-8 locale -k LC_NUMERIC > decimal_point="," > thousands_sep=" " > grouping=3;3 > numeric-decimal-point-wc=44 > numeric-thousands-sep-wc=32 > numeric-codeset="UTF-8" > > Thanks, > Ep?leg. > This bug has been fixed in the 2.x branch, revision 1092. -- Benoit Minisini From sylvain.marleau at ...647... Fri Feb 22 01:08:15 2008 From: sylvain.marleau at ...647... (2020) Date: Thu, 21 Feb 2008 16:08:15 -0800 (PST) Subject: [Gambas-user] Error on launch of Gambas 3.0 Message-ID: <15624254.post@...1379...> :~$ gambas3 ERROR: #27: Cannot load component 'gb.desktop': cannot find library file Thanks in advance, Sylvain. -- View this message in context: http://www.nabble.com/Error-on-launch-of-Gambas-3.0-tp15624254p15624254.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Feb 22 01:14:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 22 Feb 2008 01:14:57 +0100 Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <15624254.post@...1379...> References: <15624254.post@...1379...> Message-ID: <200802220114.57400.gambas@...1...> On vendredi 22 f?vrier 2008, 2020 wrote: > :~$ gambas3 > > ERROR: #27: Cannot load component 'gb.desktop': cannot find library file > > Thanks in advance, > Sylvain. Did you read the output of configure? gb.desktop is disabled. You must install the needed libraries and development packages. Please read the README file on the wiki, and the Compilation & installation section. Regards, -- Benoit Minisini From sylvain.marleau at ...647... Fri Feb 22 02:17:11 2008 From: sylvain.marleau at ...647... (2020) Date: Thu, 21 Feb 2008 17:17:11 -0800 (PST) Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <200802220114.57400.gambas@...1...> References: <15624254.post@...1379...> <200802220114.57400.gambas@...1...> Message-ID: <15625447.post@...1379...> Benoit, where the needed libraries are located ? Thanks, Sylvain. -- View this message in context: http://www.nabble.com/Error-on-launch-of-Gambas-3.0-tp15624254p15625447.html Sent from the gambas-user mailing list archive at Nabble.com. From nxgtrturbo at ...626... Fri Feb 22 03:18:00 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 21 Feb 2008 18:18:00 -0800 Subject: [Gambas-user] Only One Active Form at same time Message-ID: <688afe140802211818u60bc26c9u50b61035679a34ab@...627...> Hi, I was wondering how to have only one form opened, I mean, If I have a button1 inside a form1 I want to close form1 and open form2, instead of have 2 opened windows. The problem is that I found a way to do it but works only with a few forms, I really don't know what is wrong in other forms. The code is as simple as: Me.close(TRUE) Form2.show I don't know if thats the way to do it, but works in a few forms. Is there a "good" way to do it, working in all forms? Thanks in advance -- Nx GT-R From david_villalobos_c at ...43... Fri Feb 22 13:23:52 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 22 Feb 2008 04:23:52 -0800 (PST) Subject: [Gambas-user] Only One Active Form at same time Message-ID: <258007.16240.qm@...1658...> You can use Form.Visible = TRUE/FALSE so it will be never closed or use the gb.form.mdi slds David ----- Original Message ---- From: Nx GT-R BOY To: gambas-user at lists.sourceforge.net Sent: Thursday, February 21, 2008 8:18:00 PM Subject: [Gambas-user] Only One Active Form at same time Hi, I was wondering how to have only one form opened, I mean, If I have a button1 inside a form1 I want to close form1 and open form2, instead of have 2 opened windows. The problem is that I found a way to do it but works only with a few forms, I really don't know what is wrong in other forms. The code is as simple as: Me.close(TRUE) Form2.show I don't know if thats the way to do it, but works in a few forms. Is there a "good" way to do it, working in all forms? Thanks in advance -- Nx GT-R ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From steven at ...1545... Fri Feb 22 13:35:08 2008 From: steven at ...1545... (Steven Drinnan) Date: Fri, 22 Feb 2008 20:35:08 +0800 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802210937.05088.gambas@...1...> References: <200802210937.05088.gambas@...1...> Message-ID: <1203683708.3945.0.camel@...1857...> Compiling error. I have just downloaded the latest source code and tried to compile it. Here is the configure output. I get the following error at the end configure: WARNING: *** foreign function interface is disabled configure: error: libffi library and headers are required configure: error: ./configure failed for main Installed libffi and devel files to same result uname -r output for info Linux laptop.myhome 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST 2008 i686 i686 i386 GNU/Linux I have successfully complied v2.0 no probs Steven Drinnan On Thu, 2008-02-21 at 09:37 +0100, Benoit Minisini wrote: > Hi, > > Gambas 2.1 has been released. This is the first gambas version that works > indifferently on 32 bits and 64 bits system. Finally! > > Because of a design flaw, you have to recompile your project when going from > one architecture to the other, as soon as you use the Pointer datatype in > your code. Otherwise, Gambas executable aree fully compatible. > > This flaw design is fixed in the Gambas 3 development version. > > The IDE now fully supports the development of component projects, i.e. > components written in Gambas. It can make binary packages for these > components too, but Ubuntu and Debian distributions are not supported at the > moment. > > There are a lot of bug fixes too, you can see them in the ChangeLog as usual. > > To test a component project, just install it by checking the option in > the "make executable" dialog. The component will be installed in your home > directory, and the IDE will immediately display the controls defined by this > component in its toolbox. > > Developing a component needs some documentation yet. I hope I will be able to > write it soon... Anyway, you can ask questions on the mailing-list as usual. > > Regards, > -------------- next part -------------- checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged === configuring in main (/home/steven/Desktop/gambas2-2.1.0/main) configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for setenv... yes checking for unsetenv... yes checking for getdomainname... yes checking for getpt... yes checking for ccache... /usr/bin/ccache checking for main in -lm... yes checking for main in -lz... yes checking for main in -lgcc_s... yes checking for main in -lstdc++... yes checking target system... LINUX checking which extension is used for shared libraries... .so checking for threading compiler options... -D_REENTRANT checking for threading linker options... -lpthread checking for mathematic libraries... -lm checking for external gettext library... checking CFLAGS for gcc -fvisibility=hidden... -fvisibility=hidden checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by ccache gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... ccache g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 98304 checking command to parse /usr/bin/nm -B output from ccache gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if ccache gcc supports -fno-rtti -fno-exceptions... no checking for ccache gcc option to produce PIC... -fPIC checking if ccache gcc PIC flag -fPIC works... yes checking if ccache gcc static flag -static works... yes checking if ccache gcc supports -c -o file.o... yes checking whether the ccache gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by ccache g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries... yes checking for ccache g++ option to produce PIC... -fPIC checking if ccache g++ PIC flag -fPIC works... yes checking if ccache g++ static flag -static works... yes checking if ccache g++ supports -c -o file.o... yes checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 static flag -static works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether ccache gcc and cc understand -c and -o together... yes checking for external internationalization library headers... /usr/include/ checking for external internationalization library libraries... no * Failed to find file libintl.so configure: This library should be located inside the system C library checking for optional external charset conversion library headers... /usr/include/ checking for optional external charset conversion library libraries... no * Failed to find file libiconv.so configure: This library must be located inside the C library checking for foreign function interface headers... no * Failed to find file ffi.h checking for foreign function interface libraries... /usr/lib/ From gambas at ...1... Fri Feb 22 13:39:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 22 Feb 2008 13:39:28 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <1203683708.3945.0.camel@...1857...> References: <200802210937.05088.gambas@...1...> <1203683708.3945.0.camel@...1857...> Message-ID: <200802221339.28586.gambas@...1...> On vendredi 22 f?vrier 2008, Steven Drinnan wrote: > Compiling error. > > I have just downloaded the latest source code and tried to compile it. > Here is the configure output. I get the following error at the end > > configure: WARNING: *** foreign function interface is disabled > configure: error: libffi library and headers are required > configure: error: ./configure failed for main > > Installed libffi and devel files to same result > > Are you sure? What is your distribution? What is the full output of configure? Where are the libffi header files installed? -- Benoit Minisini From steven at ...1545... Fri Feb 22 13:44:55 2008 From: steven at ...1545... (Steven Drinnan) Date: Fri, 22 Feb 2008 20:44:55 +0800 Subject: [Gambas-user] Only One Active Form at same time In-Reply-To: <688afe140802211818u60bc26c9u50b61035679a34ab@...627...> References: <688afe140802211818u60bc26c9u50b61035679a34ab@...627...> Message-ID: <1203684295.3945.8.camel@...1857...> Try Me.visible = False Form2.show me.close That way the form should hide itself first then open up the next form for you. having it the way that you have could have the form closing with out finishing its code in that block. (Even though technically your code is right ) It always better to open forms first before closing the current form it something I learnt when I was using VB more. (Old VB days haunting me) Steven On Thu, 2008-02-21 at 18:18 -0800, Nx GT-R BOY wrote: > Hi, I was wondering how to have only one form opened, I mean, If I have a > button1 inside a form1 I want to close form1 and open form2, instead of have > 2 opened windows. > > The problem is that I found a way to do it but works only with a few forms, > I really don't know what is wrong in other forms. > > The code is as simple as: > Me.close(TRUE) > Form2.show > > I don't know if thats the way to do it, but works in a few forms. > > Is there a "good" way to do it, working in all forms? > > Thanks in advance From maximvonk at ...626... Fri Feb 22 14:42:18 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 22 Feb 2008 05:42:18 -0800 (PST) Subject: [Gambas-user] sudo or gksudo in SHELL? Message-ID: <15633386.post@...1379...> Hi there. I'm trying to set the permissions on a folder (Or a file), but of course I need to use sudo or gksudo. However, this doesn't seem to work, and when I try to make the call to SHELL I simply get the gksudo help show up in the debug pane. I'm trying to do something like this (No exactly since I'm on the wrong computer at the moment) SHELL "gksudo chown -R root " & TEXDIR.Text Can this be done? regards Max -- View this message in context: http://www.nabble.com/sudo-or-gksudo-in-SHELL--tp15633386p15633386.html Sent from the gambas-user mailing list archive at Nabble.com. From jredrejo at ...626... Fri Feb 22 15:48:28 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 22 Feb 2008 15:48:28 +0100 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <15633386.post@...1379...> References: <15633386.post@...1379...> Message-ID: <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> 2008/2/22, MaxVK : > > > Hi there. I'm trying to set the permissions on a folder (Or a file), but > of > course I need to use sudo or gksudo. However, this doesn't seem to work, > and > when I try to make the call to SHELL I simply get the gksudo help show up > in > the debug pane. ?of course? That's a decision of Ubuntu makers and Ubuntu's the only distribution that does things that way. So it's not "of course", it's "because of" a non-sense decision in "only a distribution" I'm trying to do something like this (No exactly since I'm on the wrong > computer at the moment) > > SHELL "gksudo chown -R root " & TEXDIR.Text do you need a graphic interface? in that case you'll have to use shell "gksu \"chown... \" .. " but if you don't need the graphic interface you can use sudo directly. Take a look at "man sudo" and you'll know a lot of different options to do it. Regards. Jos? L: From maximvonk at ...626... Fri Feb 22 17:55:13 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Fri, 22 Feb 2008 16:55:13 +0000 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> References: <15633386.post@...1379...> <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> Message-ID: <47BEFE71.7000809@...626...> Jos? Luis Redrejo wrote: > do you need a graphic interface? in that case you'll have to use shell "gksu > \"chown... \" .. " > but if you don't need the graphic interface you can use sudo directly. Take > a look at "man sudo" and you'll know a lot of different options to do it. > Regards. > > Jos? L: Thanks Jos?, the command works just fine when I type the password into the debug pane, but this is one of the reasons I was trying to use gksudo: To get a graphical password request for me to type into. When the program is compiled there will be no debug pane to type into so I need something else. For example, is there some way I can type my password into my own program or is there another way to use sudo from SHELL? Regards Max From jredrejo at ...626... Fri Feb 22 18:25:01 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 22 Feb 2008 18:25:01 +0100 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <47BEFE71.7000809@...626...> References: <15633386.post@...1379...> <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> <47BEFE71.7000809@...626...> Message-ID: <8eb28a500802220925j4048503u58823756b7b0dcc6@...627...> 2008/2/22, Maximillian Von Kloisterheim : > > Jos? Luis Redrejo wrote: > > do you need a graphic interface? in that case you'll have to use shell > "gksu > > \"chown... \" .. " > > but if you don't need the graphic interface you can use sudo directly. > Take > > a look at "man sudo" and you'll know a lot of different options to do > it. > > Regards. > > > > Jos? L: > > > Thanks Jos?, the command works just fine when I type the password into > the debug pane, but this is one of the reasons I was trying to use > gksudo: To get a graphical password request for me to type into. > > When the program is compiled there will be no debug pane to type into so > I need something else. > > For example, is there some way I can type my password into my own > program or is there another way to use sudo from SHELL? > > I think you could do it by a combination of "expect" and "su" su -u user -c command will ask for the password and with "expect you could answer it. Also, using a gambas process open as a Stream and using Input/Output functions might be possible. Regards. Jos? L. From rospolosco at ...152... Fri Feb 22 18:26:08 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 22 Feb 2008 18:26:08 +0100 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <47BEFE71.7000809@...626...> References: <15633386.post@...1379...> <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> <47BEFE71.7000809@...626...> Message-ID: <200802221826.08582.rospolosco@...152...> Alle 17:55, venerd? 22 febbraio 2008, Maximillian Von Kloisterheim ha scritto: > Jos? Luis Redrejo wrote: > > do you need a graphic interface? in that case you'll have to use shell > > "gksu \"chown... \" .. " > > but if you don't need the graphic interface you can use sudo directly. > > Take a look at "man sudo" and you'll know a lot of different options to > > do it. Regards. > > > > Jos? L: > > Thanks Jos?, the command works just fine when I type the password into > the debug pane, but this is one of the reasons I was trying to use > gksudo: To get a graphical password request for me to type into. > > When the program is compiled there will be no debug pane to type into so > I need something else. > > For example, is there some way I can type my password into my own > program or is there another way to use sudo from SHELL? > I've attached an example. It shows how to send the password to sudo. You have to change the "your_commad_here" in the code. Stefano > Regards > > Max > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: sudo-0.0.1.tar.gz Type: application/x-tgz Size: 7882 bytes Desc: not available URL: From sylvain.marleau at ...647... Fri Feb 22 20:39:18 2008 From: sylvain.marleau at ...647... (2020) Date: Fri, 22 Feb 2008 11:39:18 -0800 (PST) Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <200802220114.57400.gambas@...1...> References: <15624254.post@...1379...> <200802220114.57400.gambas@...1...> Message-ID: <15641296.post@...1379...> Hello folk, 1): I installed the development packages, but I can not resolved the disabled component gb.qte, any ideas. ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.qte ************************************************************ 2): After the installation I ran gambas3, unexpected error; Settings.Load.59: Syntax error in settings file at line #20: Type mismatch: wanted Integer, got String instead 0: Settings.Load.59 1: Settings._new.97 2: Project.Main.143 Thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/Error-on-launch-of-Gambas-3.0-tp15624254p15641296.html Sent from the gambas-user mailing list archive at Nabble.com. From richard.j.walker at ...247... Fri Feb 22 21:00:11 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 22 Feb 2008 20:00:11 +0000 Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <15641296.post@...1379...> References: <15624254.post@...1379...> <200802220114.57400.gambas@...1...> <15641296.post@...1379...> Message-ID: <200802222000.12024.richard.j.walker@...247...> On Friday 22 February 2008 19:39:18 2020 wrote: > Hello folk, > > 1): I installed the development packages, but I can not resolved the > disabled component gb.qte, any ideas. > > ************************************************************ > THESE COMPONENTS ARE DISABLED: > - gb.qte > ************************************************************ > > 2): After the installation I ran gambas3, unexpected error; > > Settings.Load.59: Syntax error in settings file at line #20: Type mismatch: > wanted Integer, got String instead > 0: Settings.Load.59 > 1: Settings._new.97 > 2: Project.Main.143 > > Thanks in advance. > > Sylvain. Don't worry. That component is for developers of QT Embedded applications which, I'm guessing, you are not. It is mentioned in the README that this will normally be disabled. Richard From horechuk at ...981... Fri Feb 22 21:14:19 2008 From: horechuk at ...981... (Paul Horechuk) Date: Fri, 22 Feb 2008 15:14:19 -0500 Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <15641296.post@...1379...> References: <15624254.post@...1379...> <200802220114.57400.gambas@...1...> <15641296.post@...1379...> Message-ID: <200802221514.20173.horechuk@...981...> On February 22, 2008, 2020 wrote: > Hello folk, > > 1): I installed the development packages, but I can not resolved the > disabled component gb.qte, any ideas. > > ************************************************************ > THESE COMPONENTS ARE DISABLED: > - gb.qte > ************************************************************ I've found that the QT Embedded functions are not what I normally use. These are usually if you develop for handhelds and phones. > 2): After the installation I ran gambas3, unexpected error; > > Settings.Load.59: Syntax error in settings file at line #20: Type > mismatch: wanted Integer, got String instead > 0: Settings.Load.59 > 1: Settings._new.97 > 2: Project.Main.143 > I had the exact same error last week. The best I could tell, it was an older version of the settings file. It didn't get replaced on the reinstall. I ended up doing: rm -rf /usr/local/share/gambas3 rm -rf /usr/local/lib/gambas3 rm -rf ~/.config/gambas The last one is the user environment as in /home/$USER/.config/gambas. One of these was for a prior version. Following this, a make install gave me a working system. My environment was Kubuntu 7.04 64bit. > Thanks in advance. > > Sylvain. -- Paul Horechuk Think Free Use Open Source Software ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From maximvonk at ...626... Sat Feb 23 13:39:46 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Sat, 23 Feb 2008 12:39:46 +0000 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <200802221826.08582.rospolosco@...152...> References: <15633386.post@...1379...> <8eb28a500802220648k62e7892bod3081a52b2aaad70@...627...> <47BEFE71.7000809@...626...> <200802221826.08582.rospolosco@...152...> Message-ID: <47C01412.6030001@...626...> Stefano Palmeri wrote: > > I've attached an example. It shows how to send the password to sudo. > You have to change the "your_commad_here" in the code. > > Stefano > Thanks Stefano, that works a treat. However, Iv asked about this before (Not in relation to Gambas) and was told that doing this would leave an unencrypted copy of my password in the .bash-history file. That's why I was trying to get gksudo to ask me for a password, so the system is still dealing with the security and I'm simply passing along the commands. Failing this as an option, is there a way to force the program itself to be run only under sudo/gksudo, so that the system asks for the password before the program runs? (In the same way as I always have to enter my password before I can open Synaptic for example) I know this can be done with a command line once the program is compiled and installed, but can this be done from within the development environment? Thanks Max From rospolosco at ...152... Sat Feb 23 16:35:56 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 23 Feb 2008 16:35:56 +0100 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <47C01412.6030001@...626...> References: <15633386.post@...1379...> <200802221826.08582.rospolosco@...152...> <47C01412.6030001@...626...> Message-ID: <200802231635.56264.rospolosco@...152...> Alle 13:39, sabato 23 febbraio 2008, Maximillian Von Kloisterheim ha scritto: > Stefano Palmeri wrote: > > I've attached an example. It shows how to send the password to sudo. > > You have to change the "your_commad_here" in the code. > > > > Stefano > > Thanks Stefano, that works a treat. However, Iv asked about this before > (Not in relation to Gambas) and was told that doing this would leave an > unencrypted copy of my password in the .bash-history file. > > That's why I was trying to get gksudo to ask me for a password, so the > system is still dealing with the security and I'm simply passing along > the commands. > > Failing this as an option, is there a way to force the program itself to > be run only under sudo/gksudo, so that the system asks for the password > before the program runs? (In the same way as I always have to enter my > password before I can open Synaptic for example) > > I know this can be done with a command line once the program is compiled > and installed, but can this be done from within the development > environment? > > Thanks > > Max > Oh, well. It seems you are running Ubuntu, so you have to do a little testing because I don't know sudo works under Ubuntu. On Slackware, when I run a program under sudo, the user of that program becomes "root" so it's really easy to check: IF User.Name <> "root" THEN PRINT "You must be root or use sudo" QUIT ENDIF but I don't know Ubuntu policy for sudo. Try this little test: run: sudo gedit (be sure there's only a gedit process) and leave the editor open then on terminal run: ps aux | grep gedit | grep -v grep and check who is the owner/user (first field) of the gedit process. It could be something (root, admin) that you can use for the checking as above. Bye, Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kaoticus60 at ...151... Sat Feb 23 17:00:35 2008 From: kaoticus60 at ...151... (andy60) Date: Sat, 23 Feb 2008 17:00:35 +0100 Subject: [Gambas-user] gb.chart Message-ID: <47C04323.8030109@...151...> I would like to know the use of this component. I don't see any help. Thank you. From rospolosco at ...152... Sat Feb 23 17:15:18 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 23 Feb 2008 17:15:18 +0100 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <200802231635.56264.rospolosco@...152...> References: <15633386.post@...1379...> <47C01412.6030001@...626...> <200802231635.56264.rospolosco@...152...> Message-ID: <200802231715.18364.rospolosco@...152...> Alle 16:35, sabato 23 febbraio 2008, Stefano Palmeri ha scritto: > Alle 13:39, sabato 23 febbraio 2008, Maximillian Von Kloisterheim ha scritto: > > Stefano Palmeri wrote: > > > I've attached an example. It shows how to send the password to sudo. > > > You have to change the "your_commad_here" in the code. > > > > > > Stefano > > > > Thanks Stefano, that works a treat. However, Iv asked about this before > > (Not in relation to Gambas) and was told that doing this would leave an > > unencrypted copy of my password in the .bash-history file. > > > > That's why I was trying to get gksudo to ask me for a password, so the > > system is still dealing with the security and I'm simply passing along > > the commands. > > > > Failing this as an option, is there a way to force the program itself to > > be run only under sudo/gksudo, so that the system asks for the password > > before the program runs? (In the same way as I always have to enter my > > password before I can open Synaptic for example) > > > > I know this can be done with a command line once the program is compiled > > and installed, but can this be done from within the development > > environment? > > > > Thanks > > > > Max > > Oh, well. It seems you are running Ubuntu, so you have to do a little > testing because I don't know sudo works under Ubuntu. > On Slackware, when I run a program under sudo, the user of that > program becomes "root" so it's really easy to check: > > IF User.Name <> "root" THEN > PRINT "You must be root or use sudo" > QUIT > ENDIF > > but I don't know Ubuntu policy for sudo. Try this > little test: > > run: > > sudo gedit (be sure there's only a gedit process) > > and leave the editor open > > then on terminal run: > > ps aux | grep gedit | grep -v grep > > and check who is the owner/user (first field) of the gedit > process. It could be something (root, admin) that you can use for the > checking as above. > > Bye, > > Stefano > Also, you could do : IF User.Name <> "root" THEN SHELL "gksudo " & Application.Args[0] WAIT QUIT ENDIF but this works after the project was compiled as executable. Stefano > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Feb 23 19:50:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 23 Feb 2008 19:50:34 +0100 Subject: [Gambas-user] Release of gambas 2.2 Message-ID: <200802231950.34521.gambas@...1...> Hi, This release mainly fixes a few configuration bugs that prevented Gambas binary packages to be made on some 64 bits distributions. It fixes two other bugs on the Val() instruction, and in the TrayIcon control. See the ChangeLog for more details. Regards, -- Benoit Minisini From horechuk at ...981... Sat Feb 23 22:19:09 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sat, 23 Feb 2008 16:19:09 -0500 Subject: [Gambas-user] Tips of the Day Message-ID: <200802231619.09290.horechuk@...981...> I notice that the "Tips of the Day" are showing as raw html, as opposed to formatted. What should I change? Kubuntu 7.04 64bit svn trunk 1077 -- -- Paul Horechuk Think Free Use Open Sourec Software From maximvonk at ...626... Sun Feb 24 02:10:12 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Sun, 24 Feb 2008 01:10:12 +0000 Subject: [Gambas-user] sudo or gksudo in SHELL? In-Reply-To: <200802231715.18364.rospolosco@...152...> References: <15633386.post@...1379...> <47C01412.6030001@...626...> <200802231635.56264.rospolosco@...152...> <200802231715.18364.rospolosco@...152...> Message-ID: <47C0C3F4.3030500@...626...> Stefano Palmeri wrote: > > Also, you could do : > > IF User.Name <> "root" THEN > SHELL "gksudo " & Application.Args[0] WAIT > QUIT > ENDIF > > but this works after the project was compiled as executable. > > Stefano Thanks Stefano. It looks like I might have to write the program, compile it, and then run it with gksudo to make things work. Regards Max From steven at ...1545... Sun Feb 24 02:49:44 2008 From: steven at ...1545... (Steven Drinnan) Date: Sun, 24 Feb 2008 09:49:44 +0800 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802221339.28586.gambas@...1...> References: <200802210937.05088.gambas@...1...> <1203683708.3945.0.camel@...1857...> <200802221339.28586.gambas@...1...> Message-ID: <1203817784.3128.8.camel@...1857...> I am sure rpm query libffi-3.0.1-1.fc8 and libffi-devel-3.0.1-1.fc8 and i am running Fedora 8 where they are installed - the default location as I installed via RPM As for the config file I thought I attached it to the email last time but you can download it here www.sjdsoft.hk/outputconfig.txt Many thanks for your help Steven On Fri, 2008-02-22 at 13:39 +0100, Benoit Minisini wrote: > On vendredi 22 f?vrier 2008, Steven Drinnan wrote: > > Compiling error. > > > > I have just downloaded the latest source code and tried to compile it. > > Here is the configure output. I get the following error at the end > > > > configure: WARNING: *** foreign function interface is disabled > > configure: error: libffi library and headers are required > > configure: error: ./configure failed for main > > > > Installed libffi and devel files to same result > > > > > > Are you sure? What is your distribution? What is the full output of configure? > Where are the libffi header files installed? > From audiossis at ...867... Sun Feb 24 04:21:53 2008 From: audiossis at ...867... (Audiossis) Date: Sun, 24 Feb 2008 14:21:53 +1100 Subject: [Gambas-user] Returning an integer from an external function broken? Gambas 2.1.0 and 2.2.0 Message-ID: <1203823313.14800.4.camel@...37...> Hi all, Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), returning an integer from an external function appears to be broken. I updated from Gambas 2.0.0 where my code (see below) worked fine, to Gambas 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 where it still doesn't work. Snippet...... PUBLIC rInit AS Integer LIBRARY "libusb-0.1" PRIVATE EXTERN usb_init() AS Integer PUBLIC FUNCTION init() rInit = usb_init() END In versions previous to Gambas 2.1.0 the external function returns an integer to the rInit variable, letting me know of the success or failure of the libusb init routine. In Gambas 2.1.0 and above, this code returns the error "Type mismatch: Wanted Integer, got Function instead." This error is not related to the particular function being called and happens with ALL external functions I am calling from the libusb library. I even regressed back to Gambas 2.0.0 just to verify that I hadn't accidentally screwed up my code and sure enough the program started working again. Is this a bug with the new version? or has the syntax for returning an integer/string/variant from an external function changed? Any help would be appreciated! Thanks in advance, Ben From audiossis at ...867... Sun Feb 24 07:37:40 2008 From: audiossis at ...867... (Audiossis) Date: Sun, 24 Feb 2008 17:37:40 +1100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: References: Message-ID: <1203835060.5389.16.camel@...37...> Hi, I'm not sure if I'm replying in the right manner but here gos..... I had a similar problem in Fedora 7 only I couldn't find and rpm package for libffi. I resolved it by compiling libffi-3.0.1 from source (running #> ./configure; make; make install) and then copying the header files (ffi.h and ffitarget.h) to /usr/local/lib/libffi-3.0.1/include and the library files (libffi.so, libffi.so.5 etc...) to /usr/local/lib. Once I did that Gambas 2.1.0 and 2.2.0 compiled perfectly. Hope this helps. Regards, Ben > > > ------------------------------ > > Message: 3 > Date: Fri, 22 Feb 2008 20:35:08 +0800 > From: Steven Drinnan > Subject: Re: [Gambas-user] Release of Gambas 2.1 > To: mailing list for gambas users > Message-ID: <1203683708.3945.0.camel at ...1857...> > Content-Type: text/plain; charset="us-ascii" > > Compiling error. > > I have just downloaded the latest source code and tried to compile it. > Here is the configure output. I get the following error at the end > > configure: WARNING: *** foreign function interface is disabled > configure: error: libffi library and headers are required > configure: error: ./configure failed for main > > Installed libffi and devel files to same result > > > uname -r output for info > > Linux laptop.myhome 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST > 2008 i686 i686 i386 GNU/Linux > > I have successfully complied v2.0 no probs > > Steven Drinnan > > On Thu, 2008-02-21 at 09:37 +0100, Benoit Minisini wrote: > > Hi, > > > > Gambas 2.1 has been released. This is the first gambas version that works > > indifferently on 32 bits and 64 bits system. Finally! > > > > Because of a design flaw, you have to recompile your project when going from > > one architecture to the other, as soon as you use the Pointer datatype in > > your code. Otherwise, Gambas executable aree fully compatible. > > > > This flaw design is fixed in the Gambas 3 development version. > > > > The IDE now fully supports the development of component projects, i.e. > > components written in Gambas. It can make binary packages for these > > components too, but Ubuntu and Debian distributions are not supported at the > > moment. > > > > There are a lot of bug fixes too, you can see them in the ChangeLog as usual. > > > > To test a component project, just install it by checking the option in > > the "make executable" dialog. The component will be installed in your home > > directory, and the IDE will immediately display the controls defined by this > > component in its toolbox. > > > > Developing a component needs some documentation yet. I hope I will be able to > > write it soon... Anyway, you can ask questions on the mailing-list as usual. > > > > Regards, > > > -------------- next part -------------- > checking whether to enable maintainer-specific portions of Makefiles... no > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > configure: creating ./config.status > config.status: creating Makefile > config.status: creating config.h > config.status: config.h is unchanged > === configuring in main (/home/steven/Desktop/gambas2-2.1.0/main) > configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking build system type... i686-pc-linux-gnu > checking for style of include used by make... GNU > checking whether to enable maintainer-specific portions of Makefiles... no > checking host system type... i686-pc-linux-gnu > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking dependency style of gcc... gcc3 > checking how to run the C preprocessor... gcc -E > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking dependency style of g++... gcc3 > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln -s works... yes > checking whether make sets $(MAKE)... (cached) yes > checking for setenv... yes > checking for unsetenv... yes > checking for getdomainname... yes > checking for getpt... yes > checking for ccache... /usr/bin/ccache > checking for main in -lm... yes > checking for main in -lz... yes > checking for main in -lgcc_s... yes > checking for main in -lstdc++... yes > checking target system... LINUX > checking which extension is used for shared libraries... .so > checking for threading compiler options... -D_REENTRANT > checking for threading linker options... -lpthread > checking for mathematic libraries... -lm > checking for external gettext library... > checking CFLAGS for gcc -fvisibility=hidden... -fvisibility=hidden > checking for a sed that does not truncate output... /bin/sed > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for ld used by ccache gcc... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking for /usr/bin/ld option to reload object files... -r > checking for BSD-compatible nm... /usr/bin/nm -B > checking how to recognize dependent libraries... pass_all > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking dlfcn.h usability... yes > checking dlfcn.h presence... yes > checking for dlfcn.h... yes > checking how to run the C++ preprocessor... ccache g++ -E > checking for g77... g77 > checking whether we are using the GNU Fortran 77 compiler... yes > checking whether g77 accepts -g... yes > checking the maximum length of command line arguments... 98304 > checking command to parse /usr/bin/nm -B output from ccache gcc object... ok > checking for objdir... .libs > checking for ar... ar > checking for ranlib... ranlib > checking for strip... strip > checking if ccache gcc supports -fno-rtti -fno-exceptions... no > checking for ccache gcc option to produce PIC... -fPIC > checking if ccache gcc PIC flag -fPIC works... yes > checking if ccache gcc static flag -static works... yes > checking if ccache gcc supports -c -o file.o... yes > checking whether the ccache gcc linker (/usr/bin/ld) supports shared libraries... yes > checking whether -lc should be explicitly linked in... no > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking for shl_load... no > checking for shl_load in -ldld... no > checking for dlopen... no > checking for dlopen in -ldl... yes > checking whether a program can dlopen itself... yes > checking whether a statically linked program can dlopen itself... no > checking if libtool supports shared libraries... yes > checking whether to build shared libraries... yes > checking whether to build static libraries... no > configure: creating libtool > appending configuration tag "CXX" to libtool > checking for ld used by ccache g++... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries... yes > checking for ccache g++ option to produce PIC... -fPIC > checking if ccache g++ PIC flag -fPIC works... yes > checking if ccache g++ static flag -static works... yes > checking if ccache g++ supports -c -o file.o... yes > checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries... yes > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > appending configuration tag "F77" to libtool > checking if libtool supports shared libraries... yes > checking whether to build shared libraries... yes > checking whether to build static libraries... no > checking for g77 option to produce PIC... -fPIC > checking if g77 PIC flag -fPIC works... yes > checking if g77 static flag -static works... yes > checking if g77 supports -c -o file.o... yes > checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether ccache gcc and cc understand -c and -o together... yes > checking for external internationalization library headers... /usr/include/ > checking for external internationalization library libraries... no > * Failed to find file libintl.so > configure: This library should be located inside the system C library > checking for optional external charset conversion library headers... /usr/include/ > checking for optional external charset conversion library libraries... no > * Failed to find file libiconv.so > configure: This library must be located inside the C library > checking for foreign function interface headers... no > * Failed to find file ffi.h > checking for foreign function interface libraries... /usr/lib/ > > ------------------------------ > > Message: 4 > Date: Fri, 22 Feb 2008 13:39:28 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Release of Gambas 2.1 > To: mailing list for gambas users > Message-ID: <200802221339.28586.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-15" > > On vendredi 22 f?vrier 2008, Steven Drinnan wrote: > > Compiling error. > > > > I have just downloaded the latest source code and tried to compile it. > > Here is the configure output. I get the following error at the end > > > > configure: WARNING: *** foreign function interface is disabled > > configure: error: libffi library and headers are required > > configure: error: ./configure failed for main > > > > Installed libffi and devel files to same result > > > > > > Are you sure? What is your distribution? What is the full output of configure? > Where are the libffi header files installed? > > -- > Benoit Minisini > > > From gambas at ...1... Sun Feb 24 09:13:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 09:13:49 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <1203817784.3128.8.camel@...1857...> References: <200802210937.05088.gambas@...1...> <200802221339.28586.gambas@...1...> <1203817784.3128.8.camel@...1857...> Message-ID: <200802240913.49422.gambas@...1...> On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > I am sure rpm query > > libffi-3.0.1-1.fc8 > and > libffi-devel-3.0.1-1.fc8 > > and i am running Fedora 8 > > where they are installed - the default location as I installed via RPM > > As for the config file I thought I attached it to the email last time > but you can download it here > > www.sjdsoft.hk/outputconfig.txt > > Many thanks for your help > > Steven > Where are the libffi headers installed on Fedora 8? -- Benoit Minisini From gambas at ...1... Sun Feb 24 09:16:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 09:16:13 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <1203823313.14800.4.camel@...37...> References: <1203823313.14800.4.camel@...37...> Message-ID: <200802240916.13529.gambas@...1...> On dimanche 24 f?vrier 2008, Audiossis wrote: > Hi all, > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > returning an > integer from an external function appears to be broken. > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > Gambas > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > where > it still doesn't work. > > Snippet...... > > > > > PUBLIC rInit AS Integer > LIBRARY "libusb-0.1" > > PRIVATE EXTERN usb_init() AS Integer > > PUBLIC FUNCTION init() > > rInit = usb_init() > > END > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > integer > to the rInit variable, letting me know of the success or failure of the > libusb init routine. > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > Wanted > Integer, got Function instead." > > This error is not related to the particular function being called and > happens > with ALL external functions I am calling from the libusb library. I > even > regressed back to Gambas 2.0.0 just to verify that I hadn't > accidentally > screwed up my code and sure enough the program started working again. > > Is this a bug with the new version? or has the syntax for returning an > integer/string/variant from an external function changed? > > Any help would be appreciated! > > Thanks in advance, > > Ben This is a bug. What a shame if was not detected before... -- Benoit Minisini From gambas at ...1... Sun Feb 24 09:30:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 09:30:08 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802240916.13529.gambas@...1...> References: <1203823313.14800.4.camel@...37...> <200802240916.13529.gambas@...1...> Message-ID: <200802240930.08515.gambas@...1...> On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > On dimanche 24 f?vrier 2008, Audiossis wrote: > > Hi all, > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > > returning an > > integer from an external function appears to be broken. > > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > > Gambas > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > > where > > it still doesn't work. > > > > Snippet...... > > > > > > > > > > PUBLIC rInit AS Integer > > LIBRARY "libusb-0.1" > > > > PRIVATE EXTERN usb_init() AS Integer > > > > PUBLIC FUNCTION init() > > > > rInit = usb_init() > > > > END > > > > > > > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > > integer > > to the rInit variable, letting me know of the success or failure of the > > libusb init routine. > > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > > Wanted > > Integer, got Function instead." > > > > This error is not related to the particular function being called and > > happens > > with ALL external functions I am calling from the libusb library. I > > even > > regressed back to Gambas 2.0.0 just to verify that I hadn't > > accidentally > > screwed up my code and sure enough the program started working again. > > > > Is this a bug with the new version? or has the syntax for returning an > > integer/string/variant from an external function changed? > > > > Any help would be appreciated! > > > > Thanks in advance, > > > > Ben > > This is a bug. What a shame if was not detected before... I catched the guilty guy. Laurent found fun to disable the external function management just for OpenBSD, but he actually disabled it for every OS! He fixed the problem, but just after the release of Gambas 2.2. Well let's make gambas 2.2.1... -- Benoit Minisini From gambas at ...1... Sun Feb 24 10:38:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 10:38:57 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802240930.08515.gambas@...1...> References: <1203823313.14800.4.camel@...37...> <200802240916.13529.gambas@...1...> <200802240930.08515.gambas@...1...> Message-ID: <200802241038.57274.gambas@...1...> On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > On dimanche 24 f?vrier 2008, Audiossis wrote: > > > Hi all, > > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > > > returning an > > > integer from an external function appears to be broken. > > > > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > > > Gambas > > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > > > where > > > it still doesn't work. > > > > > > Snippet...... > > > > > > > > > > > > > > > PUBLIC rInit AS Integer > > > LIBRARY "libusb-0.1" > > > > > > PRIVATE EXTERN usb_init() AS Integer > > > > > > PUBLIC FUNCTION init() > > > > > > rInit = usb_init() > > > > > > END > > > > > > > > > > > > > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > > > integer > > > to the rInit variable, letting me know of the success or failure of the > > > libusb init routine. > > > > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > > > Wanted > > > Integer, got Function instead." > > > > > > This error is not related to the particular function being called and > > > happens > > > with ALL external functions I am calling from the libusb library. I > > > even > > > regressed back to Gambas 2.0.0 just to verify that I hadn't > > > accidentally > > > screwed up my code and sure enough the program started working again. > > > > > > Is this a bug with the new version? or has the syntax for returning an > > > integer/string/variant from an external function changed? > > > > > > Any help would be appreciated! > > > > > > Thanks in advance, > > > > > > Ben > > > > This is a bug. What a shame if was not detected before... > > I catched the guilty guy. Laurent found fun to disable the external > function management just for OpenBSD, but he actually disabled it for every > OS! He fixed the problem, but just after the release of Gambas 2.2. > > Well let's make gambas 2.2.1... The bug has been fixed. I have just uploaded the 2.2.1 source archive on sourceforge. -- Benoit Minisini From gbv at ...1076... Sun Feb 24 12:35:17 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 24 Feb 2008 11:35:17 +0000 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802240930.08515.gambas@...1...> References: <1203823313.14800.4.camel@...37...> <200802240916.13529.gambas@...1...> <200802240930.08515.gambas@...1...> Message-ID: <200802241135.17571.gbv@...1076...> El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > I catched the guilty guy. Laurent found fun to disable the external > function management just for OpenBSD, but he actually disabled it for every > OS! He fixed the problem, but just after the release of Gambas 2.2. > > Well let's make gambas 2.2.1... Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to release the rpms after 2.2.1 ? Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gambas at ...1... Sun Feb 24 12:40:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 12:40:58 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802241135.17571.gbv@...1076...> References: <1203823313.14800.4.camel@...37...> <200802240930.08515.gambas@...1...> <200802241135.17571.gbv@...1076...> Message-ID: <200802241240.58788.gambas@...1...> On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote: > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > > I catched the guilty guy. Laurent found fun to disable the external > > function management just for OpenBSD, but he actually disabled it for > > every OS! He fixed the problem, but just after the release of Gambas 2.2. > > > > Well let's make gambas 2.2.1... > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to > release the rpms after 2.2.1 ? > > Guillermo 2.2.0 is broken, you must make the packages again! Sorry for that... -- Benoit Minisini From gbv at ...1076... Sun Feb 24 12:41:13 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 24 Feb 2008 11:41:13 +0000 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802241038.57274.gambas@...1...> References: <1203823313.14800.4.camel@...37...> <200802240930.08515.gambas@...1...> <200802241038.57274.gambas@...1...> Message-ID: <200802241141.13987.gbv@...1076...> El Sunday 24 February 2008 09:38:57 Benoit Minisini escribi?: > > Well let's make gambas 2.2.1... > > The bug has been fixed. I have just uploaded the 2.2.1 source archive on > sourceforge. Well, lets begin again to build 2.2.1 rpms packages for opensSUSE 10.3 x86_64. Fortunately I had not released the rpms for 2.2.0. Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gbv at ...1076... Sun Feb 24 12:50:17 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 24 Feb 2008 11:50:17 +0000 Subject: [Gambas-user] =?iso-8859-1?q?Returning_an_integer_from_an_externa?= =?iso-8859-1?q?l_function_broken=3F_Gambas=092=2E1=2E0_and_2=2E2?= =?iso-8859-1?q?=2E0?= In-Reply-To: <200802241240.58788.gambas@...1...> References: <1203823313.14800.4.camel@...37...> <200802241135.17571.gbv@...1076...> <200802241240.58788.gambas@...1...> Message-ID: <200802241150.17860.gbv@...1076...> El Sunday 24 February 2008 11:40:58 Benoit Minisini escribi?: > On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote: > > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > > > > I catched the guilty guy. Laurent found fun to disable the external > > > function management just for OpenBSD, but he actually disabled it for > > > every OS! He fixed the problem, but just after the release of Gambas > > > 2.2. > > > > > > Well let's make gambas 2.2.1... > > > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to > > release the rpms after 2.2.1 ? > > > > Guillermo > > 2.2.0 is broken, you must make the packages again! Sorry for that... Don't worry, these things usually happen. ;-) Regards, Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gambas at ...1... Sun Feb 24 23:04:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 23:04:00 +0100 Subject: [Gambas-user] Litlle survey Message-ID: <200802242304.00581.gambas@...1...> Just a little question about a Gambas development... If I make a component or a control that allows a program to deal with the window manager: - Being able to receive an event when a top-level window is created, destroyed, when the current desktop changes, when the number of desktops changes, when some window property changes... - Being able to modify any top-level window property. This component will be based on QT and some code taken from KDE 3.x. Will people be interested in that? The goal would be making a light desktop environment based on Gambas and QT. Light, because a lot of thing could run in the same process: the taskbar, the pager, the applets, the file manager, the desktop... And so, the startup time of the desktop would be equivalent to the startup time of the Gambas IDE. I need to know, as I may have the time to make the above component, but not the desktop environment itself. Tell me what you think about that! -- Benoit Minisini From rterry at ...1822... Sun Feb 24 23:33:16 2008 From: rterry at ...1822... (richard terry) Date: Mon, 25 Feb 2008 09:33:16 +1100 Subject: [Gambas-user] non-shrinking combo's Message-ID: <200802250933.16567.rterry@...1822...> Has anyone noticed that if you put combo's in situation where they should res-size that they don't (Qt), unlike textboxes/labels etc. Comments? -------------- next part -------------- A non-text attachment was scrubbed... Name: controls_resize_not_combo.png Type: image/png Size: 20210 bytes Desc: not available URL: From gambas at ...1... Sun Feb 24 23:38:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 24 Feb 2008 23:38:53 +0100 Subject: [Gambas-user] non-shrinking combo's In-Reply-To: <200802250933.16567.rterry@...1822...> References: <200802250933.16567.rterry@...1822...> Message-ID: <200802242338.53298.gambas@...1...> On dimanche 24 f?vrier 2008, richard terry wrote: > Has anyone noticed that if you put combo's in situation where they should > res-size that they don't (Qt), unlike textboxes/labels etc. > > Comments? Yes, Qt prevents its combo-boxes to shrink smaller than their font height plus some margin. -- Benoit Minisini From steven at ...1545... Mon Feb 25 01:59:28 2008 From: steven at ...1545... (Steven Drinnan) Date: Mon, 25 Feb 2008 08:59:28 +0800 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802240913.49422.gambas@...1...> References: <200802210937.05088.gambas@...1...> <200802221339.28586.gambas@...1...> <1203817784.3128.8.camel@...1857...> <200802240913.49422.gambas@...1...> Message-ID: <1203901168.4009.0.camel@...1857...> >Where are the libffi headers installed on Fedora 8? I'll have to do some research - your guess is as good as mine On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote: > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > I am sure rpm query > > > > libffi-3.0.1-1.fc8 > > and > > libffi-devel-3.0.1-1.fc8 > > > > and i am running Fedora 8 > > > > where they are installed - the default location as I installed via RPM > > > > As for the config file I thought I attached it to the email last time > > but you can download it here > > > > www.sjdsoft.hk/outputconfig.txt > > > > Many thanks for your help > > > > Steven > > > > Where are the libffi headers installed on Fedora 8? > From steven at ...1545... Mon Feb 25 02:19:26 2008 From: steven at ...1545... (Steven Drinnan) Date: Mon, 25 Feb 2008 09:19:26 +0800 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802240913.49422.gambas@...1...> References: <200802210937.05088.gambas@...1...> <200802221339.28586.gambas@...1...> <1203817784.3128.8.camel@...1857...> <200802240913.49422.gambas@...1...> Message-ID: <1203902366.4009.7.camel@...1857...> I checked the XML output from RPM and got libffi-devel installs here (checked) /usr/lib/ /usr/lib/libffi-3.0.1/ /usr/lib/libffi-3.0.1/include/ /usr/lib/pkgconfig/ /usr/share/info/ /usr/share/man/man3/ and libffi instals here (checked) /usr/lib/ /usr/share/doc/ /usr/share/doc/libffi-3.0.1/ Steven On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote: > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > I am sure rpm query > > > > libffi-3.0.1-1.fc8 > > and > > libffi-devel-3.0.1-1.fc8 > > > > and i am running Fedora 8 > > > > where they are installed - the default location as I installed via RPM > > > > As for the config file I thought I attached it to the email last time > > but you can download it here > > > > www.sjdsoft.hk/outputconfig.txt > > > > Many thanks for your help > > > > Steven > > > > Where are the libffi headers installed on Fedora 8? > From sourceforge-raindog2 at ...94... Mon Feb 25 03:03:27 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 24 Feb 2008 21:03:27 -0500 Subject: [Gambas-user] Litlle survey In-Reply-To: <200802242304.00581.gambas@...1...> References: <200802242304.00581.gambas@...1...> Message-ID: <200802242103.27727.sourceforge-raindog2@...94...> On Sunday 24 February 2008 17:04, Benoit Minisini wrote: > The goal would be making a light desktop environment based on > Gambas and QT. Light, because a lot of thing could run in the same > process: the taskbar, the pager, the applets, the file manager, the > desktop... And so, the startup time of the desktop would be > equivalent to the startup time of the Gambas IDE. Well, if nothing else, I could finally replace the temperature/wind chill/heat index applet I wrote for KDE 2 and have kept limping along since then because KDE applets have to be .so files ;) I think it sounds great, but I hope Gambas wouldn't someday become dependent on being run within that desktop environment. Rob From audiossis at ...867... Mon Feb 25 06:05:48 2008 From: audiossis at ...867... (Audiossis) Date: Mon, 25 Feb 2008 16:05:48 +1100 Subject: [Gambas-user] Returning an integer from an external function broken? In-Reply-To: References: Message-ID: <1203915948.5463.4.camel@...37...> > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 24 Feb 2008 09:13:49 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Release of Gambas 2.1 > To: mailing list for gambas users > Message-ID: <200802240913.49422.gambas at ...1...> > Content-Type: text/plain; charset="utf-8" > > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > I am sure rpm query > > > > libffi-3.0.1-1.fc8 > > and > > libffi-devel-3.0.1-1.fc8 > > > > and i am running Fedora 8 > > > > where they are installed - the default location as I installed via RPM > > > > As for the config file I thought I attached it to the email last time > > but you can download it here > > > > www.sjdsoft.hk/outputconfig.txt > > > > Many thanks for your help > > > > Steven > > > > Where are the libffi headers installed on Fedora 8? > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 2 > Date: Sun, 24 Feb 2008 09:16:13 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802240916.13529.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On dimanche 24 f?vrier 2008, Audiossis wrote: > > Hi all, > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > > returning an > > integer from an external function appears to be broken. > > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > > Gambas > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > > where > > it still doesn't work. > > > > Snippet...... > > > > > > > > > > PUBLIC rInit AS Integer > > LIBRARY "libusb-0.1" > > > > PRIVATE EXTERN usb_init() AS Integer > > > > PUBLIC FUNCTION init() > > > > rInit = usb_init() > > > > END > > > > > > > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > > integer > > to the rInit variable, letting me know of the success or failure of the > > libusb init routine. > > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > > Wanted > > Integer, got Function instead." > > > > This error is not related to the particular function being called and > > happens > > with ALL external functions I am calling from the libusb library. I > > even > > regressed back to Gambas 2.0.0 just to verify that I hadn't > > accidentally > > screwed up my code and sure enough the program started working again. > > > > Is this a bug with the new version? or has the syntax for returning an > > integer/string/variant from an external function changed? > > > > Any help would be appreciated! > > > > Thanks in advance, > > > > Ben > > This is a bug. What a shame if was not detected before... > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 3 > Date: Sun, 24 Feb 2008 09:30:08 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802240930.08515.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > On dimanche 24 f?vrier 2008, Audiossis wrote: > > > Hi all, > > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > > > returning an > > > integer from an external function appears to be broken. > > > > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > > > Gambas > > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > > > where > > > it still doesn't work. > > > > > > Snippet...... > > > > > > > > > > > > > > > PUBLIC rInit AS Integer > > > LIBRARY "libusb-0.1" > > > > > > PRIVATE EXTERN usb_init() AS Integer > > > > > > PUBLIC FUNCTION init() > > > > > > rInit = usb_init() > > > > > > END > > > > > > > > > > > > > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > > > integer > > > to the rInit variable, letting me know of the success or failure of the > > > libusb init routine. > > > > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > > > Wanted > > > Integer, got Function instead." > > > > > > This error is not related to the particular function being called and > > > happens > > > with ALL external functions I am calling from the libusb library. I > > > even > > > regressed back to Gambas 2.0.0 just to verify that I hadn't > > > accidentally > > > screwed up my code and sure enough the program started working again. > > > > > > Is this a bug with the new version? or has the syntax for returning an > > > integer/string/variant from an external function changed? > > > > > > Any help would be appreciated! > > > > > > Thanks in advance, > > > > > > Ben > > > > This is a bug. What a shame if was not detected before... > > I catched the guilty guy. Laurent found fun to disable the external function > management just for OpenBSD, but he actually disabled it for every OS! He > fixed the problem, but just after the release of Gambas 2.2. > > Well let's make gambas 2.2.1... > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 4 > Date: Sun, 24 Feb 2008 10:38:57 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802241038.57274.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > On dimanche 24 f?vrier 2008, Audiossis wrote: > > > > Hi all, > > > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7), > > > > returning an > > > > integer from an external function appears to be broken. > > > > > > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to > > > > Gambas > > > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0 > > > > where > > > > it still doesn't work. > > > > > > > > Snippet...... > > > > > > > > > > > > > > > > > > > > PUBLIC rInit AS Integer > > > > LIBRARY "libusb-0.1" > > > > > > > > PRIVATE EXTERN usb_init() AS Integer > > > > > > > > PUBLIC FUNCTION init() > > > > > > > > rInit = usb_init() > > > > > > > > END > > > > > > > > > > > > > > > > > > > > > > > > In versions previous to Gambas 2.1.0 the external function returns an > > > > integer > > > > to the rInit variable, letting me know of the success or failure of the > > > > libusb init routine. > > > > > > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch: > > > > Wanted > > > > Integer, got Function instead." > > > > > > > > This error is not related to the particular function being called and > > > > happens > > > > with ALL external functions I am calling from the libusb library. I > > > > even > > > > regressed back to Gambas 2.0.0 just to verify that I hadn't > > > > accidentally > > > > screwed up my code and sure enough the program started working again. > > > > > > > > Is this a bug with the new version? or has the syntax for returning an > > > > integer/string/variant from an external function changed? > > > > > > > > Any help would be appreciated! > > > > > > > > Thanks in advance, > > > > > > > > Ben > > > > > > This is a bug. What a shame if was not detected before... > > > > I catched the guilty guy. Laurent found fun to disable the external > > function management just for OpenBSD, but he actually disabled it for every > > OS! He fixed the problem, but just after the release of Gambas 2.2. > > > > Well let's make gambas 2.2.1... > > The bug has been fixed. I have just uploaded the 2.2.1 source archive on > sourceforge. > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 5 > Date: Sun, 24 Feb 2008 11:35:17 +0000 > From: Guillermo Ballester Valor > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802241135.17571.gbv at ...1076...> > Content-Type: text/plain; charset="iso-8859-1" > > > > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > > I catched the guilty guy. Laurent found fun to disable the external > > function management just for OpenBSD, but he actually disabled it for every > > OS! He fixed the problem, but just after the release of Gambas 2.2. > > > > Well let's make gambas 2.2.1... > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to > release the rpms after 2.2.1 ? > > Guillermo > > -- > Guillermo Ballester Valor > gbv at ...1076... > http://www.oxixares.com/~gbv > Ogijares, Granada - SPAIN > > > > ------------------------------ > > Message: 6 > Date: Sun, 24 Feb 2008 12:40:58 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802241240.58788.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote: > > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > > > > I catched the guilty guy. Laurent found fun to disable the external > > > function management just for OpenBSD, but he actually disabled it for > > > every OS! He fixed the problem, but just after the release of Gambas 2.2. > > > > > > Well let's make gambas 2.2.1... > > > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to > > release the rpms after 2.2.1 ? > > > > Guillermo > > 2.2.0 is broken, you must make the packages again! Sorry for that... > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 7 > Date: Sun, 24 Feb 2008 11:41:13 +0000 > From: Guillermo Ballester Valor > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802241141.13987.gbv at ...1076...> > Content-Type: text/plain; charset="iso-8859-1" > > El Sunday 24 February 2008 09:38:57 Benoit Minisini escribi?: > > > Well let's make gambas 2.2.1... > > > > The bug has been fixed. I have just uploaded the 2.2.1 source archive on > > sourceforge. > > Well, lets begin again to build 2.2.1 rpms packages for opensSUSE 10.3 x86_64. > Fortunately I had not released the rpms for 2.2.0. > > Guillermo > > -- > Guillermo Ballester Valor > gbv at ...1076... > http://www.oxixares.com/~gbv > Ogijares, Granada - SPAIN > > > > ------------------------------ > > Message: 8 > Date: Sun, 24 Feb 2008 11:50:17 +0000 > From: Guillermo Ballester Valor > Subject: Re: [Gambas-user] Returning an integer from an external > function broken? Gambas 2.1.0 and 2.2.0 > To: mailing list for gambas users > Message-ID: <200802241150.17860.gbv at ...1076...> > Content-Type: text/plain; charset="iso-8859-1" > > El Sunday 24 February 2008 11:40:58 Benoit Minisini escribi?: > > On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote: > > > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?: > > > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote: > > > > > > > > I catched the guilty guy. Laurent found fun to disable the external > > > > function management just for OpenBSD, but he actually disabled it for > > > > every OS! He fixed the problem, but just after the release of Gambas > > > > 2.2. > > > > > > > > Well let's make gambas 2.2.1... > > > > > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to > > > release the rpms after 2.2.1 ? > > > > > > Guillermo > > > > 2.2.0 is broken, you must make the packages again! Sorry for that... > > Don't worry, these things usually happen. ;-) > > Regards, > > Guillermo > > > -- > Guillermo Ballester Valor > gbv at ...1076... > http://www.oxixares.com/~gbv > Ogijares, Granada - SPAIN > > Thanks guys, that got it working!! Regards Ben. From lordheavym at ...626... Mon Feb 25 08:36:00 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 25 Feb 2008 08:36:00 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <1203902366.4009.7.camel@...1857...> References: <200802210937.05088.gambas@...1...> <200802240913.49422.gambas@...1...> <1203902366.4009.7.camel@...1857...> Message-ID: <200802250836.01031.lordheavym@...626...> Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez ?crit?: > I checked the XML output from RPM and got > libffi-devel installs here (checked) > > /usr/lib/ > /usr/lib/libffi-3.0.1/ > /usr/lib/libffi-3.0.1/include/ > /usr/lib/pkgconfig/ > /usr/share/info/ > /usr/share/man/man3/ > > > and libffi instals here (checked) > > /usr/lib/ > /usr/share/doc/ > /usr/share/doc/libffi-3.0.1/ > > > > Steven > > On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote: > > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > > I am sure rpm query > > > > > > libffi-3.0.1-1.fc8 > > > and > > > libffi-devel-3.0.1-1.fc8 > > > > > > and i am running Fedora 8 > > > > > > where they are installed - the default location as I installed via RPM > > > > > > As for the config file I thought I attached it to the email last time > > > but you can download it here > > > > > > www.sjdsoft.hk/outputconfig.txt > > > > > > Many thanks for your help > > > > > > Steven > > > > Where are the libffi headers installed on Fedora 8? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Ah ! a pkg-config entry :-) Benoit ? ++ From gambas at ...1... Mon Feb 25 11:44:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Feb 2008 11:44:12 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802250836.01031.lordheavym@...626...> References: <200802210937.05088.gambas@...1...> <1203902366.4009.7.camel@...1857...> <200802250836.01031.lordheavym@...626...> Message-ID: <200802251144.12159.gambas@...1...> On lundi 25 f?vrier 2008, Laurent Carlier wrote: > Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez ?crit?: > > I checked the XML output from RPM and got > > libffi-devel installs here (checked) > > > > /usr/lib/ > > /usr/lib/libffi-3.0.1/ > > /usr/lib/libffi-3.0.1/include/ > > /usr/lib/pkgconfig/ > > /usr/share/info/ > > /usr/share/man/man3/ > > > > > > and libffi instals here (checked) > > > > /usr/lib/ > > /usr/share/doc/ > > /usr/share/doc/libffi-3.0.1/ > > > > > > > > Steven > > > > On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote: > > > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > > > I am sure rpm query > > > > > > > > libffi-3.0.1-1.fc8 > > > > and > > > > libffi-devel-3.0.1-1.fc8 > > > > > > > > and i am running Fedora 8 > > > > > > > > where they are installed - the default location as I installed via > > > > RPM > > > > > > > > As for the config file I thought I attached it to the email last time > > > > but you can download it here > > > > > > > > www.sjdsoft.hk/outputconfig.txt > > > > > > > > Many thanks for your help > > > > > > > > Steven > > > > > > Where are the libffi headers installed on Fedora 8? > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Ah ! a pkg-config entry :-) Benoit ? > > ++ > I can' tcheck both a list of paths and pkg-config. Or maybe I can insert `pkg-config ...` in the list of paths? -- Benoit Minisini From lordheavym at ...626... Mon Feb 25 13:58:33 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 25 Feb 2008 13:58:33 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802251144.12159.gambas@...1...> References: <200802210937.05088.gambas@...1...> <200802250836.01031.lordheavym@...626...> <200802251144.12159.gambas@...1...> Message-ID: <200802251358.33856.lordheavym@...626...> Le Monday 25 February 2008 11:44:12 Benoit Minisini, vous avez ?crit?: > On lundi 25 f?vrier 2008, Laurent Carlier wrote: > > Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez ?crit?: > > > I checked the XML output from RPM and got > > > libffi-devel installs here (checked) > > > > > > /usr/lib/ > > > /usr/lib/libffi-3.0.1/ > > > /usr/lib/libffi-3.0.1/include/ > > > /usr/lib/pkgconfig/ > > > /usr/share/info/ > > > /usr/share/man/man3/ > > > > > > > > > and libffi instals here (checked) > > > > > > /usr/lib/ > > > /usr/share/doc/ > > > /usr/share/doc/libffi-3.0.1/ > > > > > > > > > > > > Steven > > > > > > On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote: > > > > On dimanche 24 f?vrier 2008, Steven Drinnan wrote: > > > > > I am sure rpm query > > > > > > > > > > libffi-3.0.1-1.fc8 > > > > > and > > > > > libffi-devel-3.0.1-1.fc8 > > > > > > > > > > and i am running Fedora 8 > > > > > > > > > > where they are installed - the default location as I installed via > > > > > RPM > > > > > > > > > > As for the config file I thought I attached it to the email last > > > > > time but you can download it here > > > > > > > > > > www.sjdsoft.hk/outputconfig.txt > > > > > > > > > > Many thanks for your help > > > > > > > > > > Steven > > > > > > > > Where are the libffi headers installed on Fedora 8? > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Ah ! a pkg-config entry :-) Benoit ? > > > > ++ > > I can' tcheck both a list of paths and pkg-config. Or maybe I can insert > `pkg-config ...` in the list of paths? This can be done in configure.ac: --8<-- dnl ---- Check for ffi library GB_COMPONENT_PKG_CONFIG( ffi, FFI, [foreign function interface], [], libffi) if test -z "$FFI_LIB"; then GB_COMPONENT( ffi, FFI, [foreign function interface], [], [GB_FIND(ffi.h, /usr/local /usr /usr/lib /usr/lib/gcc/*/*, include ffi/include)], [GB_FIND(libffi.$SHLIBEXT, /usr/local /usr, lib)], [-lffi]) fi if test -z "$FFI_LIB"; then AC_MSG_ERROR([libffi library and headers are required]) fi --8<-- And in gbx/Makefile.am: --8<-- gbx2_LDADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @GBX_THREAD_LIB@ @TTY_LIB@ @FFI_LIB@ gbx2_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS) gb_la_LIBADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @GBX_THREAD_LIB@ @TTY_LIB@ @FFI_LIB@ gb_la_LDFLAGS = -module @LD_FLAGS@ @FFI_LDFLAGS@ gb_la_CFLAGS = -DGBX_INFO $(AM_CFLAGS) -O0 --8<-- Calling GB_COMPONENT_PKG_CONFIG() first take care of FFI_LDFLAGS. ++ From horechuk at ...981... Mon Feb 25 15:38:50 2008 From: horechuk at ...981... (Paul Horechuk) Date: Mon, 25 Feb 2008 09:38:50 -0500 Subject: [Gambas-user] Error on launch of Gambas 3.0 In-Reply-To: <200802221514.20173.horechuk@...981...> References: <15624254.post@...1379...> <15641296.post@...1379...> <200802221514.20173.horechuk@...981...> Message-ID: <200802250938.50838.horechuk@...981...> Just as a followup... On February 22, 2008, Paul Horechuk wrote: > On February 22, 2008, 2020 wrote: > > Hello folk, > > > > 1): I installed the development packages, but I can not resolved the > > disabled component gb.qte, any ideas. > > > > ************************************************************ > > THESE COMPONENTS ARE DISABLED: > > - gb.qte > > ************************************************************ > > I've found that the QT Embedded functions are not what I normally use. > These are usually if you develop for handhelds and phones. > > > 2): After the installation I ran gambas3, unexpected error; > > > > Settings.Load.59: Syntax error in settings file at line #20: Type > > mismatch: wanted Integer, got String instead > > 0: Settings.Load.59 > > 1: Settings._new.97 > > 2: Project.Main.143 > > I had the exact same error last week. The best I could tell, it was an > older version of the settings file. It didn't get replaced on the > reinstall. I ended up doing: > rm -rf /usr/local/share/gambas3 > rm -rf /usr/local/lib/gambas3 > rm -rf ~/.config/gambas > > The last one is the user environment as in /home/$USER/.config/gambas. > One of these was for a prior version. Following this, a make install gave > me a working system. This error has occurred again. No changes were made to svn versions (stil 1077). The system was restarted and upon launching Gambas3, there were complaints about the settings. I did a rm -rf ~/.config/gambas and gambas3 was able to run. Perhaps the "Save Project" is corrupting the settings file? > > My environment was Kubuntu 7.04 64bit. > > > Thanks in advance. > > > > Sylvain. -- Paul Horechuk Think Free Use Open Source Software ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From nando_f at ...951... Mon Feb 25 16:15:03 2008 From: nando_f at ...951... (nando) Date: Mon, 25 Feb 2008 10:15:03 -0500 Subject: [Gambas-user] Litlle survey In-Reply-To: <200802242304.00581.gambas@...1...> References: <200802242304.00581.gambas@...1...> Message-ID: <20080225151254.M33889@...951...> I think it is an interesting idea being able to deal with the desktop. -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Sun, 24 Feb 2008 23:04:00 +0100 Subject: [Gambas-user] Litlle survey > Just a little question about a Gambas development... > > If I make a component or a control that allows a program to deal with the > window manager: > - Being able to receive an event when a top-level window is created, > destroyed, when the current desktop changes, when the number of desktops > changes, when some window property changes... > - Being able to modify any top-level window property. > > This component will be based on QT and some code taken from KDE 3.x. > > Will people be interested in that? > > The goal would be making a light desktop environment based on Gambas and QT. > Light, because a lot of thing could run in the same process: the taskbar, the > pager, the applets, the file manager, the desktop... And so, the startup time > of the desktop would be equivalent to the startup time of the Gambas IDE. > > I need to know, as I may have the time to make the above component, but not > the desktop environment itself. > > Tell me what you think about that! > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Mon Feb 25 16:19:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Feb 2008 16:19:12 +0100 Subject: [Gambas-user] Litlle survey In-Reply-To: <200802242103.27727.sourceforge-raindog2@...94...> References: <200802242304.00581.gambas@...1...> <200802242103.27727.sourceforge-raindog2@...94...> Message-ID: <200802251619.12317.gambas@...1...> On lundi 25 f?vrier 2008, Rob wrote: > On Sunday 24 February 2008 17:04, Benoit Minisini wrote: > > The goal would be making a light desktop environment based on > > Gambas and QT. Light, because a lot of thing could run in the same > > process: the taskbar, the pager, the applets, the file manager, the > > desktop... And so, the startup time of the desktop would be > > equivalent to the startup time of the Gambas IDE. > > Well, if nothing else, I could finally replace the temperature/wind > chill/heat index applet I wrote for KDE 2 and have kept limping along > since then because KDE applets have to be .so files ;) > > I think it sounds great, but I hope Gambas wouldn't someday become > dependent on being run within that desktop environment. > > Rob > No dependence at all. It is just a program idea that needs a dedicated component. -- Benoit Minisini From gambas at ...1... Mon Feb 25 16:37:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Feb 2008 16:37:27 +0100 Subject: [Gambas-user] Bug with Gambas 3 IDE Message-ID: <200802251637.27883.gambas@...1...> It was a bug in the integer->string conversion routine of the interpreter that I fixed in the revision #1110. CStr() behaves badly in other contexts, both in Gambas 2 and Gambas 3. I will try to fix that later. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Mon Feb 25 17:01:43 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 25 Feb 2008 08:01:43 -0800 (PST) Subject: [Gambas-user] Litlle survey Message-ID: <367743.76635.qm@...1671...> It sounds great... it will be useful can administrate the desktop slds ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, February 25, 2008 9:19:12 AM Subject: Re: [Gambas-user] Litlle survey On lundi 25 f?vrier 2008, Rob wrote: > On Sunday 24 February 2008 17:04, Benoit Minisini wrote: > > The goal would be making a light desktop environment based on > > Gambas and QT. Light, because a lot of thing could run in the same > > process: the taskbar, the pager, the applets, the file manager, the > > desktop... And so, the startup time of the desktop would be > > equivalent to the startup time of the Gambas IDE. > > Well, if nothing else, I could finally replace the temperature/wind > chill/heat index applet I wrote for KDE 2 and have kept limping along > since then because KDE applets have to be .so files ;) > > I think it sounds great, but I hope Gambas wouldn't someday become > dependent on being run within that desktop environment. > > Rob > No dependence at all. It is just a program idea that needs a dedicated component. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From gbv at ...1076... Mon Feb 25 18:44:35 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Mon, 25 Feb 2008 17:44:35 +0000 Subject: [Gambas-user] gambas2 2.2.1 rpms for openSUSE 10.3 Message-ID: <200802251744.36165.gbv@...1076...> Hi, Finally we can build 2.2.1 rpms for openSUSE 10.3 x86_64. Thanks Benoit and the developer's team!. You can now get download them from here: http://ftp4.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/x86_64 http://ftp5.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/x86_64 tomorrow morning the i586 ones will be synced. They will be available here: http://ftp4.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/i586 http://ftp5.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/i586 and source rpm http://ftp4.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/src http://ftp5.gwdg.de/pub/linux/misc/suser-gbv/rpms/10.3/RPMS/src Enjoy, Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From kari.laine at ...1400... Mon Feb 25 21:12:30 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 25 Feb 2008 22:12:30 +0200 Subject: [Gambas-user] Gambas 2.2.1 compilation problem Message-ID: <47C3212E.6050002@...1400...> Hi All, could someone help with problem to compile GAMBAS on SUSE 10.2 . When I try to run ./configure I get following errors. Failed to find file libintl.so Failed to find file libiconv.so Failed to find file libffi.so I have no idea how to fix this. I havent't found those files from the RPM-packages. Same problem with Debian sarge. Best Regards Kari Laine From dcamposf at ...626... Mon Feb 25 21:24:54 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 25 Feb 2008 21:24:54 +0100 Subject: [Gambas-user] Litlle survey In-Reply-To: <367743.76635.qm@...1671...> References: <367743.76635.qm@...1671...> Message-ID: <7259b5ae0802251224hf4f9a34i811361d5487568ab@...627...> I think we should focus on removing bugs prior to start a new project, I think it is really too soon to start that kind of project, but if you really want to do it , we have a tool called "GUIA desktop" that could help, even if it is done using gb.gtk.... Daniel 2008/2/25, David Villalobos Cambronero : > It sounds great... it will be useful can administrate the desktop > > slds > > > ----- Original Message ---- > From: Benoit Minisini > > To: mailing list for gambas users > Sent: Monday, February 25, 2008 9:19:12 AM > Subject: Re: [Gambas-user] Litlle survey > > > On > lundi > 25 > f?vrier > 2008, > Rob > wrote: > > > On > Sunday > 24 > February > 2008 > 17:04, > Benoit > Minisini > wrote: > > > > > The > goal > would > be > making > a > light > desktop > environment > based > on > > > > > Gambas > and > QT. > Light, > because > a > lot > of > thing > could > run > in > the > same > > > > > process: > the > taskbar, > the > pager, > the > applets, > the > file > manager, > the > > > > > desktop... > And > so, > the > startup > time > of > the > desktop > would > be > > > > > equivalent > to > the > startup > time > of > the > Gambas > IDE. > > > > > Well, > if > nothing > else, > I > could > finally > replace > the > temperature/wind > > > chill/heat > index > applet > I > wrote > for > KDE > 2 > and > have > kept > limping > along > > > since > then > because > KDE > applets > have > to > be > .so > files > ;) > > > > > I > think > it > sounds > great, > but > I > hope > Gambas > wouldn't > someday > become > > > dependent > on > being > run > within > that > desktop > environment. > > > > > Rob > > > > No > dependence > at > all. > It > is > just > a > program > idea > that > needs > a > dedicated > component. > > -- > Benoit > Minisini > > ------------------------------------------------------------------------- > This > SF.net > email > is > sponsored > by: > Microsoft > Defy > all > challenges. > Microsoft(R) > Visual > Studio > 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user > mailing > list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Mon Feb 25 22:51:27 2008 From: rterry at ...1822... (richard terry) Date: Tue, 26 Feb 2008 08:51:27 +1100 Subject: [Gambas-user] Problem adding new form (2.1,2.2.2) Message-ID: <200802260851.27461.rterry@...1822...> I update my build every day or two, currently 1108. When I'm coding (still learning) I've tended to make a copy of the form I'm working on at a stage to keep as a backup in case I've gone down the wrong track. I noticed that I used to be able to right mouse click > new form > existing, select the form I'm working on, and click ok and it would give my a copy eg frmMyOwn1. In recent time the button seems disabled, so I can't copy the form. Am I doing anything wrong? Richard From epileg at ...626... Mon Feb 25 23:41:13 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Mon, 25 Feb 2008 23:41:13 +0100 Subject: [Gambas-user] Gambas 2.2.1 compilation problem In-Reply-To: <47C3212E.6050002@...1400...> References: <47C3212E.6050002@...1400...> Message-ID: <47C34409.6070709@...626...> En/na Kari Laine ha escrit: > Hi All, > > could someone help with problem to compile GAMBAS on SUSE 10.2 . > When I try to run ./configure I get following errors. > > Failed to find file libintl.so > Failed to find file libiconv.so > Failed to find file libffi.so > > I have no idea how to fix this. I havent't found those files from the > RPM-packages. Same problem with Debian sarge. > > Best Regards > Kari Laine > Hello, I do not have this problem on my Ubuntu 7.10. Gambas2 2.2.1 compiles fine. I don't have libintl.so nor libiconv.so installed on my system but libffi.so and peloadable_libintl.so. In Ubuntu/Debian there is a tool (apt-file) in order to know in what package is a file. Best regards, Ep?leg. From lordheavym at ...626... Mon Feb 25 23:42:23 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 25 Feb 2008 23:42:23 +0100 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <1203902366.4009.7.camel@...1857...> References: <200802210937.05088.gambas@...1...> <200802240913.49422.gambas@...1...> <1203902366.4009.7.camel@...1857...> Message-ID: <200802252342.23116.lordheavym@...626...> Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez ?crit?: > I checked the XML output from RPM and got > libffi-devel installs here (checked) > > /usr/lib/ > /usr/lib/libffi-3.0.1/ > /usr/lib/libffi-3.0.1/include/ > /usr/lib/pkgconfig/ > /usr/share/info/ > /usr/share/man/man3/ > > > and libffi instals here (checked) > > /usr/lib/ > /usr/share/doc/ > /usr/share/doc/libffi-3.0.1/ > > > Can you check svn version 1116 (branches/2.0) ? I've add support for pkg-config with libffi. ++ From smiefert at ...784... Tue Feb 26 14:41:08 2008 From: smiefert at ...784... (smiefert at ...784...) Date: 26 Feb 2008 13:41:08 UT Subject: [Gambas-user] dynamic checkboxes Message-ID: hello, i want to create some checkboxes . how can i do this dynamicaly? i try thsi code below but it dosent work. u think i must create a public collection and add some fields. but how? FOR EACH RESsql COLkundenarten[RESsql["kundenart"]] = NEW Checkbox(PANkundenart) COLkundenarten[RESsql["kundenart"]].text = COLkundenarten[RESsql["kundenart"]] 'PRINT RESsql["kundenart"] NEXT From dcamposf at ...626... Tue Feb 26 17:07:12 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 26 Feb 2008 17:07:12 +0100 Subject: [Gambas-user] dynamic checkboxes In-Reply-To: References: Message-ID: <7259b5ae0802260807y5dde58bfta69c848a9d13a280@...627...> I think you forgot the Show() method 26 Feb 2008 13:41:08 UT, smiefert at ...784... : > hello, > > i want to create some checkboxes . how can i do this dynamicaly? i try thsi code below but it dosent work. > > u think i must create a public collection and add some fields. but how? > > > FOR EACH RESsql > COLkundenarten[RESsql["kundenart"]] = NEW Checkbox(PANkundenart) > COLkundenarten[RESsql["kundenart"]].text = COLkundenarten[RESsql["kundenart"]] > 'PRINT RESsql["kundenart"] > NEXT > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From smiefert at ...784... Wed Feb 27 08:32:19 2008 From: smiefert at ...784... (smiefert at ...784...) Date: 27 Feb 2008 07:32:19 UT Subject: [Gambas-user] for each. How get the key and the value? Message-ID: Hello, how can i get key and value in a for each ? foreach myCollection print key ?! next From audiossis at ...867... Wed Feb 27 13:04:09 2008 From: audiossis at ...867... (Audiossis) Date: Wed, 27 Feb 2008 23:04:09 +1100 Subject: [Gambas-user] Another BUG? Gambas 2.2.1 Message-ID: <1204113849.16780.8.camel@...37...> Hi All, You're probably sick of hearing from me 'cause all I do is complain...... Sorry but here I go again. I think I've found another bug. This time in the Message dialogue. I have tried: Dim Response Response = Message.Question("Do you really want to quit?", "Yes", "No") and Dim Response Response = Message.Warning("Do you really want to quit?", "Yes", "No") Each has the problem that when the dialogue appears all the buttons have the same text as the first! In the two above example Both buttons appear with the text "Yes" even though I have specified that the second button should have the text "No". This also happens with the third button if I specify one. If I change the text on the first button to read "No" and all other buttons to "Yes" then ALL the buttons read "No" despite the fact that the second and third buttons have different text. You can tell me to nick off if you like, I won't be offended :-) Regards, Ben From gambas at ...1... Wed Feb 27 13:13:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Feb 2008 13:13:03 +0100 Subject: [Gambas-user] Another BUG? Gambas 2.2.1 In-Reply-To: <1204113849.16780.8.camel@...37...> References: <1204113849.16780.8.camel@...37...> Message-ID: <200802271313.03484.gambas@...1...> On mercredi 27 f?vrier 2008, Audiossis wrote: > Hi All, > You're probably sick of hearing from me 'cause all I do is > complain...... Not at all. I am always when people reports bugs, *and* give all the needed information to fix it. :-) > > Sorry but here I go again. > > I think I've found another bug. This time in the Message dialogue. > > I have tried: > > Dim Response > > Response = Message.Question("Do you really want to quit?", "Yes", "No") > > and > > Dim Response > > Response = Message.Warning("Do you really want to quit?", "Yes", "No") > > > Each has the problem that when the dialogue appears all the buttons have > the same text as the first! > In the two above example Both buttons appear with the text "Yes" even > though I have specified that the second button should have the text > "No". > This also happens with the third button if I specify one. > > If I change the text on the first button to read "No" and all other > buttons to "Yes" then ALL the buttons read "No" despite the fact that > the second and third buttons have different text. > > > > You can tell me to nick off if you like, I won't be offended :-) > > > Regards, > > Ben > Do you use gb.qt or gb.gtk, or if you use gb.gui, do you run on Gnome/XFCE or KDE? -- Benoit Minisini From gambas at ...1... Wed Feb 27 13:42:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Feb 2008 13:42:11 +0100 Subject: [Gambas-user] Another BUG? Gambas 2.2.1 In-Reply-To: <200802271313.03484.gambas@...1...> References: <1204113849.16780.8.camel@...37...> <200802271313.03484.gambas@...1...> Message-ID: <200802271342.11927.gambas@...1...> On mercredi 27 f?vrier 2008, Benoit Minisini wrote: > Do you use gb.qt or gb.gtk, or if you use gb.gui, do you run on Gnome/XFCE > or KDE? OK, this is a gb.gtk bug. It is fixed in revision 1123. -- Benoit Minisini From gambas at ...1... Wed Feb 27 13:44:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Feb 2008 13:44:31 +0100 Subject: [Gambas-user] Problem adding new form (2.1,2.2.2) In-Reply-To: <200802260851.27461.rterry@...1822...> References: <200802260851.27461.rterry@...1822...> Message-ID: <200802271344.31594.gambas@...1...> On lundi 25 f?vrier 2008, richard terry wrote: > I update my build every day or two, currently 1108. > > When I'm coding (still learning) I've tended to make a copy of the form I'm > working on at a stage to keep as a backup in case I've gone down the wrong > track. > > I noticed that I used to be able to right mouse click > new form > > existing, select the form I'm working on, and click ok and it would give my > a copy eg frmMyOwn1. > > In recent time the button seems disabled, so I can't copy the form. > > Am I doing anything wrong? > > Richard > I just tried, and the OK is not disabled... Are you doing something other that you didn't tell? Do you have some screenshots? -- Benoit Minisini From robertsonhamish at ...626... Wed Feb 27 14:23:19 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Wed, 27 Feb 2008 20:23:19 +0700 Subject: [Gambas-user] Another BUG? Gambas 2.2.1 In-Reply-To: <200802271342.11927.gambas@...1...> References: <1204113849.16780.8.camel@...37...> <200802271313.03484.gambas@...1...> <200802271342.11927.gambas@...1...> Message-ID: Hey Benoit, Have you checked out REALbasic? I started out learning REALbasic but it was full of bugs in Linux and almost impossible to use. However, they do have some cool usability features that GAMBAS could ...er...borrow. :) Anyone else here checked out the dark side? P.S Your program and service is UNBELIEVABLE. I'm completely in awe. You've won me. I'm a total newbie and GAMBAS looks like being my platform of choice for a long time to come. Thank you so much!!! Hamish. On 27/02/2008, Benoit Minisini wrote: > > On mercredi 27 f?vrier 2008, Benoit Minisini wrote: > > Do you use gb.qt or gb.gtk, or if you use gb.gui, do you run on > Gnome/XFCE > > or KDE? > > > OK, this is a gb.gtk bug. It is fixed in revision 1123. > > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Feb 27 15:24:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Feb 2008 15:24:12 +0100 Subject: [Gambas-user] Another BUG? Gambas 2.2.1 In-Reply-To: References: <1204113849.16780.8.camel@...37...> <200802271342.11927.gambas@...1...> Message-ID: <200802271524.13064.gambas@...1...> On mercredi 27 f?vrier 2008, Hamish Robertson wrote: > Hey Benoit, > > Have you checked out REALbasic? I started out learning REALbasic but it was > full of bugs in Linux and almost impossible to use. However, they do have > some cool usability features that GAMBAS could ...er...borrow. :) Anyone > else here checked out the dark side? > > P.S Your program and service is UNBELIEVABLE. I'm completely in awe. You've > won me. I'm a total newbie and GAMBAS looks like being my platform of > choice for a long time to come. Thank you so much!!! > > Hamish. > Hi, No, I have never checked RealBasic at all, so I have absolutely no idea of what features you are talking about. And please don't answer to a thread if your post is not related to this thread! Regards, -- Benoit Minisini From nxgtrturbo at ...626... Wed Feb 27 20:02:51 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 27 Feb 2008 11:02:51 -0800 Subject: [Gambas-user] Gambas2 @ PCLOS? Message-ID: <688afe140802271102y35cfeb4dqb94959bbf53f91ac@...627...> Hi, a new developer is going to join my Project but he Works under PCLOS. So, I am here asking if, Is there something "known" about this Distro with Gambas? Since its Mandriva based, I was thinking about the Mandriva tutorial, http://gambasdoc.org/help/install/mandriva But if it changes even from Mandriva 2007 to Mandriva 2008, I am not really sure. I am Debian based distro user. I notice there's RPMs from SUSE, Do you think they could work? (Do I install them one-by-one or is there an "all-by-once way"? I know, a good way to know all of this is trying, but, I don't want to break his computer. If someone know something, would be nice, If not, which way do you guess is better? Thanks in advance -- Nx GT-R From sourceforge-raindog2 at ...94... Wed Feb 27 21:01:45 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Feb 2008 15:01:45 -0500 Subject: [Gambas-user] Gambas2 @ PCLOS? In-Reply-To: <688afe140802271102y35cfeb4dqb94959bbf53f91ac@...627...> References: <688afe140802271102y35cfeb4dqb94959bbf53f91ac@...627...> Message-ID: <200802271501.45684.sourceforge-raindog2@...94...> On Wednesday 27 February 2008 14:02, Nx GT-R BOY wrote: > I notice there's RPMs from SUSE, Do you think they could work? (Do > I install them one-by-one or is there an "all-by-once way"? Well, since PCLOS is closer to Mandriva than to SuSE, I think you should probably have him try the Mandriva RPMs. I assume by now someone has made some. Rob From audiossis at ...867... Thu Feb 28 02:50:17 2008 From: audiossis at ...867... (audiossis at ...867...) Date: Thu, 28 Feb 2008 12:50:17 +1100 Subject: [Gambas-user] Gambas-user Digest, Vol 21, Issue 46 In-Reply-To: References: Message-ID: <1204163417.47c613593a3ab@...868...> > Message: 8 > Date: Wed, 27 Feb 2008 23:04:09 +1100 > From: Audiossis > Subject: [Gambas-user] Another BUG? Gambas 2.2.1 > To: gambas-user at lists.sourceforge.net > Message-ID: <1204113849.16780.8.camel at ...37...> > Content-Type: text/plain > > > Hi All, > You're probably sick of hearing from me 'cause all I do is > complain...... > > Sorry but here I go again. > > I think I've found another bug. This time in the Message dialogue. > > I have tried: > > Dim Response > > Response = Message.Question("Do you really want to quit?", "Yes", "No") > > and > > Dim Response > > Response = Message.Warning("Do you really want to quit?", "Yes", "No") > > > Each has the problem that when the dialogue appears all the buttons have > the same text as the first! > In the two above example Both buttons appear with the text "Yes" even > though I have specified that the second button should have the text > "No". > This also happens with the third button if I specify one. > > If I change the text on the first button to read "No" and all other > buttons to "Yes" then ALL the buttons read "No" despite the fact that > the second and third buttons have different text. > > > > You can tell me to nick off if you like, I won't be offended :-) > > > Regards, > > Ben > > > > ------------------------------ > > Message: 9 > Date: Wed, 27 Feb 2008 13:13:03 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Another BUG? Gambas 2.2.1 > To: mailing list for gambas users > Message-ID: <200802271313.03484.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On mercredi 27 f?vrier 2008, Audiossis wrote: > > Hi All, > > You're probably sick of hearing from me 'cause all I do is > > complain...... > > Not at all. I am always when people reports bugs, *and* give all the needed > information to fix it. :-) > > > > > Sorry but here I go again. > > > > I think I've found another bug. This time in the Message dialogue. > > > > I have tried: > > > > Dim Response > > > > Response = Message.Question("Do you really want to quit?", "Yes", "No") > > > > and > > > > Dim Response > > > > Response = Message.Warning("Do you really want to quit?", "Yes", "No") > > > > > > Each has the problem that when the dialogue appears all the buttons have > > the same text as the first! > > In the two above example Both buttons appear with the text "Yes" even > > though I have specified that the second button should have the text > > "No". > > This also happens with the third button if I specify one. > > > > If I change the text on the first button to read "No" and all other > > buttons to "Yes" then ALL the buttons read "No" despite the fact that > > the second and third buttons have different text. > > > > > > > > You can tell me to nick off if you like, I won't be offended :-) > > > > > > Regards, > > > > Ben > > > > Do you use gb.qt or gb.gtk, or if you use gb.gui, do you run on Gnome/XFCE or > KDE? > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 10 > Date: Wed, 27 Feb 2008 13:42:11 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Another BUG? Gambas 2.2.1 > To: mailing list for gambas users > Message-ID: <200802271342.11927.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On mercredi 27 f?vrier 2008, Benoit Minisini wrote: > > Do you use gb.qt or gb.gtk, or if you use gb.gui, do you run on Gnome/XFCE > > or KDE? > > OK, this is a gb.gtk bug. It is fixed in revision 1123. > > -- > Benoit Minisini > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 21, Issue 46 > ******************************************* > My apologies Benoit, I should have specified. Yes it is gb.gtk (but you already know that). Revision 1123? I'm guessing that I download that version from SVN? Regards, Ben ------------------------------------------------------------ This email was sent from Netspace Webmail: http://www.netspace.net.au From steven at ...1545... Thu Feb 28 10:30:36 2008 From: steven at ...1545... (Steven Drinnan) Date: Thu, 28 Feb 2008 17:30:36 +0800 Subject: [Gambas-user] Release of Gambas 2.1 In-Reply-To: <200802252342.23116.lordheavym@...626...> References: <200802210937.05088.gambas@...1...> <200802240913.49422.gambas@...1...> <1203902366.4009.7.camel@...1857...> <200802252342.23116.lordheavym@...626...> Message-ID: <1204191036.24722.2.camel@...1857...> That works fine, thanks Steven On Mon, 2008-02-25 at 23:42 +0100, Laurent Carlier wrote: > Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez ?crit : > > I checked the XML output from RPM and got > > libffi-devel installs here (checked) > > > > /usr/lib/ > > /usr/lib/libffi-3.0.1/ > > /usr/lib/libffi-3.0.1/include/ > > /usr/lib/pkgconfig/ > > /usr/share/info/ > > /usr/share/man/man3/ > > > > > > and libffi instals here (checked) > > > > /usr/lib/ > > /usr/share/doc/ > > /usr/share/doc/libffi-3.0.1/ > > > > > > > > Can you check svn version 1116 (branches/2.0) ? > I've add support for pkg-config with libffi. > > ++ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From aleks.l at ...1865... Thu Feb 28 14:19:14 2008 From: aleks.l at ...1865... (aleks.l) Date: Thu, 28 Feb 2008 15:19:14 +0200 Subject: [Gambas-user] =?utf-8?q?Command_line_application=3A_does_it_work?= =?utf-8?q?=3F?= Message-ID: <5b9260a373cc67c555d9e481fc3b49f7@...1865...> Dear Gambas users, as a first attempt to use Gambas I tried just to print STATIC PUBLIC SUB Main () PRINT "===>>> !!!" END I created a command line project and compiled and saved it. I have got an executable but when it runs on my Xterm nothing happens... I am using gambas 2.1 on SUSE 10.3. I have installed the recommended rpm-s. I also have downloaderd the source and compiled it successfully(on another PC) Both do not print. Any suggestions would be helpful. Aleks From gambas at ...1... Thu Feb 28 14:33:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 28 Feb 2008 14:33:42 +0100 Subject: [Gambas-user] Command line application: does it work? In-Reply-To: <5b9260a373cc67c555d9e481fc3b49f7@...1865...> References: <5b9260a373cc67c555d9e481fc3b49f7@...1865...> Message-ID: <200802281433.42920.gambas@...1...> On jeudi 28 f?vrier 2008, aleks.l wrote: > Dear Gambas users, > as a first attempt to use Gambas I tried just to print > STATIC PUBLIC SUB Main () > PRINT "===>>> !!!" > END > I created a command line project and compiled and saved it. > I have got an executable but when it runs on my Xterm nothing > happens... > I am using gambas 2.1 on SUSE 10.3. I have installed the > recommended > rpm-s. I also have downloaderd the source and compiled it > successfully(on another PC) > Both do not print. Any suggestions would be helpful. > Aleks You cannot use STATIC is the default module defined after you have created a command line project. So you don't say all: please send your project! -- Benoit Minisini From gambas at ...1... Thu Feb 28 14:36:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 28 Feb 2008 14:36:56 +0100 Subject: [Gambas-user] Command line application: does it work? In-Reply-To: <200802281433.42920.gambas@...1...> References: <5b9260a373cc67c555d9e481fc3b49f7@...1865...> <200802281433.42920.gambas@...1...> Message-ID: <200802281436.56857.gambas@...1...> On jeudi 28 f?vrier 2008, Benoit Minisini wrote: > On jeudi 28 f?vrier 2008, aleks.l wrote: > > Dear Gambas users, > > as a first attempt to use Gambas I tried just to print > > STATIC PUBLIC SUB Main () > > PRINT "===>>> !!!" > > END > > I created a command line project and compiled and saved it. > > I have got an executable but when it runs on my Xterm nothing > > happens... > > I am using gambas 2.1 on SUSE 10.3. I have installed the > > recommended > > rpm-s. I also have downloaderd the source and compiled it > > successfully(on another PC) > > Both do not print. Any suggestions would be helpful. > > Aleks > > You cannot use STATIC is the default module defined after you have created ----------------------> in > a command line project. So you don't say all: please send your project! -- Benoit Minisini From PxPert at ...626... Thu Feb 28 23:56:47 2008 From: PxPert at ...626... (PxPert) Date: Thu, 28 Feb 2008 23:56:47 +0100 Subject: [Gambas-user] Big & Cool project Message-ID: <200802282356.47760.PxPert@...626...> Hi to all! Now, with the coming of version 2.1, 64bit compatible of gambas, the ide is growing and growing (or at least I'm feeling this :D ) Anyway I would like to make a very cool and interesting project: A frontend like mythtv and freevo, totally gambas written that has to go in people's house and car :) To make this i need an help of other developers, it's too long to make it entirely myself, especially for the purposes of the project: It has to be xine based and must have an sdl-opengl (or at lease qt-opengl), skin based gui. So to make this we need firstly to make a xine component, even if it's written in gambas, it's not a problem, and a sort of skin engine. Then all the system will be very easier to develop! Who is (at least) interested? Thanks to all Grazie a tutti! :D Pietro From robertsonhamish at ...626... Fri Feb 29 07:43:01 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Fri, 29 Feb 2008 13:43:01 +0700 Subject: [Gambas-user] new gambas 2.2.1 deb? Message-ID: Has anyone in their travels made a deb out of the latest 2.2.1 version of Gambas? From jredrejo at ...626... Fri Feb 29 08:21:35 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 29 Feb 2008 08:21:35 +0100 Subject: [Gambas-user] new gambas 2.2.1 deb? In-Reply-To: References: Message-ID: <8eb28a500802282321p39355a3boc73bfd834ff4c892@...627...> http://packages.debian.org/search?keywords=gambas2&searchon=names&suite=all§ion=all Regards 2008/2/29 Hamish Robertson : > Has anyone in their travels made a deb out of the latest 2.2.1 version of > Gambas? > From robertsonhamish at ...626... Fri Feb 29 17:10:44 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Fri, 29 Feb 2008 23:10:44 +0700 Subject: [Gambas-user] new gambas 2.2.1 deb? In-Reply-To: <8eb28a500802282321p39355a3boc73bfd834ff4c892@...627...> References: <8eb28a500802282321p39355a3boc73bfd834ff4c892@...627...> Message-ID: wow! Thanks jose! :) On 29/02/2008, Jos? Luis Redrejo wrote: > > > http://packages.debian.org/search?keywords=gambas2&searchon=names&suite=all§ion=all > > Regards > > 2008/2/29 Hamish Robertson : > > > > Has anyone in their travels made a deb out of the latest 2.2.1 version > of > > Gambas? > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Fri Feb 29 21:39:49 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 29 Feb 2008 14:39:49 -0600 Subject: [Gambas-user] Multi-purpose SHELL process in gambas2-2.0.0 Message-ID: <1f1e8c1b0802291239i9532c6byae74ef9adde353de@...627...> Hello again fellow gambasian coders... I'm kinda stuck and require your expertise on a problem I'm having... I've been trying this for a couple of days, with the same results, trying to see if anyone's got a good suggestiongthat might help me Here is the idea. This application is supposed to build software from source. From that we gather that there are several steps to be taken from extracting the source, to installing the resulting binaries. In the previous versions of this application, I used one(1) process for each step of the build process (up to 4). This is sort of messy and hard to track, but I made it work. In an effort to consolidate the code, and offer better error checking and more accurary, I'm trying to have ONLY ONE(1) process and have functions to tell the process what to do. It almost works, But i'm having problems where it's not triggering the right sequence, and it seems to not be executing all of the code in the process_kill() event. Please look at this piece of code... 'Gambas class file PUBLIC hBuildProc AS Process PUBLIC iBuildState AS Integer ' Enumerated build state (0 - 5) PUBLIC sBuildType AS String PRIVATE sShellCmd AS String PUBLIC SUB process_read() DIM iReturnvalue AS Integer DIM sLine AS String READ #LAST, sLine, -256 ' Insert the buffer read into the text area for the user to see FrmBuildView.taTerm.pos = Len(FrmBuildView.taTerm.text) FrmBuildView.taTerm.Insert(sLine) END PUBLIC SUB process_error(errormessage AS String) FrmBuildView.taTerm.pos = Len(FrmBuildView.taTerm.text) FrmBuildView.taTerm.Insert(errormessage) END PUBLIC SUB Process_kill() DIM iRetval AS Integer DIM iNextStepNum AS Integer iRetval = ME.QUICK_ERROR_CHECK(FrmBuildView.taTerm.text, "FAILED") SELECT CASE iRetval CASE 1 ' Error was found MdlMain.WRITE_TO_BUILD_LOG("Error detected in the build process... aborting") FrmBuildView.tmProgress.Enabled = FALSE ME.TOGGLE_CANCEL_BUTTON(FALSE) STOP EVENT CASE 0 ' All clear... go to the next step SELECT CASE ME.iBuildState CASE 0 ' extraction is done ME.GUESS_SRC_TYPE(ClsGlobal.sTMP_DIR &/ ClsBuildVars.sName & "-" & ClsBuildVars.sVersion) CASE ELSE 'iNextStepNum = ME.iBuildState + 1 SELECT CASE ME.sBuildType CASE "GNU" 'WHILE iBuildState < 4 IF ibuildstate < 4 ME.BUILD_C(ClsBuildVars.sName, ClsBuildVars.sVersion, ClsBuildVars.sSlackDesc, ME.iBuildState + 1) 'WEND END IF END SELECT END SELECT END SELECT END PUBLIC FUNCTION BUILD_C(sName AS String, sVer AS String, sPkgDescPath AS String, iBuildStep AS Integer) 'Assumes GNU style build will be used (determined by the type of source found) DIM sArch AS String = ClsBuildVars.sArch DIM sRel AS String = ClsBuildVars.sRel DIM sTag AS String = ClsBuildVars.sTag DIM sConfig AS String = ClsBuildVars.sConfig DIM sCFLAGS AS String = ClsBuildVars.sCFLAGS DIM sPkgType AS String = ClsBuildVars.sType DIM sFullPackageName AS String = sName & "-" & sVer & "-" & sArch & "-" & sRel & sTag & "." & sPkgType DIM sTmpSpace AS String = ClsGlobal.sTMP_DIR DIM sBuildDir AS String = sTmpSpace &/ sName & "-" & sVer &/ "build" 'DIM sShellCmd AS String DIM sPKG AS String = sBuildDir &/ "PKG" DIM sLackDescDest AS String = sPKG &/ "install" 'message.Info(iBuildStep) SELECT CASE iBuildStep 'CASE 0 ' Guess CASE 1 ' Configure the source IF IsDir(sBuildDir) = FALSE THEN PRINT "Creating build directory" TRY MKDIR sBuildDir END IF MdlMain.WRITE_TO_BUILD_LOG("Begin configure process...") sShellCmd = "cd " & sBuildDir & " && ../configure " & sConfig & " CFLAGS=\'" & sCFLAGS & "\' || echo \'FAILED\'" FrmBuildView.PbBuildProg.value = 0.25 'RETURN CASE 2 ' Run make MdlMain.WRITE_TO_BUILD_LOG("Run make") sShellCmd = "cd " & sBuildDir & " && make || echo \'FAILED\'" FrmBuildView.PbBuildProg.value = 0.50 'RETURN CASE 3 ' make install MdlMain.WRITE_TO_BUILD_LOG("Run make install") IF IsDir(sPkg) = FALSE THEN MKDIR sPKG END IF ' insert the slack-desc into the package IF IsDir(sLackDescDest) = FALSE THEN MKDIR sLackDescDest END IF ME.INSERT_DESC(ClsBuildVars.sSlackDesc, sLackDescDest) sShellCmd = "cd " & sBuildDir & " && make DESTDIR=" & sPKG & " install || echo \'FAILED\'" FrmBuildView.PbBuildProg.value = 0.75 'RETURN CASE 4 MdlMain.WRITE_TO_BUILD_LOG("Package built source") ME.PACKAGE(sBuildDir &/ "PKG") CASE 101 ' on error sShellCmd = "" STOP EVENT RETURN END SELECT EXECUTE_PROCESS(iBuildStep) END PUBLIC FUNCTION QUICK_ERROR_CHECK(sRawText AS String, sMatch AS String) AS Integer IF InStr(sRawText, sMatch) > 0 THEN FrmBuildView.tmProgress.Enabled = FALSE ' Found an error, stop the timer RETURN 1 ELSE RETURN 0 END IF END ______________________ END OF MODULE _______________________________ Whew!.. that was a lot of code. Basically, in a nutshell, what this is supposed to do is this I have a function that assigns a different value to a variable (sShellCmd) every time it is ran (the value is based on the results of the previous step) After this variable is assigned the new value, the same function triggers the process. When the process ends (using the process_kill() event for this), I run an error check (using the QUICK_ERROR_CHECK function avobe) This function decides wether the process will continue or not. PLEASE HELP You are more than welcome to checkout the full source code and take a look at how everything works (or at least is supposed to work) together. svn co http://vpackager.googlecode.com/svn/branches/1.0.11/trunk or browse it online... Here is a link to the FULL MODULE http://code.google.com/p/vpackager/source/browse/branches/1.0.11/trunk/MdlBuild.module Again, Using gambas-2.2.0.0 Thanks