Re: [Gambas-user] stop event and gtk
Tanks Benoit, and all people developing Gambas. Emanuele Il giorno lun, 13/12/2010 alle 06.43 +0100, Benoît Minisini ha scritto: Hi Benoit, here is the project. The form showing the problem is the FLanguage. I suppose it is a GTK bug 'cause of switching to QT it works fine. OK. The bug should be fixed in revision #3359. Regards, -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] src/Makefile.am:66: XWINDOW does not appear in AM_CONDITIONAL
rev 3359: reconf-all aborts with this error. in gb.qt4 directory Emanuele -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] src/Makefile.am:66: XWINDOW does not appear in AM_CONDITIONAL
rev 3359: reconf-all aborts with this error. in gb.qt4 directory Emanuele Check with the latest revision, it should work now. Regards, -- Benoît Minisini -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Bug with IsNumber
Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Bug with IsNumber
Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi Yes. Now IsNumber() takes a string and returns if the string can be converted to a number. -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] check if a symbol of a class is a property
I need to check if the symbols obtained from typeControl = Object.Class(aWidget) are properties, but I don't found how to do this. FOR EACH symbol IN typeControl.Symbols 'I need test if symbol is a property here NEXT I would be pleased if I could use a test like: IF (symbol.type = typeControl.Property) THEN But, I can't do that in Gambas2 because symbol is a String. In Gambas3 I can't use .Symbols.Kind because it is a virtual class So. How I could do that? -- Fabián Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Bug with IsNumber
IsNumber(Value As Variant) As Boolean... Then why variant? Jussi 2010/12/13 Benoît Minisini gam...@users.sourceforge.net Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi Yes. Now IsNumber() takes a string and returns if the string can be converted to a number. -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Bug with IsNumber
IsNumber(Value As Variant) As Boolean... Then why variant? Jussi The documentation was not up to date. Now it is. :-) -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] check if a symbol of a class is a property
simple :) if Object.class(aWidget)[symbolename].kind = Class.Property then ... or dim hClass as Class hClass = Object.class(TextBox1) if hClass[Text].Kind = Class.Property Then... http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 2010/12/13 Fabián Flores Vadell fabianfloresvad...@gmail.com: I need to check if the symbols obtained from typeControl = Object.Class(aWidget) are properties, but I don't found how to do this. FOR EACH symbol IN typeControl.Symbols 'I need test if symbol is a property here NEXT I would be pleased if I could use a test like: IF (symbol.type = typeControl.Property) THEN But, I can't do that in Gambas2 because symbol is a String. In Gambas3 I can't use .Symbols.Kind because it is a virtual class So. How I could do that? -- Fabián Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] licence for this gambas logo
Who is the owner for the logo showed in this page: http://gambasdoc.org/help/doc/release?enview and what is the licence? -- Fabián Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] check if a symbol of a class is a property
2010/12/13 Fabien Bodard gambas...@gmail.com: simple :) if Object.class(aWidget)[symbolename].kind = Class.Property then ... or dim hClass as Class hClass = Object.class(TextBox1) if hClass[Text].Kind = Class.Property Then... http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 Thanks Fabien. It's possible to do that in Gambas2 too? -- Fabián Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] stop event and gtk
It works, fantastic!!! Many tanks. Emanuele -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PIPE issues
This is a pipe. Data is available only when it has been filled by the other side. So Eof() can returns true at anytime, even if some data may be written in the future. Gambas cannot read the future yet. Benoit, i got this example from the wiki. http://gambasdoc.org/help/lang/pipe?v3 Then the example is wrong. I don't think I wrote it anyway. if i change to WHILE TRUE i get the ls results to console and i get an error System error. Inappropriate ioctl for device. The error message is not very accurate. But it is normal, as reading on a pipe that has been closed on the other side is impossible. Regards, What is the right code to read a pipe if it is not with Eof() or WHILE TRUE ? Thanks Benoit for your answer. In Gambas 2, you must do something like that: DIM hFile AS File DIM sLine AS String hFile = PIPE /tmp/FIFO1 FOR READ DO TRY READ #hFile, sLine, -256 IF NOT sLine THEN BREAK PRINT sLine; LOOP In Gambas 3, you can do that too: Dim hFile As File Dim sLine As String hFile = Pipe /tmp/FIFO1 For Read Do Line Input #hFile, sLine If hFile.EndOfFile Then Break Print sLine Loop Regards, -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Did anyone have a script to record webcame picture in video files
I Almost done my project about monitoring camera using webcam with gambas 3... the picture or streaming video can displayed on picturebox but i still have a problem to record in video file mode r like avi, mpg or other compressed format.. please help me if anyone can solve my problem. i will showing u a picture of FMain my project... the record button still couldn't worked... i'm using gambas 3 svn... I've wrote the script like this, and worked the files created but still 0 KB or nothing recorded this is the script: 'Saving Record File Public Sub InitCapture() If Not CatProcess Then bytesrecorded = 0 CatProcess = Exec [cat, /dev/video0] For Read CatProcess = Exec [cat, /dev/video1] For Read CatProcess = Exec [cat, /dev/video2] For Read CatProcess = Exec [cat, /dev/video3] For Read Endif UpdateBytesLabel() End Public Sub Process_Write(data As String) If pic1.Picture = $cam1.Image.Picture Then If pic2.Picture = $cam2.Image.Picture Then If pic3.Picture = $cam3.Image.Picture Then If pic4.Picture = $cam4.Image.Picture Then Return Endif Endif Endif Endif Try pic1.Picture.send(data) Try pic2.Picture.send(data) Try pic3.Picture.send(data) Try pic4.Picture.send(data) Try saveprocess.send(data) bytesrecorded = bytesrecorded + Len(data) End Public Sub btnRecord_Click() If btnRecord.text = Record Then bytesrecorded = 0 starttime = Now endtime = starttime initcapture() Tmr1_Timer() btnRecord.text = Stop SaveProcess = Exec [bash, -c, catsetFilename1()] For Write SaveProcess = Exec [bash, -c, catsetFilename2()] For Write SaveProcess = Exec [bash, -c, catsetFilename3()] For Write SaveProcess = Exec [bash, -c, catsetFilename4()] For Write Else endtime = Now Try saveprocess.kill btnRecord.text = Record setFilename1() setFilename2() setFilename3() setFilename4() Endif End Public Function setFilename1() As String Dim i As Integer i = 0 'Do While Exist(Application.Path / kamera1 i .mpg) Do While Exist(User.Home / kamera1 i .mpg) i = i + 1 Loop 'Return Application.Path / kamera1 Format(i, 000) .mpg Return User.Home / kamera1 Format(i, 000) .mpg End Public Function setFilename2() As String Dim i As Integer i = 0 Do While Exist(User.Home / kamera2 i .mpg) i = i + 1 Loop Return User.Home / kamera2 Format(i, 000) .mpg End Public Function setFilename3() As String Dim i As Integer i = 0 Do While Exist(User.Home / kamera3 i .mpg) i = i + 1 Loop Return User.Home / kamera3 Format(i, 000) .mpg End Public Function setFilename4() As String Dim i As Integer i = 0 Do While Exist(User.Home / kamera4 i .mpg) i = i + 1 Loop Return User.Home / kamera4 Format(i, 000) .mpg End Public Sub UpdateBytesLabel() Dim i As Float If bytesrecorded 1048576 Then i = Int(bytesrecorded / 10) Else i = Int(bytesrecorded / 100) Endif End Public Sub UpdateTimeLabel() If starttime = 00:00:00 Then Return If endtime starttime Then Return TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + timezoneadjust)) End anyone can solve my problem please...? -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] MOD arithetic operator
Hi to all, i want to ask why there is not a modulus operator like % for example? The '%' operator has been added as a synonymous for 'MOD' in revision #3362. The '%=' assignment operator has been added as well. Regards, -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 Printing
Benoit Is there any movement on this printing issue yet? Either by fixing the print dialog or allowing setting in code? Regards Michael On 10/12/10 13:41, Michael wrote: Benoit, I am using Rev.3349 and I can set Paper Type and Paper Source but still cannot set Output Tray, Paper Size and Orientation. This applies to the GTK+ library. I can set Orientation under QT4 because that uses a completely different dialog but it introduces different problems( Paint.Begin(hPrinter) causes error. device is already being drawn). The GTK+ library uses the same print dialog as Mozilla Firefox and all the options are enabled when using Firefox. I am using Ubuntu Maverick 10.10 Regards Michael -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 Printing
Benoit Is there any movement on this printing issue yet? Either by fixing the print dialog or allowing setting in code? Regards Michael Well, it works on my machine, so I don't understand why it doesn't on yours... Are you sure that you use the last commit? -- Benoît Minisini -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Feature request before release
Hi Benoit Just another request for a feature I've asked for before, that shouldn't be much trouble but would make dealing with complex forms easier. In the IDE on the heirachy tab, having a search textbox to search for a control. When one's form is complex it's possible to 'lose' these, if one accidentally nudges a control in a container out of sight when brushing past it with a cursor - I've done this many times, and it can be a very very difficult job to locate where it is, or as a corolloy, locate a control which has gone missing at some stage un-n oticed, but is putting the gui out of wack visually REgards Richard -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas2 to 3 port error Form.Delete is badly overridden in class
I just finished compiling Gambas3 and verified I can play with some code and test ok, however, when i port my project gambas2 to gambas3 I get error : Form.Delete is badly overridden in class What do I need to look or change to fix that? I have verified that form files say Gambas Form file 3.0. Nick -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 Printing
Thanks Benoit, I've checked all the Ubuntu forums without success but it seems to be unique to Gambas.I still have a few things to try but I am busy moving house so shall return to it after Xmas. Her is my output from svn info URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 3363 Node Kind: directory Schedule: normal Last Changed Author: gambas Last Changed Rev: 3363 Last Changed Date: 2010-12-14 12:18:41 +1100 (Tue, 14 Dec 2010) Regards Michael On 14/12/10 11:36, Benoît Minisini wrote: Benoit Is there any movement on this printing issue yet? Either by fixing the print dialog or allowing setting in code? Regards Michael Well, it works on my machine, so I don't understand why it doesn't on yours... Are you sure that you use the last commit? -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] check if a symbol of a class is a property
yes 2010/12/13 Fabián Flores Vadell fabianfloresvad...@gmail.com: 2010/12/13 Fabien Bodard gambas...@gmail.com: simple :) if Object.class(aWidget)[symbolename].kind = Class.Property then ... or dim hClass as Class hClass = Object.class(TextBox1) if hClass[Text].Kind = Class.Property Then... http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 Thanks Fabien. It's possible to do that in Gambas2 too? -- Fabián Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user