From Gambas at ...1950... Fri Jul 1 02:37:39 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 01 Jul 2011 02:37:39 +0200 Subject: [Gambas-user] Database not working to select records, but fields/tables identified Message-ID: <1309480659.2399.25.camel@...2150...> Hi, I'm trying to get database access to an ODBC datasource (have been trying for a few days now). I have the simplest Access (.mdb) database in the world: one table called people, with an id, a first name, a last name, and a phone number. There is no password on the database. I can see data in the people table if I use MDB Viewer (i.e. the table 'people' is NOT empty!). Thanks to a tip from Ricardo, I have gotten as far as a good connection, can see the ResultFields in the Result as expected (4 of them, with the expected column names), I get the appropriate error if I deliberately choose an invalid tablename (like persons for e.g.)... all good... but... I can't seem to get any kind of actual results in my result set, Result.Available seems to always be False although I know there's data in the table. This is also the case if I run the Database example in Gambas3, so I'm guessing it's not just my shoddy coding lol Here's the code I used (but note **it doesn't work** with the Database example either!): Public Sub tryNewDB() Dim conn As Connection Dim res As Result Dim sql As String Dim resF As ResultField conn = Connections["NEWDB"] conn.Open sql = "select * from people" res = conn.Exec(sql) For Each resF In res.Fields Print "Found field: " & resF.Name Next Print "Result Count: " & res.Count res.MoveFirst Print "Available? " & boolToString(res.Available) While res.Available res.MoveNext Print "Field1: " & res["Field1"] Wend End Private Function boolToString(value As Boolean) As String If value Then Return "True" Endif Return "False" End ************ result *********** Found field: ID Found field: Field1 Found field: Field2 Found field: Field3 Result Count: 0 Available? False ************ result *********** Many thanks in advance for any new pointers... Regards, Caveat From sbungay at ...981... Fri Jul 1 05:58:40 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 30 Jun 2011 23:58:40 -0400 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: References: <4E0C732B.2090208@...981...> Message-ID: <4E0D45F0.9060309@...981...> Hi Fabien & Tobias; Thanks for taking the time to reply and putting those SUBs together. Another way to do this is to simply execute a "mkdir -p " using the command shell, but now that the problem exists I want to figure out why the recursive routine is not behaving as expected. Fabien, I thought the FINALLY did precede the CATCH within the function... did it not? I reprint the SUB here with two additional comments, a correction to a typo (thank you Tobias), and a conditional surrounding the Mkdir in the Finally section just in case it tries to make a directory that already exists and ends up going into an endless loop. Private Sub CreateNewOutputFolder(psFolderSpecification As String) Dim sFolderSpec As String sFolderSpec = psFolderSpecification Mkdir sFolderSpec Finally If Not exists(sFolderSpec) Then Mkdir sFolderSpec End If Catch sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, "/") - 1) CreateNewOutputFolder(sFolderSpec) End On 06/30/2011 10:09 AM, Fabien Bodard wrote: > private sub CreateDirTree(sDir as string) > > dim s as string > dim stmpDir as string = "/" > > if sdir begins "/" then sdir = right(sdir,-1) > > For each s in split(sDir, "/") > stmpDir&= s > if exist(stmpdir) then continue > mkdir stmpdir > next > > catch > Print "The directory "& stmpdir& "can't be created" > > end > > > 2011/6/30 Fabien Bodard: >> The FINALLY part is not mandatory. If there is a catch part in the >> function, the FINALLY part must precede it. >> >> http://gambasdoc.org/help/lang/finally >> >> The second call will be in the catch part not in finally. >> >> 2011/6/30 Stephen Bungay: >>> Hi folks! >>> >>> Gambas 2.99 >>> Fedora 14 >>> >>> Using mkdir with "catch" and "finally" to create a recursive SUB to >>> build a directory structure. >>> The harness consists of FormMain with one big-friendly button on it, >>> pretty simple. Here is all of the code; >>> >>> ' Gambas class file >>> >>> Public Sub _new() >>> >>> End >>> >>> Public Sub Form_Open() >>> >>> End >>> >>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >>> Dim sFolderSpec As String >>> >>> sFolderSpec = psFolderSpecification >>> >>> Mkdir sFolderSpec >>> >>> Finally >>> Mkdir sFolderSpec >>> >>> Catch >>> sFolderSpec = Mid$(psFolderSpecification, 1, >>> RInStr(psFolderSpecification, ".") - 1) >>> CreateNewOutputFolder(sFolderSpec) >>> End >>> >>> Public Sub Button1_Click() >>> >>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") >>> >>> End >>> >>> >>> What I THINK should happen is the initial mkdir should fail, the code >>> in "catch" should execute and copy the passed in parameter from position >>> 1 to the charcter just prior to the last "/" and then call itself >>> passing in the new result as the parameter. When/if that call fails (and >>> it should as this folder specification doesn't exist in my home dir) it >>> again recurses. This should go on until it reaches the left-most node in >>> the directory structure (AFTER the "/home/user"), and THAT one >>> ("/home/user/Rumple) should be the first to succeed in being created. >>> The call stack should then unwind, and as it does, the previous SUBS on >>> the stack should execute their "Finally" section. When the stack has >>> completely unwound the directory structure should exist.... only that is >>> not what is happening. >>> The first Catch doesn't execute (although the directory does not get >>> created.. meaning an error did indeed occur) and it skips directly to >>> the "finally". When the mkdir in the "finally" is executed (same >>> parameter string because we have not yet recursed) the error "File or >>> Directory does not exist" pops up on the screen. Well there's the error >>> that I expected from the initial mkdir, but the "catch" didn't execute, >>> anybody got ideas? >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> -- >> Fabien Bodard >> > > From sbungay at ...981... Fri Jul 1 06:06:53 2011 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 01 Jul 2011 00:06:53 -0400 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0D45F0.9060309@...981...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> Message-ID: <4E0D47DD.5080305@...981...> Typo in the Finally section... "Exists(sFolderSpec)" should read "Exist(sFolderSpec)". On 06/30/2011 11:58 PM, Stephen Bungay wrote: > Hi Fabien& Tobias; > > Thanks for taking the time to reply and putting those SUBs together. > Another way to do this is to simply execute a "mkdir -p " using the > command shell, but now that the problem exists I want to figure out why > the recursive routine is not behaving as expected. > Fabien, I thought the FINALLY did precede the CATCH within the > function... did it not? I reprint the SUB here with two additional > comments, a correction to a typo (thank you Tobias), and a conditional > surrounding the Mkdir in the Finally section just in case it tries to > make a directory that already exists and ends up going into an endless > loop. > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > sFolderSpec = psFolderSpecification > > Mkdir sFolderSpec > > Finally > If Not exists(sFolderSpec) Then > Mkdir sFolderSpec > End If > > Catch > sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, "/") - 1) > CreateNewOutputFolder(sFolderSpec) > End > > > > > On 06/30/2011 10:09 AM, Fabien Bodard wrote: >> private sub CreateDirTree(sDir as string) >> >> dim s as string >> dim stmpDir as string = "/" >> >> if sdir begins "/" then sdir = right(sdir,-1) >> >> For each s in split(sDir, "/") >> stmpDir&= s >> if exist(stmpdir) then continue >> mkdir stmpdir >> next >> >> catch >> Print "The directory "& stmpdir& "can't be created" >> >> end >> >> >> 2011/6/30 Fabien Bodard: >>> The FINALLY part is not mandatory. If there is a catch part in the >>> function, the FINALLY part must precede it. >>> >>> http://gambasdoc.org/help/lang/finally >>> >>> The second call will be in the catch part not in finally. >>> >>> 2011/6/30 Stephen Bungay: >>>> Hi folks! >>>> >>>> Gambas 2.99 >>>> Fedora 14 >>>> >>>> Using mkdir with "catch" and "finally" to create a recursive SUB to >>>> build a directory structure. >>>> The harness consists of FormMain with one big-friendly button on it, >>>> pretty simple. Here is all of the code; >>>> >>>> ' Gambas class file >>>> >>>> Public Sub _new() >>>> >>>> End >>>> >>>> Public Sub Form_Open() >>>> >>>> End >>>> >>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >>>> Dim sFolderSpec As String >>>> >>>> sFolderSpec = psFolderSpecification >>>> >>>> Mkdir sFolderSpec >>>> >>>> Finally >>>> Mkdir sFolderSpec >>>> >>>> Catch >>>> sFolderSpec = Mid$(psFolderSpecification, 1, >>>> RInStr(psFolderSpecification, ".") - 1) >>>> CreateNewOutputFolder(sFolderSpec) >>>> End >>>> >>>> Public Sub Button1_Click() >>>> >>>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") >>>> >>>> End >>>> >>>> >>>> What I THINK should happen is the initial mkdir should fail, the code >>>> in "catch" should execute and copy the passed in parameter from position >>>> 1 to the charcter just prior to the last "/" and then call itself >>>> passing in the new result as the parameter. When/if that call fails (and >>>> it should as this folder specification doesn't exist in my home dir) it >>>> again recurses. This should go on until it reaches the left-most node in >>>> the directory structure (AFTER the "/home/user"), and THAT one >>>> ("/home/user/Rumple) should be the first to succeed in being created. >>>> The call stack should then unwind, and as it does, the previous SUBS on >>>> the stack should execute their "Finally" section. When the stack has >>>> completely unwound the directory structure should exist.... only that is >>>> not what is happening. >>>> The first Catch doesn't execute (although the directory does not get >>>> created.. meaning an error did indeed occur) and it skips directly to >>>> the "finally". When the mkdir in the "finally" is executed (same >>>> parameter string because we have not yet recursed) the error "File or >>>> Directory does not exist" pops up on the screen. Well there's the error >>>> that I expected from the initial mkdir, but the "catch" didn't execute, >>>> anybody got ideas? >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> -- >>> Fabien Bodard >>> >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Fri Jul 1 08:00:19 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 01 Jul 2011 08:00:19 +0200 Subject: [Gambas-user] Database not working to select records, but fields/tables identified (small correction) In-Reply-To: <1309480659.2399.25.camel@...2150...> References: <1309480659.2399.25.camel@...2150...> Message-ID: <1309500019.2399.28.camel@...2150...> I swapped the order of the lines here: While res.Available res.MoveNext Print "Field1: " & res["Field1"] Wend to do the Print then MoveNext, as it would have caused me to 'lose' my first line of data. As I'm not getting any results at all, it doesn't actually make a difference right now...(and the pre-written Database example still doesn't work either lol) Regards, Caveat On Fri, 2011-07-01 at 02:37 +0200, Caveat wrote: > Hi, > > I'm trying to get database access to an ODBC datasource (have been > trying for a few days now). > > I have the simplest Access (.mdb) database in the world: one table > called people, with an id, a first name, a last name, and a phone > number. There is no password on the database. I can see data in the > people table if I use MDB Viewer (i.e. the table 'people' is NOT > empty!). > > Thanks to a tip from Ricardo, I have gotten as far as a good connection, > can see the ResultFields in the Result as expected (4 of them, with the > expected column names), I get the appropriate error if I deliberately > choose an invalid tablename (like persons for e.g.)... all good... > but... > > I can't seem to get any kind of actual results in my result set, > Result.Available seems to always be False although I know there's data > in the table. > > This is also the case if I run the Database example in Gambas3, so I'm > guessing it's not just my shoddy coding lol > > Here's the code I used (but note **it doesn't work** with the Database > example either!): > > Public Sub tryNewDB() > > Dim conn As Connection > Dim res As Result > Dim sql As String > Dim resF As ResultField > conn = Connections["NEWDB"] > conn.Open > sql = "select * from people" > res = conn.Exec(sql) > For Each resF In res.Fields > Print "Found field: " & resF.Name > Next > Print "Result Count: " & res.Count > res.MoveFirst > Print "Available? " & boolToString(res.Available) > While res.Available > res.MoveNext > Print "Field1: " & res["Field1"] > Wend > > End > > Private Function boolToString(value As Boolean) As String > > If value Then > Return "True" > Endif > Return "False" > > End > > ************ result *********** > Found field: ID > Found field: Field1 > Found field: Field2 > Found field: Field3 > Result Count: 0 > Available? False > ************ result *********** > > Many thanks in advance for any new pointers... > > Regards, > Caveat > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mohareve at ...626... Fri Jul 1 09:45:23 2011 From: mohareve at ...626... (M. Cs.) Date: Fri, 1 Jul 2011 09:45:23 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: <201106301335.00758.gambas@...1...> <201106301400.19229.gambas@...1...> Message-ID: O.K. The printing started now, but it prints the texts one over another regardless to the coordinates given by CFloat(xcor[i]) and CFloat(ycor[i]). Why? 2011/6/30, Fabien Bodard : > Le 30 juin 2011 14:00, Beno?t Minisini a > ?crit : >>> Yes, Benoit, >>> still even if change the synthax to: >>> >>> Public Sub PrintID() >>> Dim i As Integer >>> Dim tagok As String[] >>> samsung = New Printer As "samsung" >>> If samsung.Configure() Then Return >>> samsung.Count = 1 >>> samsung.Print >>> >>> End >>> >>> Public Sub samsung_Begin() >>> >>> End >>> >>> Public Sub samsung_Draw() >>> Dim i As Integer >>> Dim tagok As String[] >>> tagok = Split(datae[curr], ";") >>> For i = 0 To tagok.Count - 1 >>> Paint.Font = Font["Lucida Sans"] >>> Paint.Font.Size = lett[i] >>> Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) > > 'hey tou forgot that !! > > Paint.fill > > > > >>> Next >>> End >>> >>> It prints blank pages only, while the Printer example works O.K. >>> I don't understand this at all. I'm wrestling with this since 3 days. >>> >> >> If you send me a project, I will be able to look deeper in your problem! >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > when you are using paint it have 2 time : > > creating the path > > filling or trace it > > > To fill it : Paint.fill > > To trace the border : Paint.Stroke > > You can do the both : > > Paint.Fill(true) > Paint.Stroke > > > If you want to have a letter With a border Red and the middle yellow > Paint.Font.Size = 16 > Paint.Text("a",1,1) > Paint.Brush = Paint.Color(color.yellow) > Paint.Fill(true) > Paint.Brush = paint.Color(Color.red) > Paint.Fill > > > > So now your code will be > > > > -- > Fabien Bodard > > Public Sub samsung_Draw() > Dim i As Integer > Dim tagok As String[] > tagok = Split(datae[curr], ";") > For i = 0 To tagok.Count - 1 > Paint.Font = Font["Lucida Sans"] > Paint.Font.Size = lett[i] > Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) > Paint.Fill > next > end > > If you forgot the fill statement ... the printer draw nothing > > Paint class work like cairo, and is really different of the draw class. > > Take a look at the painting example. > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Fri Jul 1 10:21:31 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 01 Jul 2011 10:21:31 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0D45F0.9060309@...981...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> Message-ID: <4E0D838B.20709@...221...> Hi Stephen, my first thought was that it might be If Not Exist... I had such a case some time ago, and it did not react as expected. Just check if it really reports TRUE if the directory isn't there. (I remember Benoit explained why it didn't run correctly in my case, maybe you find the thread in the archives.) Then I thought why do you use an error condition when you could simply look for the directory and decide whatever when it exists or not? Why going recursively at all? And you could use File.Path to ensure the the psFolderSpecification is cut to its correct part. Private Sub CreateNewOutputFolder(psFolderSpecification As String) Dim sFolderSpec As String sFolderSpec = File.Path(psFolderSpecification) If Exist(sFolderSpec) Then 'ok, do nothing Else Mkdir sFolderSpec End if End Regards Rolf Am 01.07.2011 05:58, schrieb Stephen Bungay: > Hi Fabien& Tobias; > > Thanks for taking the time to reply and putting those SUBs together. > Another way to do this is to simply execute a "mkdir -p " using the > command shell, but now that the problem exists I want to figure out why > the recursive routine is not behaving as expected. > Fabien, I thought the FINALLY did precede the CATCH within the > function... did it not? I reprint the SUB here with two additional > comments, a correction to a typo (thank you Tobias), and a conditional > surrounding the Mkdir in the Finally section just in case it tries to > make a directory that already exists and ends up going into an endless > loop. > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > sFolderSpec = psFolderSpecification > > Mkdir sFolderSpec > > Finally > If Not exists(sFolderSpec) Then > Mkdir sFolderSpec > End If > > Catch > sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, "/") - 1) > CreateNewOutputFolder(sFolderSpec) > End > > > > > On 06/30/2011 10:09 AM, Fabien Bodard wrote: >> private sub CreateDirTree(sDir as string) >> >> dim s as string >> dim stmpDir as string = "/" >> >> if sdir begins "/" then sdir = right(sdir,-1) >> >> For each s in split(sDir, "/") >> stmpDir&= s >> if exist(stmpdir) then continue >> mkdir stmpdir >> next >> >> catch >> Print "The directory "& stmpdir& "can't be created" >> >> end >> >> >> 2011/6/30 Fabien Bodard: >>> The FINALLY part is not mandatory. If there is a catch part in the >>> function, the FINALLY part must precede it. >>> >>> http://gambasdoc.org/help/lang/finally >>> >>> The second call will be in the catch part not in finally. >>> >>> 2011/6/30 Stephen Bungay: >>>> Hi folks! >>>> >>>> Gambas 2.99 >>>> Fedora 14 >>>> >>>> Using mkdir with "catch" and "finally" to create a recursive SUB to >>>> build a directory structure. >>>> The harness consists of FormMain with one big-friendly button on it, >>>> pretty simple. Here is all of the code; >>>> >>>> ' Gambas class file >>>> >>>> Public Sub _new() >>>> >>>> End >>>> >>>> Public Sub Form_Open() >>>> >>>> End >>>> >>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >>>> Dim sFolderSpec As String >>>> >>>> sFolderSpec = psFolderSpecification >>>> >>>> Mkdir sFolderSpec >>>> >>>> Finally >>>> Mkdir sFolderSpec >>>> >>>> Catch >>>> sFolderSpec = Mid$(psFolderSpecification, 1, >>>> RInStr(psFolderSpecification, ".") - 1) >>>> CreateNewOutputFolder(sFolderSpec) >>>> End >>>> >>>> Public Sub Button1_Click() >>>> >>>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") >>>> >>>> End >>>> >>>> >>>> What I THINK should happen is the initial mkdir should fail, the code >>>> in "catch" should execute and copy the passed in parameter from position >>>> 1 to the charcter just prior to the last "/" and then call itself >>>> passing in the new result as the parameter. When/if that call fails (and >>>> it should as this folder specification doesn't exist in my home dir) it >>>> again recurses. This should go on until it reaches the left-most node in >>>> the directory structure (AFTER the "/home/user"), and THAT one >>>> ("/home/user/Rumple) should be the first to succeed in being created. >>>> The call stack should then unwind, and as it does, the previous SUBS on >>>> the stack should execute their "Finally" section. When the stack has >>>> completely unwound the directory structure should exist.... only that is >>>> not what is happening. >>>> The first Catch doesn't execute (although the directory does not get >>>> created.. meaning an error did indeed occur) and it skips directly to >>>> the "finally". When the mkdir in the "finally" is executed (same >>>> parameter string because we have not yet recursed) the error "File or >>>> Directory does not exist" pops up on the screen. Well there's the error >>>> that I expected from the initial mkdir, but the "catch" didn't execute, >>>> anybody got ideas? >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >> >> > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jul 1 11:30:00 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 1 Jul 2011 11:30:00 +0200 Subject: [Gambas-user] Database not working to select records, but fields/tables identified In-Reply-To: <1309480659.2399.25.camel@...2150...> References: <1309480659.2399.25.camel@...2150...> Message-ID: While res.Available res.MoveNext Print "Field1: " & res["Field1"] Wend me i do that : For each res Print "Field1:" & res!Field1 next It's more simple no ? 2011/7/1 Caveat : > Hi, > > I'm trying to get database access to an ODBC datasource (have been > trying for a few days now). > > I have the simplest Access (.mdb) database in the world: one table > called people, with an id, a first name, a last name, and a phone > number. ?There is no password on the database. ?I can see data in the > people table if I use MDB Viewer (i.e. the table 'people' is NOT > empty!). > > Thanks to a tip from Ricardo, I have gotten as far as a good connection, > can see the ResultFields in the Result as expected (4 of them, with the > expected column names), I get the appropriate error if I deliberately > choose an invalid tablename (like persons for e.g.)... all good... > but... > > I can't seem to get any kind of actual results in my result set, > Result.Available seems to always be False although I know there's data > in the table. > > This is also the case if I run the Database example in Gambas3, so I'm > guessing it's not just my shoddy coding lol > > Here's the code I used (but note **it doesn't work** with the Database > example either!): > > Public Sub tryNewDB() > > ?Dim conn As Connection > ?Dim res As Result > ?Dim sql As String > ?Dim resF As ResultField > ?conn = Connections["NEWDB"] > ?conn.Open > ?sql = "select * from people" > ?res = conn.Exec(sql) > ?For Each resF In res.Fields > ? ?Print "Found field: " & resF.Name > ?Next > ?Print "Result Count: " & res.Count > ?res.MoveFirst > ?Print "Available? " & boolToString(res.Available) > ?While res.Available > ? ?res.MoveNext > ? ?Print "Field1: " & res["Field1"] > ?Wend > > End > > Private Function boolToString(value As Boolean) As String > > ?If value Then > ? ?Return "True" > ?Endif > ?Return "False" > > End > > ************ result *********** > Found field: ID > Found field: Field1 > Found field: Field2 > Found field: Field3 > Result Count: 0 > Available? False > ************ result *********** > > Many thanks in advance for any new pointers... > > Regards, > Caveat > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri Jul 1 11:41:02 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 1 Jul 2011 11:41:02 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: <201106301335.00758.gambas@...1...> <201106301400.19229.gambas@...1...> Message-ID: 2011/7/1 M. Cs. : > O.K. The printing started now, but it prints the texts one over > another regardless to the coordinates given by CFloat(xcor[i]) and > CFloat(ycor[i]). Why? Do you use the true size ? What are the coord ? be carefull as the printer with in pixel is diff?rent as the screen width For exemple in printer_draw() just try taht : Print Paint.Width it's the page wisth in pixel Print Paint.Height 'same thing for the height Printers have generally 1200 dpi ... but it depend of the printer ! in gb.report i use a virtual intermediate size ... in cm all is stored in cm and is converted at the last time in pixel. So i can exactly calculate positions. The font size is directly managed by qt or gtk at the good size in function of the printer resolution. > > 2011/6/30, Fabien Bodard : >> Le 30 juin 2011 14:00, Beno?t Minisini a >> ?crit : >>>> Yes, Benoit, >>>> still even if change the synthax to: >>>> >>>> Public Sub PrintID() >>>> Dim i As Integer >>>> Dim tagok As String[] >>>> samsung = New Printer As "samsung" >>>> If samsung.Configure() Then Return >>>> samsung.Count = 1 >>>> samsung.Print >>>> >>>> End >>>> >>>> Public Sub samsung_Begin() >>>> >>>> End >>>> >>>> Public Sub samsung_Draw() >>>> Dim i As Integer >>>> Dim tagok As String[] >>>> tagok = Split(datae[curr], ";") >>>> For i = 0 To tagok.Count - 1 >>>> Paint.Font = Font["Lucida Sans"] >>>> Paint.Font.Size = lett[i] >>>> Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) >> >> 'hey tou forgot that !! >> >> Paint.fill >> >> >> >> >>>> Next >>>> End >>>> >>>> It prints blank pages only, while the Printer example works O.K. >>>> I don't understand this at all. I'm wrestling with this since 3 days. >>>> >>> >>> If you send me a project, I will be able to look deeper in your problem! >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> when you are using paint it have 2 time : >> >> creating the path >> >> filling or trace it >> >> >> To fill it : Paint.fill >> >> To trace the border : Paint.Stroke >> >> You can do the both : >> >> Paint.Fill(true) >> Paint.Stroke >> >> >> If you want to have a letter With a border Red and the middle yellow >> Paint.Font.Size = 16 >> Paint.Text("a",1,1) >> Paint.Brush = Paint.Color(color.yellow) >> Paint.Fill(true) >> Paint.Brush = paint.Color(Color.red) >> Paint.Fill >> >> >> >> So now your code will be >> >> >> >> -- >> Fabien Bodard >> >> Public Sub samsung_Draw() >> ? Dim i As Integer >> ? Dim tagok As String[] >> ? tagok = Split(datae[curr], ";") >> ? For i = 0 To tagok.Count - 1 >> ? ? Paint.Font = Font["Lucida Sans"] >> ? ? Paint.Font.Size = lett[i] >> ? ? Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) >> ? ? Paint.Fill >> ? next >> end >> >> If you forgot the fill statement ... the printer draw nothing >> >> Paint class work like cairo, and is really different of the draw class. >> >> Take a look at the painting example. >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Gambas at ...1950... Fri Jul 1 11:57:54 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 01 Jul 2011 11:57:54 +0200 Subject: [Gambas-user] Database not working to select records, but fields/tables identified In-Reply-To: References: <1309480659.2399.25.camel@...2150...> Message-ID: <1309514274.2399.99.camel@...2150...> Thanks for the tip Fabien! It is indeed simpler... it still doesn't work but it's definitely nicer-looking code which I'll bear in mind for if, errrm of course I mean when, I get it working! I just reported another segfault to Benoit, perhaps in fixing that something will start to work... Thanks and kind regards, Caveat **************** Public Sub Form_Open() 'Print boolToString(True) 'Print boolToString(False) tryNewDB() 'tryE4Y() End Public Sub tryNewDB() Dim conn As Connection Dim res As Result Dim sql As String Dim resF As ResultField conn = Connections["NEWDB"] conn.Open sql = "select * from people" res = conn.Exec(sql) For Each res Print "Field1: " & res!Field1 Next **************** Still no output :-( On Fri, 2011-07-01 at 11:30 +0200, Fabien Bodard wrote: > While res.Available > res.MoveNext > Print "Field1: " & res["Field1"] > Wend > > me i do that : > > > For each res > > Print "Field1:" & res!Field1 > > next > > It's more simple no ? > 2011/7/1 Caveat : > > Hi, > > > > I'm trying to get database access to an ODBC datasource (have been > > trying for a few days now). > > > > I have the simplest Access (.mdb) database in the world: one table > > called people, with an id, a first name, a last name, and a phone > > number. There is no password on the database. I can see data in the > > people table if I use MDB Viewer (i.e. the table 'people' is NOT > > empty!). > > > > Thanks to a tip from Ricardo, I have gotten as far as a good connection, > > can see the ResultFields in the Result as expected (4 of them, with the > > expected column names), I get the appropriate error if I deliberately > > choose an invalid tablename (like persons for e.g.)... all good... > > but... > > > > I can't seem to get any kind of actual results in my result set, > > Result.Available seems to always be False although I know there's data > > in the table. > > > > This is also the case if I run the Database example in Gambas3, so I'm > > guessing it's not just my shoddy coding lol > > > > Here's the code I used (but note **it doesn't work** with the Database > > example either!): > > > > Public Sub tryNewDB() > > > > Dim conn As Connection > > Dim res As Result > > Dim sql As String > > Dim resF As ResultField > > conn = Connections["NEWDB"] > > conn.Open > > sql = "select * from people" > > res = conn.Exec(sql) > > For Each resF In res.Fields > > Print "Found field: " & resF.Name > > Next > > Print "Result Count: " & res.Count > > res.MoveFirst > > Print "Available? " & boolToString(res.Available) > > While res.Available > > res.MoveNext > > Print "Field1: " & res["Field1"] > > Wend > > > > End > > > > Private Function boolToString(value As Boolean) As String > > > > If value Then > > Return "True" > > Endif > > Return "False" > > > > End > > > > ************ result *********** > > Found field: ID > > Found field: Field1 > > Found field: Field2 > > Found field: Field3 > > Result Count: 0 > > Available? False > > ************ result *********** > > > > Many thanks in advance for any new pointers... > > > > Regards, > > Caveat > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From gambas.fr at ...626... Fri Jul 1 12:13:51 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 1 Jul 2011 12:13:51 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0D838B.20709@...221...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> Message-ID: This is the good way in your way ... but it's a bad way in my fill Private Sub CreateNewOutputFolder(sFolderSpec As String) If Not Exist(sFolderSpec) Then Mkdir sFolderSpec Catch 'if problem try on the prec folder CreateNewOutputFolder(File.Dir(sFolderSpec)) 'Re Try the folder creation if all is good Mkdir sFolderSpec End Because you can't manage correctly all the errors. From gwalborn at ...626... Fri Jul 1 12:30:47 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Fri, 1 Jul 2011 06:30:47 -0400 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties Message-ID: Benoit, Done! Here you go! gwalborn -- Gary D. Walborn gwalborn at ...626... -------------- next part -------------- A non-text attachment was scrubbed... Name: Example.zip Type: application/zip Size: 7311 bytes Desc: not available URL: From gwalborn at ...626... Fri Jul 1 13:48:41 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Fri, 1 Jul 2011 07:48:41 -0400 Subject: [Gambas-user] Probable bug with "_unknown" method when used for propertie Message-ID: Benoit, As I expected, the mailing list dropped the project. I made a project that demonstrates the problem using only two small source files (and NO libraries, data files, etc.). Here are the two files. ------------------------------------- Begin MMain.module ---------------------------- ' Gambas module file Public Sub Main() Dim Ex As Example Ex = New Example Print Ex.Data 'This succeeds If Ex.Data = "Test" Then Print "OK" 'This fails End ---------------------------------------End MMain.module ------------------------------- -------------------------------------Begin EXAMPLE.class---------------------------- ' Gambas class file Class Example Public Sub _unknown(...) As Variant Return "Test" End ---------------------------------------End EXAMPLE.class ---------------------------- Hope this is sufficient. gwalborn Gary D. Walborn gwalborn at ...626... From nando_f at ...951... Fri Jul 1 16:36:00 2011 From: nando_f at ...951... (nando) Date: Fri, 1 Jul 2011 10:36:00 -0400 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0D838B.20709@...221...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> Message-ID: <20110701143102.M19285@...951...> In a true multi-user multi-tasking environment the following is good except it is missing one thing: The TRY must be added because during the IF test and the MKDIR, it might have been created. This makes it the list error prone. Private Sub CreateNewOutputFolder(psFolderSpecification As String) Dim sFolderSpec As String sFolderSpec = File.Path(psFolderSpecification) If Exist(sFolderSpec) Then 'ok, do nothing Else TRY Mkdir sFolderSpec <------TRY ADDED HERE End if End And, the whole above can simply be just one line: Private Sub CreateNewOutputFolder(psFolderSpecification As String) TRY MKDIR File.Path(psFolderSpecification) End -Fernando ---------- Original Message ----------- From: Rolf-Werner Eilert To: gambas-user at lists.sourceforge.net Sent: Fri, 01 Jul 2011 10:21:31 +0200 Subject: Re: [Gambas-user] Try Catch fail when using mkdir.... > Hi Stephen, > > my first thought was that it might be If Not Exist... I had such a case > some time ago, and it did not react as expected. Just check if it really > reports TRUE if the directory isn't there. (I remember Benoit explained > why it didn't run correctly in my case, maybe you find the thread in the > archives.) > > Then I thought why do you use an error condition when you could simply > look for the directory and decide whatever when it exists or not? Why > going recursively at all? And you could use File.Path to ensure the the > psFolderSpecification is cut to its correct part. > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > sFolderSpec = File.Path(psFolderSpecification) > > If Exist(sFolderSpec) Then > 'ok, do nothing > Else > Mkdir sFolderSpec > End if > > End > > Regards > > Rolf > > Am 01.07.2011 05:58, schrieb Stephen Bungay: > > Hi Fabien& Tobias; > > > > Thanks for taking the time to reply and putting those SUBs together. > > Another way to do this is to simply execute a "mkdir -p " using the > > command shell, but now that the problem exists I want to figure out why > > the recursive routine is not behaving as expected. > > Fabien, I thought the FINALLY did precede the CATCH within the > > function... did it not? I reprint the SUB here with two additional > > comments, a correction to a typo (thank you Tobias), and a conditional > > surrounding the Mkdir in the Finally section just in case it tries to > > make a directory that already exists and ends up going into an endless > > loop. > > > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > Dim sFolderSpec As String > > > > sFolderSpec = psFolderSpecification > > > > Mkdir sFolderSpec > > > > Finally > > If Not exists(sFolderSpec) Then > > Mkdir sFolderSpec > > End If > > > > Catch > > sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, "/") - 1) > > CreateNewOutputFolder(sFolderSpec) > > End > > > > > > > > > > On 06/30/2011 10:09 AM, Fabien Bodard wrote: > >> private sub CreateDirTree(sDir as string) > >> > >> dim s as string > >> dim stmpDir as string = "/" > >> > >> if sdir begins "/" then sdir = right(sdir,-1) > >> > >> For each s in split(sDir, "/") > >> stmpDir&= s > >> if exist(stmpdir) then continue > >> mkdir stmpdir > >> next > >> > >> catch > >> Print "The directory "& stmpdir& "can't be created" > >> > >> end > >> > >> > >> 2011/6/30 Fabien Bodard: > >>> The FINALLY part is not mandatory. If there is a catch part in the > >>> function, the FINALLY part must precede it. > >>> > >>> http://gambasdoc.org/help/lang/finally > >>> > >>> The second call will be in the catch part not in finally. > >>> > >>> 2011/6/30 Stephen Bungay: > >>>> Hi folks! > >>>> > >>>> Gambas 2.99 > >>>> Fedora 14 > >>>> > >>>> Using mkdir with "catch" and "finally" to create a recursive SUB to > >>>> build a directory structure. > >>>> The harness consists of FormMain with one big-friendly button on it, > >>>> pretty simple. Here is all of the code; > >>>> > >>>> ' Gambas class file > >>>> > >>>> Public Sub _new() > >>>> > >>>> End > >>>> > >>>> Public Sub Form_Open() > >>>> > >>>> End > >>>> > >>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) > >>>> Dim sFolderSpec As String > >>>> > >>>> sFolderSpec = psFolderSpecification > >>>> > >>>> Mkdir sFolderSpec > >>>> > >>>> Finally > >>>> Mkdir sFolderSpec > >>>> > >>>> Catch > >>>> sFolderSpec = Mid$(psFolderSpecification, 1, > >>>> RInStr(psFolderSpecification, ".") - 1) > >>>> CreateNewOutputFolder(sFolderSpec) > >>>> End > >>>> > >>>> Public Sub Button1_Click() > >>>> > >>>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") > >>>> > >>>> End > >>>> > >>>> > >>>> What I THINK should happen is the initial mkdir should fail, the code > >>>> in "catch" should execute and copy the passed in parameter from position > >>>> 1 to the charcter just prior to the last "/" and then call itself > >>>> passing in the new result as the parameter. When/if that call fails (and > >>>> it should as this folder specification doesn't exist in my home dir) it > >>>> again recurses. This should go on until it reaches the left-most node in > >>>> the directory structure (AFTER the "/home/user"), and THAT one > >>>> ("/home/user/Rumple) should be the first to succeed in being created. > >>>> The call stack should then unwind, and as it does, the previous SUBS on > >>>> the stack should execute their "Finally" section. When the stack has > >>>> completely unwound the directory structure should exist.... only that is > >>>> not what is happening. > >>>> The first Catch doesn't execute (although the directory does not get > >>>> created.. meaning an error did indeed occur) and it skips directly to > >>>> the "finally". When the mkdir in the "finally" is executed (same > >>>> parameter string because we have not yet recursed) the error "File or > >>>> Directory does not exist" pops up on the screen. Well there's the error > >>>> that I expected from the initial mkdir, but the "catch" didn't execute, > >>>> anybody got ideas? > >>>> > >>>> ------------------------------------------------------------------------------ > >>>> All of the data generated in your IT infrastructure is seriously valuable. > >>>> Why? It contains a definitive record of application performance, security > >>>> threats, fraudulent activity, and more. Splunk takes this data and makes > >>>> sense of it. IT sense. And common sense. > >>>> http://p.sf.net/sfu/splunk-d2d-c2 > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> > >>> > >>> -- > >>> Fabien Bodard > >>> > >> > >> > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sbungay at ...981... Fri Jul 1 19:16:13 2011 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 01 Jul 2011 13:16:13 -0400 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> Message-ID: <4E0E00DD.4000308@...981...> Greetings Fabien! That works very well, and is so much smaller and cleaner than the SUB you put in the initial email. By the way, that first SUB would have had a problem creating the stmpDir folder, it would, as written, not put in the delimiting "/" characters and would try to create a directory "/homeuser_name" and fail. This was a result of using the "for each" and "Split", necessites the addition of a counter or a boolean variable so the logic knows when it is on the first pass through the loop and handles all other passes by using "stmpDir &= "/" & s" instead of "stmpDir &= s". On 07/01/2011 06:13 AM, Fabien Bodard wrote: > This is the good way in your way ... but it's a bad way in my fill > > Private Sub CreateNewOutputFolder(sFolderSpec As String) > > If Not Exist(sFolderSpec) Then Mkdir sFolderSpec > > Catch > 'if problem try on the prec folder > CreateNewOutputFolder(File.Dir(sFolderSpec)) > 'Re Try the folder creation if all is good > Mkdir sFolderSpec > > End > > > Because you can't manage correctly all the errors. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jul 1 20:21:25 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 1 Jul 2011 21:21:25 +0300 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <20110701143102.M19285@...951...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> <20110701143102.M19285@...951...> Message-ID: File.Path? You mean File.Dir? Jussi On Fri, Jul 1, 2011 at 17:36, nando wrote: > In a true multi-user multi-tasking environment the following is good > except it is missing one thing: > The TRY must be added because during the IF test and the MKDIR, > it might have been created. This makes it the list error prone. > > > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > sFolderSpec = File.Path(psFolderSpecification) > > If Exist(sFolderSpec) Then > 'ok, do nothing > Else > TRY Mkdir sFolderSpec <------TRY ADDED HERE > End if > > End > > > And, the whole above can simply be just one line: > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > TRY MKDIR File.Path(psFolderSpecification) > > End > > -Fernando > > > > > > ---------- Original Message ----------- > From: Rolf-Werner Eilert > To: gambas-user at lists.sourceforge.net > Sent: Fri, 01 Jul 2011 10:21:31 +0200 > Subject: Re: [Gambas-user] Try Catch fail when using mkdir.... > > > Hi Stephen, > > > > my first thought was that it might be If Not Exist... I had such a case > > some time ago, and it did not react as expected. Just check if it really > > reports TRUE if the directory isn't there. (I remember Benoit explained > > why it didn't run correctly in my case, maybe you find the thread in the > > archives.) > > > > Then I thought why do you use an error condition when you could simply > > look for the directory and decide whatever when it exists or not? Why > > going recursively at all? And you could use File.Path to ensure the the > > psFolderSpecification is cut to its correct part. > > > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > Dim sFolderSpec As String > > > > sFolderSpec = File.Path(psFolderSpecification) > > > > If Exist(sFolderSpec) Then > > 'ok, do nothing > > Else > > Mkdir sFolderSpec > > End if > > > > End > > > > Regards > > > > Rolf > > > > Am 01.07.2011 05:58, schrieb Stephen Bungay: > > > Hi Fabien& Tobias; > > > > > > Thanks for taking the time to reply and putting those SUBs > together. > > > Another way to do this is to simply execute a "mkdir -p " using the > > > command shell, but now that the problem exists I want to figure out why > > > the recursive routine is not behaving as expected. > > > Fabien, I thought the FINALLY did precede the CATCH within the > > > function... did it not? I reprint the SUB here with two additional > > > comments, a correction to a typo (thank you Tobias), and a conditional > > > surrounding the Mkdir in the Finally section just in case it tries to > > > make a directory that already exists and ends up going into an endless > > > loop. > > > > > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > > Dim sFolderSpec As String > > > > > > sFolderSpec = psFolderSpecification > > > > > > Mkdir sFolderSpec > > > > > > Finally > > > If Not exists(sFolderSpec) Then > > > Mkdir sFolderSpec > > > End If > > > > > > Catch > > > sFolderSpec = Mid$(psFolderSpecification, 1, > RInStr(psFolderSpecification, "/") - 1) > > > CreateNewOutputFolder(sFolderSpec) > > > End > > > > > > > > > > > > > > > On 06/30/2011 10:09 AM, Fabien Bodard wrote: > > >> private sub CreateDirTree(sDir as string) > > >> > > >> dim s as string > > >> dim stmpDir as string = "/" > > >> > > >> if sdir begins "/" then sdir = right(sdir,-1) > > >> > > >> For each s in split(sDir, "/") > > >> stmpDir&= s > > >> if exist(stmpdir) then continue > > >> mkdir stmpdir > > >> next > > >> > > >> catch > > >> Print "The directory "& stmpdir& "can't be created" > > >> > > >> end > > >> > > >> > > >> 2011/6/30 Fabien Bodard: > > >>> The FINALLY part is not mandatory. If there is a catch part in the > > >>> function, the FINALLY part must precede it. > > >>> > > >>> http://gambasdoc.org/help/lang/finally > > >>> > > >>> The second call will be in the catch part not in finally. > > >>> > > >>> 2011/6/30 Stephen Bungay: > > >>>> Hi folks! > > >>>> > > >>>> Gambas 2.99 > > >>>> Fedora 14 > > >>>> > > >>>> Using mkdir with "catch" and "finally" to create a recursive SUB > to > > >>>> build a directory structure. > > >>>> The harness consists of FormMain with one big-friendly button on > it, > > >>>> pretty simple. Here is all of the code; > > >>>> > > >>>> ' Gambas class file > > >>>> > > >>>> Public Sub _new() > > >>>> > > >>>> End > > >>>> > > >>>> Public Sub Form_Open() > > >>>> > > >>>> End > > >>>> > > >>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > >>>> Dim sFolderSpec As String > > >>>> > > >>>> sFolderSpec = psFolderSpecification > > >>>> > > >>>> Mkdir sFolderSpec > > >>>> > > >>>> Finally > > >>>> Mkdir sFolderSpec > > >>>> > > >>>> Catch > > >>>> sFolderSpec = Mid$(psFolderSpecification, 1, > > >>>> RInStr(psFolderSpecification, ".") - 1) > > >>>> CreateNewOutputFolder(sFolderSpec) > > >>>> End > > >>>> > > >>>> Public Sub Button1_Click() > > >>>> > > >>>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") > > >>>> > > >>>> End > > >>>> > > >>>> > > >>>> What I THINK should happen is the initial mkdir should fail, the > code > > >>>> in "catch" should execute and copy the passed in parameter from > position > > >>>> 1 to the charcter just prior to the last "/" and then call itself > > >>>> passing in the new result as the parameter. When/if that call fails > (and > > >>>> it should as this folder specification doesn't exist in my home dir) > it > > >>>> again recurses. This should go on until it reaches the left-most > node in > > >>>> the directory structure (AFTER the "/home/user"), and THAT one > > >>>> ("/home/user/Rumple) should be the first to succeed in being > created. > > >>>> The call stack should then unwind, and as it does, the previous SUBS > on > > >>>> the stack should execute their "Finally" section. When the stack has > > >>>> completely unwound the directory structure should exist.... only > that is > > >>>> not what is happening. > > >>>> The first Catch doesn't execute (although the directory does not > get > > >>>> created.. meaning an error did indeed occur) and it skips directly > to > > >>>> the "finally". When the mkdir in the "finally" is executed (same > > >>>> parameter string because we have not yet recursed) the error "File > or > > >>>> Directory does not exist" pops up on the screen. Well there's the > error > > >>>> that I expected from the initial mkdir, but the "catch" didn't > execute, > > >>>> anybody got ideas? > > >>>> > > >>>> > ------------------------------------------------------------------------------ > > >>>> All of the data generated in your IT infrastructure is seriously > valuable. > > >>>> Why? It contains a definitive record of application performance, > security > > >>>> threats, fraudulent activity, and more. Splunk takes this data and > makes > > >>>> sense of it. IT sense. And common sense. > > >>>> http://p.sf.net/sfu/splunk-d2d-c2 > > >>>> _______________________________________________ > > >>>> Gambas-user mailing list > > >>>> Gambas-user at lists.sourceforge.net > > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>>> > > >>> > > >>> > > >>> -- > > >>> Fabien Bodard > > >>> > > >> > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > All of the data generated in your IT infrastructure is seriously > valuable. > > > Why? It contains a definitive record of application performance, > security > > > threats, fraudulent activity, and more. Splunk takes this data and > makes > > > sense of it. IT sense. And common sense. > > > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously > valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jul 1 20:27:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 01 Jul 2011 18:27:31 +0000 Subject: [Gambas-user] Issue 73 in gambas: Gambas 3 under LXDE Message-ID: <0-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 73 by anishp... at ...626...: Gambas 3 under LXDE http://code.google.com/p/gambas/issues/detail?id=73 1) I am a first time linux programmer. Please refer the screenshots. I am using Gambas 3 in LinuxMint LXDE. The default colour of forground of text is white. So It's unreadble in most cases. So I try to change some colors in preference. But now as good as it in Linuxmint Genome. Please clear it. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Unknown Revision: Unknown Operating system: Linux Distribution: LinuxMint Architecture: x86 GUI component: Unknown Desktop used: LXDE Hope you can fix this problem. With Thanks Anish Attachments: Gambas_ide.png 86.6 KB Gambas_preferance.png 35.7 KB From karl.reinl at ...9... Fri Jul 1 21:15:09 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Fri, 01 Jul 2011 21:15:09 +0200 Subject: [Gambas-user] for me, a big step Message-ID: <1309547709.6339.6.camel@...40...> Salut, found today a very important command (for me) : xdg-open use : xdg-open file I'v tested on Ubuntu and Mandriva (gnom and kde). That saves a lot of coding and entries in config-files -- Amicalement Charlie From fabianfloresvadell at ...626... Fri Jul 1 23:28:09 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Fri, 1 Jul 2011 18:28:09 -0300 Subject: [Gambas-user] a observer in a form can't catch an event from other class In-Reply-To: <201106292219.17303.gambas@...1...> References: <201106292219.17303.gambas@...1...> Message-ID: 2011/6/29 Beno?t Minisini : > > Can you make a little project for me so that I can test exactly your code? > > -- > Beno?t Minisini Thanks Beno?t, but that's unnecesary. I quickly found the error in my code. By the way, I thought that Gambas events could be useful to decoupling the logic of my program from the presentation, but I found that would need a selective mecanism to lock the receiver, so, some events would be blocked but no others. Gambas event haven't this feature, as far I know. Now, I'm thinking of using some design pattern, maybe observer or MVC, I don't know yet. What I want is have the view separated from the logic. My program is a reimplementation the classic sokoban game, inspired in the example of Pablo Mileti. But I want explore the posibility of implement several views: the first (finished) is the basic one, using a form, containers and controls PictureBox; the second, maybe, by using a Drawing Area; and the third using SDL. So, to me is fundamental separate the logic (the model) from the presentation (the view). ?Some suggestion? ?How would be possible implement the MVC pattern in Gambas? (The controller is the part that I'm not figured how to do) -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Fri Jul 1 23:28:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Jul 2011 23:28:50 +0200 Subject: [Gambas-user] for me, a big step In-Reply-To: <1309547709.6339.6.camel@...40...> References: <1309547709.6339.6.camel@...40...> Message-ID: <201107012328.50986.gambas@...1...> > Salut, > > found today a very important command (for me) : xdg-open > > use : xdg-open file > > I'v tested on Ubuntu and Mandriva (gnom and kde). > That saves a lot of coding and entries in config-files This is what Desktop.Open() uses in Gambas to open files in a desktop- independent way. Regards, -- Beno?t Minisini From joserribeiro26 at ...626... Sat Jul 2 01:05:23 2011 From: joserribeiro26 at ...626... (joserribeiro26 at ...626...) Date: Fri, 01 Jul 2011 23:05:23 +0000 Subject: [Gambas-user] G Message-ID: <4e0e52b5.ea9bec0a.6b5c.1d69@...2392...> Hg ---------- Jos? Ribeiro From gambas.fr at ...626... Sat Jul 2 11:26:24 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 2 Jul 2011 11:26:24 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0E00DD.4000308@...981...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> <4E0E00DD.4000308@...981...> Message-ID: sorry i've done it directly without gambas ... the correction : private sub CreateDirTree(sDir as string) dim s as string if sdir begins "/" then sdir = right(sdir,-1) For each s in split(sDir, "/") sDir &/= s if exist(stmpdir) then continue mkdir stmpdir next catch Print "The directory " & stmpdir & "can't be created" end 2011/7/1 Stephen Bungay : > ? Greetings Fabien! > > ? That works very well, and is so much smaller and cleaner than the SUB > you put in the initial email. By the way, that first SUB would have had > a problem creating the stmpDir folder, it would, as written, not put in > the delimiting "/" characters and would try to create a directory > "/homeuser_name" and fail. This was a result of using the "for each" and > "Split", necessites the addition of a counter or a boolean variable so > the logic knows when it is on the first pass through the loop and > handles all other passes by using "stmpDir &= "/" & s" ?instead of > "stmpDir &= s". > > On 07/01/2011 06:13 AM, Fabien Bodard wrote: >> This is the good way in your way ... but it's a bad way in my fill >> >> Private Sub CreateNewOutputFolder(sFolderSpec As String) >> >> ? ?If Not Exist(sFolderSpec) Then Mkdir sFolderSpec >> >> ? Catch >> ? ? ?'if problem try on the prec folder >> ? ? ?CreateNewOutputFolder(File.Dir(sFolderSpec)) >> ? ? ?'Re Try the folder creation if all is good >> ? ? ?Mkdir sFolderSpec >> >> End >> >> >> Because you can't manage correctly all the errors. >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Jul 2 11:39:01 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 2 Jul 2011 11:39:01 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <20110701143102.M19285@...951...> References: <4E0C732B.2090208@...981...> <4E0D45F0.9060309@...981...> <4E0D838B.20709@...221...> <20110701143102.M19285@...951...> Message-ID: 2011/7/1 nando : > In a true multi-user multi-tasking environment the following is good > except it is missing one thing: > The TRY must be added because during the IF test and the MKDIR, > it might have been created. ?This makes it the list error prone. > > > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > ? ?sFolderSpec = File.Path(psFolderSpecification) > > ? ?If Exist(sFolderSpec) Then > ? ? ? ? 'ok, do nothing > ? ?Else > ? ? ? ? TRY Mkdir sFolderSpec ? ?<------TRY ADDED HERE > ? ?End if > > End > > > And, the whole above can simply be just one line: > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > > ? ?TRY MKDIR File.Path(psFolderSpecification) > > End well in a not known world maybe :) but not here for two reason : first it's file.dir then when the parent dir is created ... we need to create the child one ... where are you do that ? With your algorithm you will create just one directory ... the first that can be done ... there is nothing for the suite. > -Fernando > > > > > > ---------- Original Message ----------- > From: Rolf-Werner Eilert > To: gambas-user at lists.sourceforge.net > Sent: Fri, 01 Jul 2011 10:21:31 +0200 > Subject: Re: [Gambas-user] Try Catch fail when using mkdir.... > >> Hi Stephen, >> >> my first thought was that it might be If Not Exist... I had such a case >> some time ago, and it did not react as expected. Just check if it really >> reports TRUE if the directory isn't there. (I remember Benoit explained >> why it didn't run correctly in my case, maybe you find the thread in the >> archives.) >> >> Then I thought why do you use an error condition when you could simply >> look for the directory and decide whatever when it exists or not? Why >> going recursively at all? And you could use File.Path to ensure the ?the >> psFolderSpecification is cut to its correct part. >> >> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >> Dim sFolderSpec As String >> >> ? ? ? sFolderSpec = File.Path(psFolderSpecification) >> >> ? ? ? If Exist(sFolderSpec) Then >> ? ? ? ? ? ? ? 'ok, do nothing >> ? ? ? Else >> ? ? ? ? ? ? ? Mkdir sFolderSpec >> ? ? ? End if >> >> End >> >> Regards >> >> Rolf >> >> Am 01.07.2011 05:58, schrieb Stephen Bungay: >> > ? ? Hi Fabien& ?Tobias; >> > >> > ? ? ?Thanks for taking the time to reply and putting those SUBs together. >> > Another way to do this is to simply execute a "mkdir -p " using the >> > command shell, but now that the problem exists I want to figure out why >> > the recursive routine is not behaving as expected. >> > ? ? ?Fabien, I thought the FINALLY did precede the CATCH within the >> > function... did it not? I reprint the SUB here with two additional >> > comments, a correction to a typo (thank you Tobias), and a conditional >> > surrounding the Mkdir in the Finally section just in case it tries to >> > make a directory that already exists and ends up going into an endless >> > loop. >> > >> > Private Sub CreateNewOutputFolder(psFolderSpecification As String) >> > ? ? Dim sFolderSpec As String >> > >> > ? ? sFolderSpec = psFolderSpecification >> > >> > ? ? Mkdir sFolderSpec >> > >> > ? ? Finally >> > ? ? ? If Not exists(sFolderSpec) Then >> > ? ? ? ? ?Mkdir sFolderSpec >> > ? ? ? End If >> > >> > ? ? Catch >> > ? ? ? sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, "/") - 1) >> > ? ? ? CreateNewOutputFolder(sFolderSpec) >> > End >> > >> > >> > >> > >> > On 06/30/2011 10:09 AM, Fabien Bodard wrote: >> >> private sub CreateDirTree(sDir as string) >> >> >> >> ? ? dim s as string >> >> ? ? dim stmpDir as string = "/" >> >> >> >> ? ? if sdir begins "/" then sdir = right(sdir,-1) >> >> >> >> ? ? For each s in split(sDir, "/") >> >> ? ? ? stmpDir&= s >> >> ? ? ? if exist(stmpdir) then continue >> >> ? ? ? mkdir stmpdir >> >> ? ? next >> >> >> >> catch >> >> Print "The directory "& ? stmpdir& ? "can't be created" >> >> >> >> end >> >> >> >> >> >> 2011/6/30 Fabien Bodard: >> >>> The FINALLY part is not mandatory. If there is a catch part in the >> >>> function, the FINALLY part must precede it. >> >>> >> >>> http://gambasdoc.org/help/lang/finally >> >>> >> >>> The second call will be in the catch part not in finally. >> >>> >> >>> 2011/6/30 Stephen Bungay: >> >>>> Hi folks! >> >>>> >> >>>> Gambas 2.99 >> >>>> Fedora 14 >> >>>> >> >>>> ? ? Using mkdir with "catch" and "finally" to create a recursive SUB to >> >>>> build a directory structure. >> >>>> ? ? The harness consists of FormMain with one big-friendly button on it, >> >>>> pretty simple. Here is all of the code; >> >>>> >> >>>> ' Gambas class file >> >>>> >> >>>> Public Sub _new() >> >>>> >> >>>> End >> >>>> >> >>>> Public Sub Form_Open() >> >>>> >> >>>> End >> >>>> >> >>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >> >>>> ? ? Dim sFolderSpec As String >> >>>> >> >>>> ? ? sFolderSpec = psFolderSpecification >> >>>> >> >>>> ? ? Mkdir sFolderSpec >> >>>> >> >>>> ? ? Finally >> >>>> ? ? ? Mkdir sFolderSpec >> >>>> >> >>>> ? ? Catch >> >>>> ? ? ? sFolderSpec = Mid$(psFolderSpecification, 1, >> >>>> RInStr(psFolderSpecification, ".") - 1) >> >>>> ? ? ? CreateNewOutputFolder(sFolderSpec) >> >>>> End >> >>>> >> >>>> Public Sub Button1_Click() >> >>>> >> >>>> ? ? CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") >> >>>> >> >>>> End >> >>>> >> >>>> >> >>>> ? ? What I THINK should happen is the initial mkdir should fail, the code >> >>>> in "catch" should execute and copy the passed in parameter from position >> >>>> 1 to the charcter just prior to the last "/" and then call itself >> >>>> passing in the new result as the parameter. When/if that call fails (and >> >>>> it should as this folder specification doesn't exist in my home dir) it >> >>>> again recurses. This should go on until it reaches the left-most node in >> >>>> the directory structure (AFTER the "/home/user"), and THAT one >> >>>> ("/home/user/Rumple) should be the first to succeed in being created. >> >>>> The call stack should then unwind, and as it does, the previous SUBS on >> >>>> the stack should execute their "Finally" section. When the stack has >> >>>> completely unwound the directory structure should exist.... only that is >> >>>> not what is happening. >> >>>> ? ? The first Catch doesn't execute (although the directory does not get >> >>>> created.. meaning an error did indeed occur) and it skips directly to >> >>>> the "finally". When the mkdir in the "finally" is executed ?(same >> >>>> parameter string because we have not yet recursed) the error "File or >> >>>> Directory does not exist" pops up on the screen. Well there's the error >> >>>> that I expected from the initial mkdir, but the "catch" didn't execute, >> >>>> anybody got ideas? >> >>>> >> >>>> ------------------------------------------------------------------------------ >> >>>> All of the data generated in your IT infrastructure is seriously valuable. >> >>>> Why? It contains a definitive record of application performance, security >> >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >> >>>> sense of it. IT sense. And common sense. >> >>>> http://p.sf.net/sfu/splunk-d2d-c2 >> >>>> _______________________________________________ >> >>>> Gambas-user mailing list >> >>>> Gambas-user at lists.sourceforge.net >> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>> >> >>> >> >>> >> >>> -- >> >>> Fabien Bodard >> >>> >> >> >> >> >> > >> > >> > ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously valuable. >> > Why? It contains a definitive record of application performance, security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2d-c2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Jul 2 11:46:02 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 2 Jul 2011 11:46:02 +0200 Subject: [Gambas-user] a observer in a form can't catch an event from other class In-Reply-To: References: <201106292219.17303.gambas@...1...> Message-ID: 2011/7/1 Fabi?n Flores Vadell : > 2011/6/29 Beno?t Minisini : >> >> Can you make a little project for me so that I can test exactly your code? >> >> -- >> Beno?t Minisini > > Thanks Beno?t, but that's unnecesary. I quickly found the error in my > code. By the way, I thought that Gambas events could be useful to > decoupling the logic of my program from the presentation, but I found > that would need a selective mecanism to lock the receiver, so, some > events would be blocked but no others. Gambas event haven't this > feature, as far I know. > > Now, I'm thinking of using some design pattern, maybe observer or MVC, > I don't know yet. What I want is have the view separated from the > logic. > > My program is a reimplementation the classic sokoban game, inspired in > the example of Pablo Mileti. But I want explore the posibility of > implement several views: the first (finished) is the basic one, using > a form, containers and controls PictureBox; the second, maybe, by > using a Drawing Area; and the third using SDL. > > So, to me is fundamental separate the logic (the model) from the > presentation (the view). > > ?Some suggestion? ?How would be possible implement the MVC pattern in > Gambas? (The controller is the part that I'm not figured how to do) > hum well in fact the engine will return an array structure for the game plate and users status... then the viewer deal with these info to display it. you need a client/server concept as the view can be really different and the libs not compatibles. For that you can use gb.dbus, or simply a socket.. > -- > Fabi?n Flores Vadell > www.comoprogramarcongambas.blogspot.com > www.speedbooksargentina.blogspot.com > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Karl.Reinl at ...2345... Sat Jul 2 18:25:34 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 02 Jul 2011 18:25:34 +0200 Subject: [Gambas-user] for me, a big step In-Reply-To: <201107012328.50986.gambas@...1...> References: <1309547709.6339.6.camel@...40...> <201107012328.50986.gambas@...1...> Message-ID: <1309623934.6571.1.camel@...40...> Am Freitag, den 01.07.2011, 23:28 +0200 schrieb Beno?t Minisini: > > Salut, > > > > found today a very important command (for me) : xdg-open > > > > use : xdg-open file > > > > I'v tested on Ubuntu and Mandriva (gnom and kde). > > That saves a lot of coding and entries in config-files > > This is what Desktop.Open() uses in Gambas to open files in a desktop- > independent way. > > Regards, > Salut, that's great, so it is build in in the next version. Me I still work with gambas2. -- Amicalement Charlie From gambas at ...1... Sun Jul 3 00:30:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 00:30:14 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: References: Message-ID: <201107030030.14553.gambas@...1...> > Benoit, > > Done! Here you go! > > gwalborn OK, the problem is worse than I thought. It is a deep design error in Gambas, that prevent _unknown from dealing with properties in all possible cases. I will search again for a solution, but I am not optimistic! :-/ Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 3 04:07:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 04:07:49 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: <201107030030.14553.gambas@...1...> References: <201107030030.14553.gambas@...1...> Message-ID: <201107030407.49129.gambas@...1...> > > Benoit, > > > > Done! Here you go! > > > > gwalborn > > OK, the problem is worse than I thought. It is a deep design error in > Gambas, that prevent _unknown from dealing with properties in all possible > cases. > > I will search again for a solution, but I am not optimistic! :-/ > > Regards, Here is the solution I propose: A new special method, named "_property" must be implemented if you want to handle unknown properties. This function takes no argument, and must return a boolean. The name of the unknown symbol is stored in Param.Name, and the function must return if the symbol is actually a property or not (i.e. a method). If _property is not implemented, all unknown symbols are methods. Regards, -- Beno?t Minisini From mohareve at ...626... Sun Jul 3 14:06:51 2011 From: mohareve at ...626... (M. Cs.) Date: Sun, 3 Jul 2011 14:06:51 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: <201106301335.00758.gambas@...1...> <201106301400.19229.gambas@...1...> Message-ID: I've tried to do exactly what I've done in G2: giving coordinates in original pixel sizes of the image. Can I set the resolution to 300 dpi and to use the originally measured horizontal and vertical pixel coordinates for printing? You know the program I'm working on is right about the using mouse coordinates for positioning the text, to avoid the unnecessary measurement coordinate's transformation. But as it seems to me, G3 is about how to make simple things complicated :( Thanks anyway, I'll try to fix it. Csaba 2011/7/1, Fabien Bodard : > 2011/7/1 M. Cs. : >> O.K. The printing started now, but it prints the texts one over >> another regardless to the coordinates given by CFloat(xcor[i]) and >> CFloat(ycor[i]). Why? > Do you use the true size ? > > What are the coord ? > > be carefull as the printer with in pixel is diff?rent as the screen width > > > For exemple in printer_draw() just try taht : > > > Print Paint.Width it's the page wisth in pixel > Print Paint.Height 'same thing for the height > > Printers have generally 1200 dpi ... but it depend of the printer ! > > in gb.report i use a virtual intermediate size ... in cm > > all is stored in cm and is converted at the last time in pixel. So i > can exactly calculate positions. > > The font size is directly managed by qt or gtk at the good size in > function of the printer resolution. > > > > >> >> 2011/6/30, Fabien Bodard : >>> Le 30 juin 2011 14:00, Beno?t Minisini a >>> ?crit : >>>>> Yes, Benoit, >>>>> still even if change the synthax to: >>>>> >>>>> Public Sub PrintID() >>>>> Dim i As Integer >>>>> Dim tagok As String[] >>>>> samsung = New Printer As "samsung" >>>>> If samsung.Configure() Then Return >>>>> samsung.Count = 1 >>>>> samsung.Print >>>>> >>>>> End >>>>> >>>>> Public Sub samsung_Begin() >>>>> >>>>> End >>>>> >>>>> Public Sub samsung_Draw() >>>>> Dim i As Integer >>>>> Dim tagok As String[] >>>>> tagok = Split(datae[curr], ";") >>>>> For i = 0 To tagok.Count - 1 >>>>> Paint.Font = Font["Lucida Sans"] >>>>> Paint.Font.Size = lett[i] >>>>> Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) >>> >>> 'hey tou forgot that !! >>> >>> Paint.fill >>> >>> >>> >>> >>>>> Next >>>>> End >>>>> >>>>> It prints blank pages only, while the Printer example works O.K. >>>>> I don't understand this at all. I'm wrestling with this since 3 days. >>>>> >>>> >>>> If you send me a project, I will be able to look deeper in your problem! >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> when you are using paint it have 2 time : >>> >>> creating the path >>> >>> filling or trace it >>> >>> >>> To fill it : Paint.fill >>> >>> To trace the border : Paint.Stroke >>> >>> You can do the both : >>> >>> Paint.Fill(true) >>> Paint.Stroke >>> >>> >>> If you want to have a letter With a border Red and the middle yellow >>> Paint.Font.Size = 16 >>> Paint.Text("a",1,1) >>> Paint.Brush = Paint.Color(color.yellow) >>> Paint.Fill(true) >>> Paint.Brush = paint.Color(Color.red) >>> Paint.Fill >>> >>> >>> >>> So now your code will be >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> Public Sub samsung_Draw() >>> ? Dim i As Integer >>> ? Dim tagok As String[] >>> ? tagok = Split(datae[curr], ";") >>> ? For i = 0 To tagok.Count - 1 >>> ? ? Paint.Font = Font["Lucida Sans"] >>> ? ? Paint.Font.Size = lett[i] >>> ? ? Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) >>> ? ? Paint.Fill >>> ? next >>> end >>> >>> If you forgot the fill statement ... the printer draw nothing >>> >>> Paint class work like cairo, and is really different of the draw class. >>> >>> Take a look at the painting example. >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jul 3 15:20:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 15:20:55 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: Message-ID: <201107031520.56001.gambas@...1...> > I've tried to do exactly what I've done in G2: giving coordinates in > original pixel sizes of the image. > Can I set the resolution to 300 dpi and to use the originally measured > horizontal and vertical pixel coordinates for printing? You know the > program I'm working on is right about the using mouse coordinates for > positioning the text, to avoid the unnecessary measurement > coordinate's transformation. But as it seems to me, G3 is about how to > make simple things complicated :( > > Thanks anyway, I'll try to fix it. > > Csaba > There are three reasons for the new Printer API in Gambas 3 : - The Qt drawing model has changed. - GTK+ got a printer API that uses Cairo. - The Gambas 2 Printer API was blocking the GUI. So it is a bit more complicated now, as you have to use events, and the new Paint class that mimics the Cairo API. Otherwise, there is no "unnecessary coordinate transformation". If you using screen coordinates for printing in Gambas 2 worked, then it just means that you were lucky. Because doing that is as false in Gambas 2 as it is in Gambas 3. In other words, you have to do coordinate transformation. To do that, for example, you draw inside the (0, 0, Printer.PaperWidth, Printer.PaperHeight) rectangle, each unit being a millimeter. And before calling the Paint method, you scale the rectangle to (0, 0, Draw.Width, Draw.Height). To do this scaling, you have the "Paint matrix", i.e. the Paint.Scale() method. I will try to add these explanations to the wiki. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jul 3 20:06:15 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Jul 2011 20:06:15 +0200 Subject: [Gambas-user] Component requirements Message-ID: <4E10AF97.6010502@...20...> hi, in a component, i need the gb.net component and so i added it to the list in requirements tab and compiled everything. if my component gets loaded, i get an error saying that i use an unknown symbol or something like that (it's some time ago and i just remembered that i wanted to ask for this) i thought that the requirements will be loaded automatically? (but this isn't said in the docs, i just noticed) i tried to load gb.net manually but it didn't succeed. btw., i also load my own component manually with Component.Load(). how do i get it working? regards, tobi From gambas at ...1... Sun Jul 3 20:09:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 20:09:00 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <4E10AF97.6010502@...20...> References: <4E10AF97.6010502@...20...> Message-ID: <201107032009.00722.gambas@...1...> > hi, > > in a component, i need the gb.net component and so i added it to the > list in requirements tab and compiled everything. if my component gets > loaded, i get an error saying that i use an unknown symbol or something > like that (it's some time ago and i just remembered that i wanted to ask > for this) i thought that the requirements will be loaded automatically? > (but this isn't said in the docs, i just noticed) > i tried to load gb.net manually but it didn't succeed. btw., i also load > my own component manually with Component.Load(). > how do i get it working? > > > regards, > tobi > Please send your project and I will tell you. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 3 20:09:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 20:09:54 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: <201107030407.49129.gambas@...1...> References: <201107030030.14553.gambas@...1...> <201107030407.49129.gambas@...1...> Message-ID: <201107032009.54796.gambas@...1...> > > > Benoit, > > > > > > Done! Here you go! > > > > > > gwalborn > > > > OK, the problem is worse than I thought. It is a deep design error in > > Gambas, that prevent _unknown from dealing with properties in all > > possible cases. > > > > I will search again for a solution, but I am not optimistic! :-/ > > > > Regards, > > Here is the solution I propose: > > A new special method, named "_property" must be implemented if you want to > handle unknown properties. > > This function takes no argument, and must return a boolean. The name of the > unknown symbol is stored in Param.Name, and the function must return if the > symbol is actually a property or not (i.e. a method). > > If _property is not implemented, all unknown symbols are methods. > > Regards, That solution has been completely implemented in revision #3916. Please tell me if you encounter any problem. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jul 3 20:15:13 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Jul 2011 20:15:13 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107032009.00722.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107032009.00722.gambas@...1...> Message-ID: <4E10B1B1.1030602@...20...> hi, > > Please send your project and I will tell you. > which project? component or project that uses it? actually there is no "project". both are test cases. in the component, there is: PUBLIC SUB _init() DIM s AS NEW Socket END and in the project: PUBLIC SUB Button1_Click() Component.Load("test_comp") END regards, tobi From gambas at ...1... Sun Jul 3 20:22:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 20:22:08 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <4E10B1B1.1030602@...20...> References: <4E10AF97.6010502@...20...> <201107032009.00722.gambas@...1...> <4E10B1B1.1030602@...20...> Message-ID: <201107032022.08447.gambas@...1...> > hi, > > > Please send your project and I will tell you. > > which project? component or project that uses it? > actually there is no "project". both are test cases. > in the component, there is: > PUBLIC SUB _init() > DIM s AS NEW Socket > END > > and in the project: > PUBLIC SUB Button1_Click() > Component.Load("test_comp") > END > > regards, > tobi > I need the component project. -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jul 3 20:30:45 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Jul 2011 20:30:45 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107032022.08447.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107032009.00722.gambas@...1...> <4E10B1B1.1030602@...20...> <201107032022.08447.gambas@...1...> Message-ID: <4E10B555.60406@...20...> > > I need the component project. > o.k., the error was "Cannot load class 'Socket': unable to load class file". component is attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: test_comp-0.0.2.tar.gz Type: application/x-gzip Size: 8018 bytes Desc: not available URL: From gambas at ...1... Sun Jul 3 20:38:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jul 2011 20:38:17 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <4E10B555.60406@...20...> References: <4E10AF97.6010502@...20...> <201107032022.08447.gambas@...1...> <4E10B555.60406@...20...> Message-ID: <201107032038.17096.gambas@...1...> > > I need the component project. > > o.k., the error was "Cannot load class 'Socket': unable to load class > file". component is attached. OK, I see. Component.Load("test_comp") will not force the load of the gb.net component. At the moment, the components dependencies are computed by the IDE, not at runtime. I admit that should not be the case, but everything is not perfect yet. :-) I think you can workaround the problem by: - Checking the gb.net component in your project. - Or adding 'Component.Load("gb.net")' in the component source code. Note that the problem is the same in Gambas 3. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jul 3 21:02:33 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Jul 2011 21:02:33 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107032038.17096.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107032022.08447.gambas@...1...> <4E10B555.60406@...20...> <201107032038.17096.gambas@...1...> Message-ID: <4E10BCC9.3050400@...20...> Beno?t Minisini schrieb: >>> I need the component project. >> o.k., the error was "Cannot load class 'Socket': unable to load class >> file". component is attached. > > OK, I see. > > Component.Load("test_comp") will not force the load of the gb.net component. > At the moment, the components dependencies are computed by the IDE, not at > runtime. > > I admit that should not be the case, but everything is not perfect yet. :-) > > I think you can workaround the problem by: > - Checking the gb.net component in your project. > - Or adding 'Component.Load("gb.net")' in the component source code. > > Note that the problem is the same in Gambas 3. > > Regards, > i thought, i tried your second suggestion already but i'll see. no, it's not working. project attached again. > but everything is not perfect yet. :-) i'm glad to have found something that can be improved ;) but it gets even stranger... (at least, i don't understand it): if i open up the gambas ide and type to the console: ? Component.Load("test_comp") Cannot load class 'Socket': Unable to load class file so my problem persists. then i clicked on the Save button to save my project and the ide crashes with something said about the "Null Object" if i already clicked to the Save button or "Unable to load class 'Save'..." if i click the first time. it's the same thing with almost any other control and even if i minimize the window... (as i tested it again, the Save button worked... but the Create New Project button not. i hope, you can reproduce the error) regards, tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: test_comp-0.0.6.tar.gz Type: application/x-gzip Size: 8391 bytes Desc: not available URL: From support at ...2529... Sun Jul 3 21:14:14 2011 From: support at ...2529... (John Spikowski) Date: Sun, 03 Jul 2011 12:14:14 -0700 Subject: [Gambas-user] Toolbox Display - GB3 Message-ID: <1309720454.2019.19.camel@...1833...> I noticed that the only way to get the component toolbox to display in the IDE was to have the properties panel enabled first. (display menu option) Is there a reason the property panel needs to be present before the IDE tools are available? From support at ...2529... Sun Jul 3 21:18:14 2011 From: support at ...2529... (John Spikowski) Date: Sun, 03 Jul 2011 12:18:14 -0700 Subject: [Gambas-user] Component requirements In-Reply-To: <4E10BCC9.3050400@...20...> References: <4E10AF97.6010502@...20...> <201107032022.08447.gambas@...1...> <4E10B555.60406@...20...> <201107032038.17096.gambas@...1...> <4E10BCC9.3050400@...20...> Message-ID: <1309720694.2019.22.camel@...1833...> On Sun, 2011-07-03 at 21:02 +0200, tobias wrote: > Beno?t Minisini schrieb: > >>> I need the component project. > >> o.k., the error was "Cannot load class 'Socket': unable to load class > >> file". component is attached. > > > > OK, I see. > > > > Component.Load("test_comp") will not force the load of the gb.net component. > > At the moment, the components dependencies are computed by the IDE, not at > > runtime. > > > > I admit that should not be the case, but everything is not perfect yet. :-) > > > > I think you can workaround the problem by: > > - Checking the gb.net component in your project. > > - Or adding 'Component.Load("gb.net")' in the component source code. > > > > Note that the problem is the same in Gambas 3. > > > > Regards, > > > > i thought, i tried your second suggestion already but i'll see. > no, it's not working. project attached again. > > but everything is not perfect yet. :-) > i'm glad to have found something that can be improved ;) > > > but it gets even stranger... (at least, i don't understand it): > if i open up the gambas ide and type to the console: > > ? Component.Load("test_comp") > Cannot load class 'Socket': Unable to load class file > > so my problem persists. > then i clicked on the Save button to save my project and the ide crashes > with something said about the "Null Object" if i already clicked to the > Save button or "Unable to load class 'Save'..." if i click the first > time. it's the same thing with almost any other control and even if i > minimize the window... > > (as i tested it again, the Save button worked... but the Create New > Project button not. i hope, you can reproduce the error) > > regards, > tobi Can't load or create? ... looks like file/directory permissions or file mode issues to me. From tobiasboe1 at ...20... Sun Jul 3 21:22:53 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Jul 2011 21:22:53 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <1309720694.2019.22.camel@...1833...> References: <4E10AF97.6010502@...20...> <201107032022.08447.gambas@...1...> <4E10B555.60406@...20...> <201107032038.17096.gambas@...1...> <4E10BCC9.3050400@...20...> <1309720694.2019.22.camel@...1833...> Message-ID: <4E10C18D.1040905@...20...> > Can't load or create? ... looks like file/directory permissions or file > mode issues to me. can't be. usually there is no such error. just when i do Component.Load() in the console before. and the modes of the gambas components aren't likely to change on my system ;) From gwalborn at ...626... Sun Jul 3 23:02:46 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Sun, 3 Jul 2011 17:02:46 -0400 Subject: [Gambas-user] Probable bug with "_unknown" method Message-ID: Benoit, I think I can work with that solution. Unfortunately it will be about a week before I can test it. From gambas at ...1... Mon Jul 4 00:03:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jul 2011 00:03:46 +0200 Subject: [Gambas-user] Toolbox Display - GB3 In-Reply-To: <1309720454.2019.19.camel@...1833...> References: <1309720454.2019.19.camel@...1833...> Message-ID: <201107040003.46114.gambas@...1...> > I noticed that the only way to get the component toolbox to display in > the IDE was to have the properties panel enabled first. (display menu > option) Is there a reason the property panel needs to be present before > the IDE tools are available? > Sorry, I don't understand the point. Properties panel and component toolbox are both part of the form editor. Why do you want one without the other? -- Beno?t Minisini From gambas at ...2524... Mon Jul 4 00:21:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 03 Jul 2011 22:21:51 +0000 Subject: [Gambas-user] Issue 70 in gambas: Package build wizard increments project version number of project being built In-Reply-To: <1-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> <0-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 70 by benoit.m... at ...626...: Package build wizard increments project version number of project being built http://code.google.com/p/gambas/issues/detail?id=70 Fixed in revision #3919: the project version release number is not incremented anymore when making an installation package. From gambas at ...2524... Mon Jul 4 00:25:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 03 Jul 2011 22:25:51 +0000 Subject: [Gambas-user] Issue 72 in gambas: Installation error with reconf In-Reply-To: <0-6813199134517018827-8426048733021506680-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8426048733021506680-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8426048733021506680-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 72 by benoit.m... at ...626...: Installation error with reconf http://code.google.com/p/gambas/issues/detail?id=72 Did you check your libtool/automake/autoconf version numbers? They must match the requirements specified in the release notes of the version you try to compile. And there is no "3.2" version. From gambas at ...2524... Mon Jul 4 00:29:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 03 Jul 2011 22:29:52 +0000 Subject: [Gambas-user] Issue 73 in gambas: Gambas 3 under LXDE In-Reply-To: <0-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 73 by benoit.m... at ...626...: Gambas 3 under LXDE http://code.google.com/p/gambas/issues/detail?id=73 Hu hu. You must install a program named "qtconfig" that will allow to configure the colors used by Qt. When using KDE, this is done by the KDE control panel. On Linux Mint with LXDE, the Qt library may not be correctly configured. From support at ...2529... Mon Jul 4 00:53:45 2011 From: support at ...2529... (John Spikowski) Date: Sun, 03 Jul 2011 15:53:45 -0700 Subject: [Gambas-user] Toolbox Display - GB3 In-Reply-To: <201107040003.46114.gambas@...1...> References: <1309720454.2019.19.camel@...1833...> <201107040003.46114.gambas@...1...> Message-ID: <1309733625.3856.4.camel@...1833...> On Mon, 2011-07-04 at 00:03 +0200, Beno?t Minisini wrote: > > I noticed that the only way to get the component toolbox to display in > > the IDE was to have the properties panel enabled first. (display menu > > option) Is there a reason the property panel needs to be present before > > the IDE tools are available? > > > > Sorry, I don't understand the point. Properties panel and component toolbox > are both part of the form editor. Why do you want one without the other? > I tried to display the toolbox by clicking the view menu option. (nothing happened) It wasn't till I enabled to properties panel did the toolbox appear. If properties are required then if you click on show toolbox, load the properties by default. Making the user try and figure the right combination to make it work is not intuitive. From gambas at ...1... Mon Jul 4 00:59:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jul 2011 00:59:24 +0200 Subject: [Gambas-user] Toolbox Display - GB3 In-Reply-To: <1309733625.3856.4.camel@...1833...> References: <1309720454.2019.19.camel@...1833...> <201107040003.46114.gambas@...1...> <1309733625.3856.4.camel@...1833...> Message-ID: <201107040059.24653.gambas@...1...> > On Mon, 2011-07-04 at 00:03 +0200, Beno?t Minisini wrote: > > > I noticed that the only way to get the component toolbox to display in > > > the IDE was to have the properties panel enabled first. (display menu > > > option) Is there a reason the property panel needs to be present before > > > the IDE tools are available? > > > > Sorry, I don't understand the point. Properties panel and component > > toolbox are both part of the form editor. Why do you want one without > > the other? > > I tried to display the toolbox by clicking the view menu option. > (nothing happened) It wasn't till I enabled to properties panel did the > toolbox appear. If properties are required then if you click on show > toolbox, load the properties by default. Making the user try and figure > the right combination to make it work is not intuitive. > You're right. That shortcut is even actually useless. I will remove it! Regards, -- Beno?t Minisini From demosthenesk at ...626... Mon Jul 4 10:47:41 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 04 Jul 2011 11:47:41 +0300 Subject: [Gambas-user] About Raise Events Message-ID: <1309769261.3236.11.camel@...2493...> Hello, i have a class CCar with an event Run(). When i implement the object hCar in module Main i have to use Object.Attach to use the event handler for the event Run. At page http://gambasdoc.org/help/lang/eventdecl says "By default, Name_EventName is the name of the method called in the event listener when an event is raised." But without Object.Attach(hCar, Me, "hCar") i cannot use the event Example ------------ ' Gambas module file Private hCar As CCar Public Sub Main() hCar = New CCar Object.Attach(hCar, Me, "hCar") hCar.StartEngine hCar.IncreaseSpeed End Public Sub hCar_Run() Print "Car is running" End -------------- in the example if i remove line Object.Attach(hCar, Me, "hCar") and use RAISE in class i cant use Public Sub hCar_Run() as default event handler. i attach the project. to see what i am describing remove line 9 Object.Attach(hCar, Me, "hCar") from Main.module. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project91.tar.gz Type: application/x-compressed-tar Size: 5549 bytes Desc: not available URL: From sotema at ...626... Mon Jul 4 11:25:22 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 04 Jul 2011 11:25:22 +0200 Subject: [Gambas-user] rev 3910 gb.sdl component is disable Message-ID: <1309771522.5938.30.camel@...2516...> Same problem with revision 3920 As usually I first deleted all in trunk. Downloaded last svn revision, execute ./reconf-all then ./configure -C Ubuntu 10.04 x86_64 Trunk 3920 Gnome Kernel 2.6.32-32-generic From gambas.fr at ...626... Mon Jul 4 11:26:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 4 Jul 2011 11:26:17 +0200 Subject: [Gambas-user] About Raise Events In-Reply-To: <1309769261.3236.11.camel@...2493...> References: <1309769261.3236.11.camel@...2493...> Message-ID: 2011/7/4 Demosthenes Koptsis : > Hello, > > i have a class CCar with an event Run(). > > When i implement the object hCar in module Main > i have to use Object.Attach to use the event handler for the event Run. > > At page http://gambasdoc.org/help/lang/eventdecl says > "By default, Name_EventName is the name of the method called in the > event listener when an event is raised." > > > But without Object.Attach(hCar, Me, "hCar") i cannot use the event > > Example > ------------ > ' Gambas module file > > Private hCar As CCar > > Public Sub Main() > --> hCar = New CCar as "hcar" This is how you must declare an event handler ! > > ?hCar.StartEngine > ?hCar.IncreaseSpeed > > End > > Public Sub hCar_Run() > > ?Print "Car is running" > > End > -------------- > > in the example if i remove line > Object.Attach(hCar, Me, "hCar") > > and use RAISE in class i cant use > Public Sub hCar_Run() as default event handler. > > i attach the project. > to see what i am describing remove line 9 > Object.Attach(hCar, Me, "hCar") > from Main.module. > > -- > Regards, > Demosthenes Koptsis. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From demosthenesk at ...626... Mon Jul 4 12:05:07 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 04 Jul 2011 13:05:07 +0300 Subject: [Gambas-user] About Raise Events In-Reply-To: References: <1309769261.3236.11.camel@...2493...> Message-ID: <1309773907.7123.6.camel@...2493...> On Mon, 2011-07-04 at 11:26 +0200, Fabien Bodard wrote: > 2011/7/4 Demosthenes Koptsis : > > Hello, > > > > i have a class CCar with an event Run(). > > > > When i implement the object hCar in module Main > > i have to use Object.Attach to use the event handler for the event Run. > > > > At page http://gambasdoc.org/help/lang/eventdecl says > > "By default, Name_EventName is the name of the method called in the > > event listener when an event is raised." > > > > > > But without Object.Attach(hCar, Me, "hCar") i cannot use the event > > > > Example > > ------------ > > ' Gambas module file > > > > Private hCar As CCar > > > > Public Sub Main() > > > > > > --> hCar = New CCar as "hcar" > > This is how you must declare an event handler ! > Yes i know that. hObject = NEW MyClass Object.Attach(hObject, ME, "EventName") is equivalent to: hObject = NEW MyClass AS "EventName" when i declare an event in a class. EVENT Run in class CCar. i expected the object hCar to autocomplete in editor the hCar_Run as default event handler, as this is done with properties hCar.Doors etc. my question is, why this autocomplete is not done for default event handlers and i should declare a handler hCar ? > > > > > hCar.StartEngine > > hCar.IncreaseSpeed > > > > End > > > > Public Sub hCar_Run() > > > > Print "Car is running" > > > > End > > -------------- > > > > in the example if i remove line > > Object.Attach(hCar, Me, "hCar") > > > > and use RAISE in class i cant use > > Public Sub hCar_Run() as default event handler. > > > > i attach the project. > > to see what i am describing remove line 9 > > Object.Attach(hCar, Me, "hCar") > > from Main.module. > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- Regards, Demosthenes Koptsis. From lordheavym at ...626... Mon Jul 4 12:11:56 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 4 Jul 2011 12:11:56 +0200 Subject: [Gambas-user] rev 3910 gb.sdl component is disable In-Reply-To: <1309771522.5938.30.camel@...2516...> References: <1309771522.5938.30.camel@...2516...> Message-ID: 2011/7/4 Emanuele Sottocorno > Same problem with revision 3920 > > As usually I first deleted all in trunk. Downloaded last svn revision, > execute ./reconf-all then ./configure -C > > Ubuntu 10.04 x86_64 > Trunk 3920 > Gnome > Kernel 2.6.32-32-generic > > what is the output of: pkg-config --debug sdl SDL_ttf glew xcursor ++ From gambas at ...1... Mon Jul 4 15:40:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jul 2011 15:40:41 +0200 Subject: [Gambas-user] About Raise Events In-Reply-To: <1309773907.7123.6.camel@...2493...> References: <1309769261.3236.11.camel@...2493...> <1309773907.7123.6.camel@...2493...> Message-ID: <201107041540.41243.gambas@...1...> > On Mon, 2011-07-04 at 11:26 +0200, Fabien Bodard wrote: > > 2011/7/4 Demosthenes Koptsis : > > > Hello, > > > > > > i have a class CCar with an event Run(). > > > > > > When i implement the object hCar in module Main > > > i have to use Object.Attach to use the event handler for the event Run. > > > > > > At page http://gambasdoc.org/help/lang/eventdecl says > > > "By default, Name_EventName is the name of the method called in the > > > event listener when an event is raised." > > > > > > > > > But without Object.Attach(hCar, Me, "hCar") i cannot use the event > > > > > > Example > > > ------------ > > > ' Gambas module file > > > > > > Private hCar As CCar > > > > > > Public Sub Main() > > > > --> hCar = New CCar as "hcar" > > > > This is how you must declare an event handler ! > > Yes i know that. > > hObject = NEW MyClass > Object.Attach(hObject, ME, "EventName") > > is equivalent to: > > hObject = NEW MyClass AS "EventName" > > > > when i declare an event in a class. > > EVENT Run > > in class CCar. > > i expected the object hCar to autocomplete in editor the > hCar_Run as default event handler, as this is done with properties > hCar.Doors etc. > > my question is, > why this autocomplete is not done for default event handlers and i should > declare a handler hCar ? > Because the IDE can only handle event names declared statically (i.e. with NEW ... AS "xxx"), not those declared dynamically with Object.Attach(). Regards, -- Beno?t Minisini From sotema at ...626... Mon Jul 4 15:56:56 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 04 Jul 2011 15:56:56 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 62, Issue 9 In-Reply-To: References: Message-ID: <1309787816.3724.1.camel@...2516...> > what is the output of: > pkg-config --debug sdl SDL_ttf glew xcursor attached. -------------- next part -------------- Option --debug seen Error printing disabled by default, value of --print-errors: 0 Error printing disabled Adding virtual 'pkg-config' package to list of known packages Cannot open directory '/usr/local/lib/pkgconfig' in package search path: No such file or directory Cannot open directory '/usr/local/lib/pkgconfig/x86_64-linux-gnu' in package search path: No such file or directory Cannot open directory '/usr/local/share/pkgconfig' in package search path: No such file or directory Scanning directory '/usr/lib/pkgconfig' Ignoring file '.' in search directory; not a .pc file Ignoring file '..' in search directory; not a .pc file File 'libpulse-mainloop-glib.pc' appears to be a .pc file Will find package 'libpulse-mainloop-glib' in file '/usr/lib/pkgconfig/libpulse-mainloop-glib.pc' File 'ice.pc' appears to be a .pc file Will find package 'ice' in file '/usr/lib/pkgconfig/ice.pc' File 'xft.pc' appears to be a .pc file Will find package 'xft' in file '/usr/lib/pkgconfig/xft.pc' File 'avahi-client.pc' appears to be a .pc file Will find package 'avahi-client' in file '/usr/lib/pkgconfig/avahi-client.pc' File 'SDL_image.pc' appears to be a .pc file Will find package 'SDL_image' in file '/usr/lib/pkgconfig/SDL_image.pc' File 'lualib50.pc' appears to be a .pc file Will find package 'lualib50' in file '/usr/lib/pkgconfig/lualib50.pc' File 'xt.pc' appears to be a .pc file Will find package 'xt' in file '/usr/lib/pkgconfig/xt.pc' File 'cairo-xlib.pc' appears to be a .pc file Will find package 'cairo-xlib' in file '/usr/lib/pkgconfig/cairo-xlib.pc' File 'alsa.pc' appears to be a .pc file Will find package 'alsa' in file '/usr/lib/pkgconfig/alsa.pc' File 'glu.pc' appears to be a .pc file Will find package 'glu' in file '/usr/lib/pkgconfig/glu.pc' File 'cairo-ps.pc' appears to be a .pc file Will find package 'cairo-ps' in file '/usr/lib/pkgconfig/cairo-ps.pc' File 'QtTest.pc' appears to be a .pc file Will find package 'QtTest' in file '/usr/lib/pkgconfig/QtTest.pc' File 'libdrm.pc' appears to be a .pc file Will find package 'libdrm' in file '/usr/lib/pkgconfig/libdrm.pc' File 'glew.pc' appears to be a .pc file Will find package 'glew' in file '/usr/lib/pkgconfig/glew.pc' File 'imlib2.pc' appears to be a .pc file Will find package 'imlib2' in file '/usr/lib/pkgconfig/imlib2.pc' File 'OpenEXR.pc' appears to be a .pc file Will find package 'OpenEXR' in file '/usr/lib/pkgconfig/OpenEXR.pc' File 'gnome-system-tools.pc' appears to be a .pc file Will find package 'gnome-system-tools' in file '/usr/lib/pkgconfig/gnome-system-tools.pc' File 'omniConnectionMgmt4.pc' appears to be a .pc file Will find package 'omniConnectionMgmt4' in file '/usr/lib/pkgconfig/omniConnectionMgmt4.pc' File 'QtOpenGL.pc' appears to be a .pc file Will find package 'QtOpenGL' in file '/usr/lib/pkgconfig/QtOpenGL.pc' File 'librsvg-2.0.pc' appears to be a .pc file Will find package 'librsvg-2.0' in file '/usr/lib/pkgconfig/librsvg-2.0.pc' File 'libsysfs.pc' appears to be a .pc file Will find package 'libsysfs' in file '/usr/lib/pkgconfig/libsysfs.pc' File 'gthread-2.0.pc' appears to be a .pc file Will find package 'gthread-2.0' in file '/usr/lib/pkgconfig/gthread-2.0.pc' File 'omniCOSDynamic4.pc' appears to be a .pc file Will find package 'omniCOSDynamic4' in file '/usr/lib/pkgconfig/omniCOSDynamic4.pc' File 'vorbisenc.pc' appears to be a .pc file Will find package 'vorbisenc' in file '/usr/lib/pkgconfig/vorbisenc.pc' File 'xtst.pc' appears to be a .pc file Will find package 'xtst' in file '/usr/lib/pkgconfig/xtst.pc' File 'QtDesignerComponents.pc' appears to be a .pc file Will find package 'QtDesignerComponents' in file '/usr/lib/pkgconfig/QtDesignerComponents.pc' File 'x11.pc' appears to be a .pc file Will find package 'x11' in file '/usr/lib/pkgconfig/x11.pc' File 'ibus-table.pc' appears to be a .pc file Will find package 'ibus-table' in file '/usr/lib/pkgconfig/ibus-table.pc' File 'pygoocanvas.pc' appears to be a .pc file Will find package 'pygoocanvas' in file '/usr/lib/pkgconfig/pygoocanvas.pc' File 'caca.pc' appears to be a .pc file Will find package 'caca' in file '/usr/lib/pkgconfig/caca.pc' File 'vorbisfile.pc' appears to be a .pc file Will find package 'vorbisfile' in file '/usr/lib/pkgconfig/vorbisfile.pc' File 'avahi-qt3.pc' appears to be a .pc file Will find package 'avahi-qt3' in file '/usr/lib/pkgconfig/avahi-qt3.pc' File 'freetype2.pc' appears to be a .pc file Will find package 'freetype2' in file '/usr/lib/pkgconfig/freetype2.pc' File 'libbonobo-2.0.pc' appears to be a .pc file Will find package 'libbonobo-2.0' in file '/usr/lib/pkgconfig/libbonobo-2.0.pc' File 'libcurl.pc' appears to be a .pc file Will find package 'libcurl' in file '/usr/lib/pkgconfig/libcurl.pc' File 'gio-2.0.pc' appears to be a .pc file Will find package 'gio-2.0' in file '/usr/lib/pkgconfig/gio-2.0.pc' File 'pangox.pc' appears to be a .pc file Will find package 'pangox' in file '/usr/lib/pkgconfig/pangox.pc' File 'nautilus-sendto.pc' appears to be a .pc file Will find package 'nautilus-sendto' in file '/usr/lib/pkgconfig/nautilus-sendto.pc' File 'QtCLucene.pc' appears to be a .pc file Will find package 'QtCLucene' in file '/usr/lib/pkgconfig/QtCLucene.pc' File 'QtDesigner.pc' appears to be a .pc file Will find package 'QtDesigner' in file '/usr/lib/pkgconfig/QtDesigner.pc' File 'xcb-renderutil.pc' appears to be a .pc file Will find package 'xcb-renderutil' in file '/usr/lib/pkgconfig/xcb-renderutil.pc' File 'libxml-2.0.pc' appears to be a .pc file Will find package 'libxml-2.0' in file '/usr/lib/pkgconfig/libxml-2.0.pc' File 'fixesproto.pc' appears to be a .pc file Will find package 'fixesproto' in file '/usr/lib/pkgconfig/fixesproto.pc' File 'libIDL-2.0.pc' appears to be a .pc file Will find package 'libIDL-2.0' in file '/usr/lib/pkgconfig/libIDL-2.0.pc' File 'libpulse.pc' appears to be a .pc file Will find package 'libpulse' in file '/usr/lib/pkgconfig/libpulse.pc' File 'QtUiTools.pc' appears to be a .pc file Will find package 'QtUiTools' in file '/usr/lib/pkgconfig/QtUiTools.pc' File 'QtCore.pc' appears to be a .pc file Will find package 'QtCore' in file '/usr/lib/pkgconfig/QtCore.pc' File 'libxslt.pc' appears to be a .pc file Will find package 'libxslt' in file '/usr/lib/pkgconfig/libxslt.pc' File 'tomboy-addins.pc' appears to be a .pc file Will find package 'tomboy-addins' in file '/usr/lib/pkgconfig/tomboy-addins.pc' File 'openssl.pc' appears to be a .pc file Will find package 'openssl' in file '/usr/lib/pkgconfig/openssl.pc' File 'xi.pc' appears to be a .pc file Will find package 'xi' in file '/usr/lib/pkgconfig/xi.pc' File 'audiofile.pc' appears to be a .pc file Will find package 'audiofile' in file '/usr/lib/pkgconfig/audiofile.pc' File 'xfixes.pc' appears to be a .pc file Will find package 'xfixes' in file '/usr/lib/pkgconfig/xfixes.pc' File 'dbus-python.pc' appears to be a .pc file Will find package 'dbus-python' in file '/usr/lib/pkgconfig/dbus-python.pc' File 'gdk-x11-2.0.pc' appears to be a .pc file Will find package 'gdk-x11-2.0' in file '/usr/lib/pkgconfig/gdk-x11-2.0.pc' File 'libpcre.pc' appears to be a .pc file Will find package 'libpcre' in file '/usr/lib/pkgconfig/libpcre.pc' File 'compiz-mousepoll.pc' appears to be a .pc file Will find package 'compiz-mousepoll' in file '/usr/lib/pkgconfig/compiz-mousepoll.pc' File 'vorbis.pc' appears to be a .pc file Will find package 'vorbis' in file '/usr/lib/pkgconfig/vorbis.pc' File 'libtasn1.pc' appears to be a .pc file Will find package 'libtasn1' in file '/usr/lib/pkgconfig/libtasn1.pc' File 'QtSvg.pc' appears to be a .pc file Will find package 'QtSvg' in file '/usr/lib/pkgconfig/QtSvg.pc' File 'QtWebKit.pc' appears to be a .pc file Will find package 'QtWebKit' in file '/usr/lib/pkgconfig/QtWebKit.pc' File 'glib-2.0.pc' appears to be a .pc file Will find package 'glib-2.0' in file '/usr/lib/pkgconfig/glib-2.0.pc' File 'compiz-animation.pc' appears to be a .pc file Will find package 'compiz-animation' in file '/usr/lib/pkgconfig/compiz-animation.pc' File 'poppler-glib.pc' appears to be a .pc file Will find package 'poppler-glib' in file '/usr/lib/pkgconfig/poppler-glib.pc' File 'gdk-pixbuf-xlib-2.0.pc' appears to be a .pc file Will find package 'gdk-pixbuf-xlib-2.0' in file '/usr/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc' File 'f-spot.pc' appears to be a .pc file Will find package 'f-spot' in file '/usr/lib/pkgconfig/f-spot.pc' File 'QtScript.pc' appears to be a .pc file Will find package 'QtScript' in file '/usr/lib/pkgconfig/QtScript.pc' File 'cairo-svg.pc' appears to be a .pc file Will find package 'cairo-svg' in file '/usr/lib/pkgconfig/cairo-svg.pc' File 'xcursor.pc' appears to be a .pc file Will find package 'xcursor' in file '/usr/lib/pkgconfig/xcursor.pc' File 'QtXmlPatterns.pc' appears to be a .pc file Will find package 'QtXmlPatterns' in file '/usr/lib/pkgconfig/QtXmlPatterns.pc' File 'cairo.pc' appears to be a .pc file Will find package 'cairo' in file '/usr/lib/pkgconfig/cairo.pc' File 'speex.pc' appears to be a .pc file Will find package 'speex' in file '/usr/lib/pkgconfig/speex.pc' File 'gmodule-2.0.pc' appears to be a .pc file Will find package 'gmodule-2.0' in file '/usr/lib/pkgconfig/gmodule-2.0.pc' File 'Qt3Support.pc' appears to be a .pc file Will find package 'Qt3Support' in file '/usr/lib/pkgconfig/Qt3Support.pc' File 'recordproto.pc' appears to be a .pc file Will find package 'recordproto' in file '/usr/lib/pkgconfig/recordproto.pc' File 'gdkglext-1.0.pc' appears to be a .pc file Will find package 'gdkglext-1.0' in file '/usr/lib/pkgconfig/gdkglext-1.0.pc' File 'direct.pc' appears to be a .pc file Will find package 'direct' in file '/usr/lib/pkgconfig/direct.pc' File 'lua50.pc' appears to be a .pc file Will find package 'lua50' in file '/usr/lib/pkgconfig/lua50.pc' File 'QtGui.pc' appears to be a .pc file Will find package 'QtGui' in file '/usr/lib/pkgconfig/QtGui.pc' File 'libpng.pc' appears to be a .pc file Will find package 'libpng' in file '/usr/lib/pkgconfig/libpng.pc' File 'cairo-xlib-xrender.pc' appears to be a .pc file Will find package 'cairo-xlib-xrender' in file '/usr/lib/pkgconfig/cairo-xlib-xrender.pc' File 'randrproto.pc' appears to be a .pc file Will find package 'randrproto' in file '/usr/lib/pkgconfig/randrproto.pc' File 'libart-2.0.pc' appears to be a .pc file Will find package 'libart-2.0' in file '/usr/lib/pkgconfig/libart-2.0.pc' File 'xcb.pc' appears to be a .pc file Will find package 'xcb' in file '/usr/lib/pkgconfig/xcb.pc' File 'sqlite3.pc' appears to be a .pc file Will find package 'sqlite3' in file '/usr/lib/pkgconfig/sqlite3.pc' File 'libdrm_radeon.pc' appears to be a .pc file Will find package 'libdrm_radeon' in file '/usr/lib/pkgconfig/libdrm_radeon.pc' File 'xorg-wacom.pc' appears to be a .pc file Will find package 'xorg-wacom' in file '/usr/lib/pkgconfig/xorg-wacom.pc' File 'ORBit-idl-2.0.pc' appears to be a .pc file Will find package 'ORBit-idl-2.0' in file '/usr/lib/pkgconfig/ORBit-idl-2.0.pc' File 'gdk-pixbuf-2.0.pc' appears to be a .pc file Will find package 'gdk-pixbuf-2.0' in file '/usr/lib/pkgconfig/gdk-pixbuf-2.0.pc' File 'ORBit-CosNaming-2.0.pc' appears to be a .pc file Will find package 'ORBit-CosNaming-2.0' in file '/usr/lib/pkgconfig/ORBit-CosNaming-2.0.pc' File 'libgdiplus.pc' appears to be a .pc file Will find package 'libgdiplus' in file '/usr/lib/pkgconfig/libgdiplus.pc' File 'cairo-xcb.pc' appears to be a .pc file Will find package 'cairo-xcb' in file '/usr/lib/pkgconfig/cairo-xcb.pc' File 'sdl.pc' appears to be a .pc file Will find package 'sdl' in file '/usr/lib/pkgconfig/sdl.pc' File 'libv4lconvert.pc' appears to be a .pc file Will find package 'libv4lconvert' in file '/usr/lib/pkgconfig/libv4lconvert.pc' File 'QtNetwork.pc' appears to be a .pc file Will find package 'QtNetwork' in file '/usr/lib/pkgconfig/QtNetwork.pc' File 'fusion.pc' appears to be a .pc file Will find package 'fusion' in file '/usr/lib/pkgconfig/fusion.pc' File 'libpulse-simple.pc' appears to be a .pc file Will find package 'libpulse-simple' in file '/usr/lib/pkgconfig/libpulse-simple.pc' File 'inputproto.pc' appears to be a .pc file Will find package 'inputproto' in file '/usr/lib/pkgconfig/inputproto.pc' File 'gmodule-no-export-2.0.pc' appears to be a .pc file Will find package 'gmodule-no-export-2.0' in file '/usr/lib/pkgconfig/gmodule-no-export-2.0.pc' File 'cucul.pc' appears to be a .pc file Will find package 'cucul' in file '/usr/lib/pkgconfig/cucul.pc' File 'sage.pc' appears to be a .pc file Will find package 'sage' in file '/usr/lib/pkgconfig/sage.pc' File 'notify-python.pc' appears to be a .pc file Will find package 'notify-python' in file '/usr/lib/pkgconfig/notify-python.pc' File 'gobject-2.0.pc' appears to be a .pc file Will find package 'gobject-2.0' in file '/usr/lib/pkgconfig/gobject-2.0.pc' File 'gtk-engines-2.pc' appears to be a .pc file Will find package 'gtk-engines-2' in file '/usr/lib/pkgconfig/gtk-engines-2.pc' File 'sm.pc' appears to be a .pc file Will find package 'sm' in file '/usr/lib/pkgconfig/sm.pc' File 'libcrypto.pc' appears to be a .pc file Will find package 'libcrypto' in file '/usr/lib/pkgconfig/libcrypto.pc' File 'pangocairo.pc' appears to be a .pc file Will find package 'pangocairo' in file '/usr/lib/pkgconfig/pangocairo.pc' File 'gtk+-x11-2.0.pc' appears to be a .pc file Will find package 'gtk+-x11-2.0' in file '/usr/lib/pkgconfig/gtk+-x11-2.0.pc' File 'QtHelp.pc' appears to be a .pc file Will find package 'QtHelp' in file '/usr/lib/pkgconfig/QtHelp.pc' File 'xdmcp.pc' appears to be a .pc file Will find package 'xdmcp' in file '/usr/lib/pkgconfig/xdmcp.pc' File 'QtSql.pc' appears to be a .pc file Will find package 'QtSql' in file '/usr/lib/pkgconfig/QtSql.pc' File 'QtXml.pc' appears to be a .pc file Will find package 'QtXml' in file '/usr/lib/pkgconfig/QtXml.pc' File 'flac.pc' appears to be a .pc file Will find package 'flac' in file '/usr/lib/pkgconfig/flac.pc' File 'qt-mt.pc' appears to be a .pc file Will find package 'qt-mt' in file '/usr/lib/pkgconfig/qt-mt.pc' File 'libpulse-browse.pc' appears to be a .pc file Will find package 'libpulse-browse' in file '/usr/lib/pkgconfig/libpulse-browse.pc' File 'slang.pc' appears to be a .pc file Will find package 'slang' in file '/usr/lib/pkgconfig/slang.pc' File 'renderproto.pc' appears to be a .pc file Will find package 'renderproto' in file '/usr/lib/pkgconfig/renderproto.pc' File 'cairo-directfb.pc' appears to be a .pc file Will find package 'cairo-directfb' in file '/usr/lib/pkgconfig/cairo-directfb.pc' File 'libffi.pc' appears to be a .pc file Will find package 'libffi' in file '/usr/lib/pkgconfig/libffi.pc' File 'xmu.pc' appears to be a .pc file Will find package 'xmu' in file '/usr/lib/pkgconfig/xmu.pc' File 'QtMultimedia.pc' appears to be a .pc file Will find package 'QtMultimedia' in file '/usr/lib/pkgconfig/QtMultimedia.pc' File 'xcomposite.pc' appears to be a .pc file Will find package 'xcomposite' in file '/usr/lib/pkgconfig/xcomposite.pc' File 'gnutls.pc' appears to be a .pc file Will find package 'gnutls' in file '/usr/lib/pkgconfig/gnutls.pc' File 'xrandr.pc' appears to be a .pc file Will find package 'xrandr' in file '/usr/lib/pkgconfig/xrandr.pc' File 'ogg.pc' appears to be a .pc file Will find package 'ogg' in file '/usr/lib/pkgconfig/ogg.pc' File 'xau.pc' appears to be a .pc file Will find package 'xau' in file '/usr/lib/pkgconfig/xau.pc' File 'xext.pc' appears to be a .pc file Will find package 'xext' in file '/usr/lib/pkgconfig/xext.pc' File 'omnithread3.pc' appears to be a .pc file Will find package 'omnithread3' in file '/usr/lib/pkgconfig/omnithread3.pc' File 'xextproto.pc' appears to be a .pc file Will find package 'xextproto' in file '/usr/lib/pkgconfig/xextproto.pc' File 'xineramaproto.pc' appears to be a .pc file Will find package 'xineramaproto' in file '/usr/lib/pkgconfig/xineramaproto.pc' File 'omniCOS4.pc' appears to be a .pc file Will find package 'omniCOS4' in file '/usr/lib/pkgconfig/omniCOS4.pc' File 'gdk-2.0.pc' appears to be a .pc file Will find package 'gdk-2.0' in file '/usr/lib/pkgconfig/gdk-2.0.pc' File 'xinerama.pc' appears to be a .pc file Will find package 'xinerama' in file '/usr/lib/pkgconfig/xinerama.pc' File 'poppler.pc' appears to be a .pc file Will find package 'poppler' in file '/usr/lib/pkgconfig/poppler.pc' File 'libssl.pc' appears to be a .pc file Will find package 'libssl' in file '/usr/lib/pkgconfig/libssl.pc' File 'gtk+-unix-print-2.0.pc' appears to be a .pc file Will find package 'gtk+-unix-print-2.0' in file '/usr/lib/pkgconfig/gtk+-unix-print-2.0.pc' File 'gnutls-extra.pc' appears to be a .pc file Will find package 'gnutls-extra' in file '/usr/lib/pkgconfig/gnutls-extra.pc' File 'kbproto.pc' appears to be a .pc file Will find package 'kbproto' in file '/usr/lib/pkgconfig/kbproto.pc' File 'gl.pc' appears to be a .pc file Will find package 'gl' in file '/usr/lib/pkgconfig/gl.pc' File 'gtkglext-x11-1.0.pc' appears to be a .pc file Will find package 'gtkglext-x11-1.0' in file '/usr/lib/pkgconfig/gtkglext-x11-1.0.pc' File 'compiz-text.pc' appears to be a .pc file Will find package 'compiz-text' in file '/usr/lib/pkgconfig/compiz-text.pc' File 'cairo-png.pc' appears to be a .pc file Will find package 'cairo-png' in file '/usr/lib/pkgconfig/cairo-png.pc' File 'xdamage.pc' appears to be a .pc file Will find package 'xdamage' in file '/usr/lib/pkgconfig/xdamage.pc' File 'fontconfig.pc' appears to be a .pc file Will find package 'fontconfig' in file '/usr/lib/pkgconfig/fontconfig.pc' File 'cairo-pdf.pc' appears to be a .pc file Will find package 'cairo-pdf' in file '/usr/lib/pkgconfig/cairo-pdf.pc' File 'dbus-1.pc' appears to be a .pc file Will find package 'dbus-1' in file '/usr/lib/pkgconfig/dbus-1.pc' File 'cairo-ft.pc' appears to be a .pc file Will find package 'cairo-ft' in file '/usr/lib/pkgconfig/cairo-ft.pc' File 'directfb.pc' appears to be a .pc file Will find package 'directfb' in file '/usr/lib/pkgconfig/directfb.pc' File 'gnome-keyring-1.pc' appears to be a .pc file Will find package 'gnome-keyring-1' in file '/usr/lib/pkgconfig/gnome-keyring-1.pc' File 'xproto.pc' appears to be a .pc file Will find package 'xproto' in file '/usr/lib/pkgconfig/xproto.pc' File 'gdkglext-x11-1.0.pc' appears to be a .pc file Will find package 'gdkglext-x11-1.0' in file '/usr/lib/pkgconfig/gdkglext-x11-1.0.pc' File 'esound.pc' appears to be a .pc file Will find package 'esound' in file '/usr/lib/pkgconfig/esound.pc' File 'bonobo-activation-2.0.pc' appears to be a .pc file Will find package 'bonobo-activation-2.0' in file '/usr/lib/pkgconfig/bonobo-activation-2.0.pc' File 'libpcrecpp.pc' appears to be a .pc file Will find package 'libpcrecpp' in file '/usr/lib/pkgconfig/libpcrecpp.pc' File 'lcms.pc' appears to be a .pc file Will find package 'lcms' in file '/usr/lib/pkgconfig/lcms.pc' File 'libdrm_nouveau.pc' appears to be a .pc file Will find package 'libdrm_nouveau' in file '/usr/lib/pkgconfig/libdrm_nouveau.pc' File 'fontutil.pc' appears to be a .pc file Will find package 'fontutil' in file '/usr/lib/pkgconfig/fontutil.pc' File 'com_err.pc' appears to be a .pc file Will find package 'com_err' in file '/usr/lib/pkgconfig/com_err.pc' File 'gmodule-export-2.0.pc' appears to be a .pc file Will find package 'gmodule-export-2.0' in file '/usr/lib/pkgconfig/gmodule-export-2.0.pc' File 'damageproto.pc' appears to be a .pc file Will find package 'damageproto' in file '/usr/lib/pkgconfig/damageproto.pc' File 'gtk+-2.0.pc' appears to be a .pc file Will find package 'gtk+-2.0' in file '/usr/lib/pkgconfig/gtk+-2.0.pc' File 'pygtksourceview-2.0.pc' appears to be a .pc file Will find package 'pygtksourceview-2.0' in file '/usr/lib/pkgconfig/pygtksourceview-2.0.pc' File 'QtAssistantClient.pc' appears to be a .pc file Will find package 'QtAssistantClient' in file '/usr/lib/pkgconfig/QtAssistantClient.pc' File 'libexslt.pc' appears to be a .pc file Will find package 'libexslt' in file '/usr/lib/pkgconfig/libexslt.pc' File 'poppler-cairo.pc' appears to be a .pc file Will find package 'poppler-cairo' in file '/usr/lib/pkgconfig/poppler-cairo.pc' File 'caca++.pc' appears to be a .pc file Will find package 'caca++' in file '/usr/lib/pkgconfig/caca++.pc' File 'gio-unix-2.0.pc' appears to be a .pc file Will find package 'gio-unix-2.0' in file '/usr/lib/pkgconfig/gio-unix-2.0.pc' File 'IlmBase.pc' appears to be a .pc file Will find package 'IlmBase' in file '/usr/lib/pkgconfig/IlmBase.pc' File 'cucul++.pc' appears to be a .pc file Will find package 'cucul++' in file '/usr/lib/pkgconfig/cucul++.pc' File 'omniDynamic4.pc' appears to be a .pc file Will find package 'omniDynamic4' in file '/usr/lib/pkgconfig/omniDynamic4.pc' File 'libdrm_intel.pc' appears to be a .pc file Will find package 'libdrm_intel' in file '/usr/lib/pkgconfig/libdrm_intel.pc' File 'gtkglext-1.0.pc' appears to be a .pc file Will find package 'gtkglext-1.0' in file '/usr/lib/pkgconfig/gtkglext-1.0.pc' File 'dri.pc' appears to be a .pc file Will find package 'dri' in file '/usr/lib/pkgconfig/dri.pc' File 'compositeproto.pc' appears to be a .pc file Will find package 'compositeproto' in file '/usr/lib/pkgconfig/compositeproto.pc' File 'ORBit-imodule-2.0.pc' appears to be a .pc file Will find package 'ORBit-imodule-2.0' in file '/usr/lib/pkgconfig/ORBit-imodule-2.0.pc' File 'pango.pc' appears to be a .pc file Will find package 'pango' in file '/usr/lib/pkgconfig/pango.pc' File 'pixman-1.pc' appears to be a .pc file Will find package 'pixman-1' in file '/usr/lib/pkgconfig/pixman-1.pc' File 'xrender.pc' appears to be a .pc file Will find package 'xrender' in file '/usr/lib/pkgconfig/xrender.pc' File 'pm-utils.pc' appears to be a .pc file Will find package 'pm-utils' in file '/usr/lib/pkgconfig/pm-utils.pc' File 'omniORB4.pc' appears to be a .pc file Will find package 'omniORB4' in file '/usr/lib/pkgconfig/omniORB4.pc' File 'sqlite.pc' appears to be a .pc file Will find package 'sqlite' in file '/usr/lib/pkgconfig/sqlite.pc' File 'gnome-screensaver.pc' appears to be a .pc file Will find package 'gnome-screensaver' in file '/usr/lib/pkgconfig/gnome-screensaver.pc' File 'poppler-splash.pc' appears to be a .pc file Will find package 'poppler-splash' in file '/usr/lib/pkgconfig/poppler-splash.pc' File 'libv4l1.pc' appears to be a .pc file Will find package 'libv4l1' in file '/usr/lib/pkgconfig/libv4l1.pc' File 'xcb-render.pc' appears to be a .pc file Will find package 'xcb-render' in file '/usr/lib/pkgconfig/xcb-render.pc' File 'directfb-internal.pc' appears to be a .pc file Will find package 'directfb-internal' in file '/usr/lib/pkgconfig/directfb-internal.pc' File 'libidn.pc' appears to be a .pc file Will find package 'libidn' in file '/usr/lib/pkgconfig/libidn.pc' File 'libv4l2.pc' appears to be a .pc file Will find package 'libv4l2' in file '/usr/lib/pkgconfig/libv4l2.pc' File 'libpng12.pc' appears to be a .pc file Will find package 'libpng12' in file '/usr/lib/pkgconfig/libpng12.pc' File 'QtScriptTools.pc' appears to be a .pc file Will find package 'QtScriptTools' in file '/usr/lib/pkgconfig/QtScriptTools.pc' File 'pangoxft.pc' appears to be a .pc file Will find package 'pangoxft' in file '/usr/lib/pkgconfig/pangoxft.pc' File 'atk.pc' appears to be a .pc file Will find package 'atk' in file '/usr/lib/pkgconfig/atk.pc' File 'pangoft2.pc' appears to be a .pc file Will find package 'pangoft2' in file '/usr/lib/pkgconfig/pangoft2.pc' File 'QtDBus.pc' appears to be a .pc file Will find package 'QtDBus' in file '/usr/lib/pkgconfig/QtDBus.pc' File 'ORBit-2.0.pc' appears to be a .pc file Will find package 'ORBit-2.0' in file '/usr/lib/pkgconfig/ORBit-2.0.pc' Cannot open directory '/usr/lib/pkgconfig/x86_64-linux-gnu' in package search path: No such file or directory Scanning directory '/usr/share/pkgconfig' Ignoring file '..' in search directory; not a .pc file File 'usbutils.pc' appears to be a .pc file Will find package 'usbutils' in file '/usr/share/pkgconfig/usbutils.pc' File 'xtrans.pc' appears to be a .pc file Will find package 'xtrans' in file '/usr/share/pkgconfig/xtrans.pc' File 'xbitmaps.pc' appears to be a .pc file Will find package 'xbitmaps' in file '/usr/share/pkgconfig/xbitmaps.pc' File 'iso-codes.pc' appears to be a .pc file Will find package 'iso-codes' in file '/usr/share/pkgconfig/iso-codes.pc' File 'shared-mime-info.pc' appears to be a .pc file Will find package 'shared-mime-info' in file '/usr/share/pkgconfig/shared-mime-info.pc' File 'xml2po.pc' appears to be a .pc file Will find package 'xml2po' in file '/usr/share/pkgconfig/xml2po.pc' File 'm17n-db.pc' appears to be a .pc file Will find package 'm17n-db' in file '/usr/share/pkgconfig/m17n-db.pc' File 'udev.pc' appears to be a .pc file Will find package 'udev' in file '/usr/share/pkgconfig/udev.pc' File 'gnome-icon-theme.pc' appears to be a .pc file Will find package 'gnome-icon-theme' in file '/usr/share/pkgconfig/gnome-icon-theme.pc' Ignoring file '.' in search directory; not a .pc file File 'gnome-doc-utils.pc' appears to be a .pc file Will find package 'gnome-doc-utils' in file '/usr/share/pkgconfig/gnome-doc-utils.pc' File 'pthread-stubs.pc' appears to be a .pc file Will find package 'pthread-stubs' in file '/usr/share/pkgconfig/pthread-stubs.pc' File 'udisks.pc' appears to be a .pc file Will find package 'udisks' in file '/usr/share/pkgconfig/udisks.pc' File 'mobile-broadband-provider-info.pc' appears to be a .pc file Will find package 'mobile-broadband-provider-info' in file '/usr/share/pkgconfig/mobile-broadband-provider-info.pc' File 'shared-desktop-ontologies.pc' appears to be a .pc file Will find package 'shared-desktop-ontologies' in file '/usr/share/pkgconfig/shared-desktop-ontologies.pc' File 'gnome-mime-data-2.0.pc' appears to be a .pc file Will find package 'gnome-mime-data-2.0' in file '/usr/share/pkgconfig/gnome-mime-data-2.0.pc' Looking for package 'sdl' Looking for package 'sdl-uninstalled' Reading 'sdl' from file '/usr/lib/pkgconfig/sdl.pc' Parsing package file '/usr/lib/pkgconfig/sdl.pc' line> line> line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: sdl line>Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. line>Version: 1.2.14 line>Requires: line>Conflicts: line>Libs: -L${libdir} -lSDL line>Libs.private: -lSDL -lpthread -lm -ldl -lasound -lm -ldl -lpthread -lesd -lpulse-simple -lpulse -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -laa -L/usr/lib -lcaca -lpthread Unknown keyword 'Libs.private' in '/usr/lib/pkgconfig/sdl.pc' line>Cflags: -I${includedir}/SDL -D_GNU_SOURCE=1 -D_REENTRANT Path position of 'sdl' is 1 Package sdl has -L/usr/lib in Libs Removing -L/usr/lib from libs for sdl Adding 'sdl' to list of known packages, returning as package 'sdl' Looking for package 'SDL_ttf' Looking for package 'SDL_ttf-uninstalled' Looking for 'SDL_ttf' using legacy -config scripts Calling gnome-config Looking for package 'glew' Looking for package 'glew-uninstalled' Reading 'glew' from file '/usr/lib/pkgconfig/glew.pc' Parsing package file '/usr/lib/pkgconfig/glew.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: The OpenGL Extension Wrangler Library line>Description: cross-platform C/C++ extension loading library line>Version: 1.5.2 line>Libs: -L${libdir} -lGLEW line>Cflags: -I${includedir} Path position of 'The OpenGL Extension Wrangler Library' is 1 Package The OpenGL Extension Wrangler Library has -I/usr/include in Cflags Removing -I/usr/include from cflags for glew Package The OpenGL Extension Wrangler Library has -L/usr/lib in Libs Removing -L/usr/lib from libs for glew Adding 'glew' to list of known packages, returning as package 'glew' Looking for package 'xcursor' Looking for package 'xcursor-uninstalled' Reading 'xcursor' from file '/usr/lib/pkgconfig/xcursor.pc' Parsing package file '/usr/lib/pkgconfig/xcursor.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line>datarootdir=${prefix}/share Variable declaration, 'datarootdir' has value '/usr/share' line>icondir=${datarootdir}/icons Variable declaration, 'icondir' has value '/usr/share/icons' line> line>Name: Xcursor line>Description: X Cursor Library line>Version: 1.1.10 line>Requires: xproto Looking for package 'xproto' Looking for package 'xproto-uninstalled' Reading 'xproto' from file '/usr/lib/pkgconfig/xproto.pc' Parsing package file '/usr/lib/pkgconfig/xproto.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line>includex11dir=${prefix}/include/X11 Variable declaration, 'includex11dir' has value '/usr/include/X11' line> line>Name: Xproto line>Description: Xproto headers line>Version: 7.0.16 line>Cflags: -I${includedir} Path position of 'Xproto' is 1 Package Xproto has -I/usr/include in Cflags Removing -I/usr/include from cflags for xproto Adding 'xproto' to list of known packages, returning as package 'xproto' line>Requires.private: x11 xrender xfixes Looking for package 'x11' Looking for package 'x11-uninstalled' Reading 'x11' from file '/usr/lib/pkgconfig/x11.pc' Parsing package file '/usr/lib/pkgconfig/x11.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>xthreadlib=-lpthread Variable declaration, 'xthreadlib' has value '-lpthread' line> line>Name: X11 line>Description: X Library line>Version: 1.3.2 line>Requires: xproto kbproto Looking for package 'kbproto' Looking for package 'kbproto-uninstalled' Reading 'kbproto' from file '/usr/lib/pkgconfig/kbproto.pc' Parsing package file '/usr/lib/pkgconfig/kbproto.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: KBProto line>Description: KB extension headers line>Version: 1.0.4 line>Cflags: -I${includedir} Path position of 'KBProto' is 1 Package KBProto has -I/usr/include in Cflags Removing -I/usr/include from cflags for kbproto Adding 'kbproto' to list of known packages, returning as package 'kbproto' line>Requires.private: xcb >= 1.1.92 Looking for package 'xcb' Looking for package 'xcb-uninstalled' Reading 'xcb' from file '/usr/lib/pkgconfig/xcb.pc' Parsing package file '/usr/lib/pkgconfig/xcb.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line>xcbproto_version=1.6 Variable declaration, 'xcbproto_version' has value '1.6' line> line>Name: XCB line>Description: X-protocol C Binding line>Version: 1.5 line>Requires.private: pthread-stubs xau >= 0.99.2 xdmcp Looking for package 'pthread-stubs' Looking for package 'pthread-stubs-uninstalled' Reading 'pthread-stubs' from file '/usr/share/pkgconfig/pthread-stubs.pc' Parsing package file '/usr/share/pkgconfig/pthread-stubs.pc' line>prefix=/ Variable declaration, 'prefix' has value '/' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '//lib' line> line>Name: pthread stubs line>Description: Stubs missing from libc for standard pthread functions line>Version: 0.3 line>Libs: Path position of 'pthread stubs' is 2 Adding 'pthread-stubs' to list of known packages, returning as package 'pthread-stubs' Looking for package 'xau' Looking for package 'xau-uninstalled' Reading 'xau' from file '/usr/lib/pkgconfig/xau.pc' Parsing package file '/usr/lib/pkgconfig/xau.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: Xau line>Description: X authorization file management libary line>Version: 1.0.5 line>Requires: xproto line>Cflags: -I${includedir} line>Libs: -L${libdir} -lXau Path position of 'Xau' is 1 Package Xau has -I/usr/include in Cflags Removing -I/usr/include from cflags for xau Package Xau has -L/usr/lib in Libs Removing -L/usr/lib from libs for xau Adding 'xau' to list of known packages, returning as package 'xau' Looking for package 'xdmcp' Looking for package 'xdmcp-uninstalled' Reading 'xdmcp' from file '/usr/lib/pkgconfig/xdmcp.pc' Parsing package file '/usr/lib/pkgconfig/xdmcp.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: Xdmcp line>Description: X Display Manager Control Protocol library line>Version: 1.0.3 line>Requires: xproto line>Cflags: -I${includedir} line>Libs: -L${libdir} -lXdmcp Path position of 'Xdmcp' is 1 Package Xdmcp has -I/usr/include in Cflags Removing -I/usr/include from cflags for xdmcp Package Xdmcp has -L/usr/lib in Libs Removing -L/usr/lib from libs for xdmcp Adding 'xdmcp' to list of known packages, returning as package 'xdmcp' line>Libs: -L${libdir} -lxcb line>Libs.private: Unknown keyword 'Libs.private' in '/usr/lib/pkgconfig/xcb.pc' line>Cflags: -I${includedir} Path position of 'XCB' is 1 Package XCB has -I/usr/include in Cflags Removing -I/usr/include from cflags for xcb Package XCB has -L/usr/lib in Libs Removing -L/usr/lib from libs for xcb Adding 'xcb' to list of known packages, returning as package 'xcb' line>Cflags: -I${includedir} line>Libs: -L${libdir} -lX11 line>Libs.private: -lpthread Unknown keyword 'Libs.private' in '/usr/lib/pkgconfig/x11.pc' Path position of 'X11' is 1 Package X11 has -I/usr/include in Cflags Removing -I/usr/include from cflags for x11 Package X11 has -L/usr/lib in Libs Removing -L/usr/lib from libs for x11 Adding 'x11' to list of known packages, returning as package 'x11' Looking for package 'xrender' Looking for package 'xrender-uninstalled' Reading 'xrender' from file '/usr/lib/pkgconfig/xrender.pc' Parsing package file '/usr/lib/pkgconfig/xrender.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: Xrender line>Description: X Render Library line>Version: 0.9.5 line>Requires: xproto renderproto >= 0.9 x11 Looking for package 'renderproto' Looking for package 'renderproto-uninstalled' Reading 'renderproto' from file '/usr/lib/pkgconfig/renderproto.pc' Parsing package file '/usr/lib/pkgconfig/renderproto.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: RenderProto line>Description: Render extension headers line>Version: 0.11 line>Cflags: -I${includedir} Path position of 'RenderProto' is 1 Package RenderProto has -I/usr/include in Cflags Removing -I/usr/include from cflags for renderproto Adding 'renderproto' to list of known packages, returning as package 'renderproto' line>Requires.private: x11 line>Cflags: -I${includedir} line>Libs: -L${libdir} -lXrender Path position of 'Xrender' is 1 Package Xrender has -I/usr/include in Cflags Removing -I/usr/include from cflags for xrender Package Xrender has -L/usr/lib in Libs Removing -L/usr/lib from libs for xrender Adding 'xrender' to list of known packages, returning as package 'xrender' Looking for package 'xfixes' Looking for package 'xfixes-uninstalled' Reading 'xfixes' from file '/usr/lib/pkgconfig/xfixes.pc' Parsing package file '/usr/lib/pkgconfig/xfixes.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: Xfixes line>Description: X Fixes Library line>Version: 4.0.4 line>Requires: xproto fixesproto >= 4.0 Looking for package 'fixesproto' Looking for package 'fixesproto-uninstalled' Reading 'fixesproto' from file '/usr/lib/pkgconfig/fixesproto.pc' Parsing package file '/usr/lib/pkgconfig/fixesproto.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: FixesProto line>Description: X Fixes extension headers line>Version: 4.1.1 line>Cflags: -I${includedir} line>Requires: xextproto >= 7.0.99.1 Looking for package 'xextproto' Looking for package 'xextproto-uninstalled' Reading 'xextproto' from file '/usr/lib/pkgconfig/xextproto.pc' Parsing package file '/usr/lib/pkgconfig/xextproto.pc' line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: XExtProto line>Description: XExt extension headers line>Version: 7.1.1 line>Cflags: -I${includedir} Path position of 'XExtProto' is 1 Package XExtProto has -I/usr/include in Cflags Removing -I/usr/include from cflags for xextproto Adding 'xextproto' to list of known packages, returning as package 'xextproto' Path position of 'FixesProto' is 1 Package FixesProto has -I/usr/include in Cflags Removing -I/usr/include from cflags for fixesproto Adding 'fixesproto' to list of known packages, returning as package 'fixesproto' line>Requires.private: x11 line>Cflags: -I${includedir} line>Libs: -L${libdir} -lXfixes Path position of 'Xfixes' is 1 Package Xfixes has -I/usr/include in Cflags Removing -I/usr/include from cflags for xfixes Package Xfixes has -L/usr/lib in Libs Removing -L/usr/lib from libs for xfixes Adding 'xfixes' to list of known packages, returning as package 'xfixes' line>Cflags: -I${includedir} line>Libs: -L${libdir} -lXcursor Path position of 'Xcursor' is 1 Package Xcursor has -I/usr/include in Cflags Removing -I/usr/include from cflags for xcursor Package Xcursor has -L/usr/lib in Libs Removing -L/usr/lib from libs for xcursor Adding 'xcursor' to list of known packages, returning as package 'xcursor' From lordheavym at ...626... Mon Jul 4 16:25:26 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 4 Jul 2011 16:25:26 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 62, Issue 9 In-Reply-To: <1309787816.3724.1.camel@...2516...> References: <1309787816.3724.1.camel@...2516...> Message-ID: 2011/7/4 Emanuele Sottocorno > > > what is the output of: > > pkg-config --debug sdl SDL_ttf glew xcursor > > attached. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Package SDL-ttf-devel or something like that is missing: Reading 'sdl' from file '/usr/lib/pkgconfig/sdl.pc' Parsing package file '/usr/lib/pkgconfig/sdl.pc' line> line> line>prefix=/usr Variable declaration, 'prefix' has value '/usr' line>exec_prefix=${prefix} Variable declaration, 'exec_prefix' has value '/usr' line>libdir=${exec_prefix}/lib Variable declaration, 'libdir' has value '/usr/lib' line>includedir=${prefix}/include Variable declaration, 'includedir' has value '/usr/include' line> line>Name: sdl line>Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. line>Version: 1.2.14 line>Requires: line>Conflicts: line>Libs: -L${libdir} -lSDL line>Libs.private: -lSDL -lpthread -lm -ldl -lasound -lm -ldl -lpthread -lesd -lpulse-simple -lpulse -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -laa -L/usr/lib -lcaca -lpthread Unknown keyword 'Libs.private' in '/usr/lib/pkgconfig/sdl.pc' line>Cflags: -I${includedir}/SDL -D_GNU_SOURCE=1 -D_REENTRANT Path position of 'sdl' is 1 Package sdl has -L/usr/lib in Libs Removing -L/usr/lib from libs for sdl Adding 'sdl' to list of known packages, returning as package 'sdl' Looking for package 'SDL_ttf' Looking for package 'SDL_ttf-uninstalled' Looking for 'SDL_ttf' using legacy -config scripts Calling gnome-config Looking for package 'glew' Looking for package 'glew-uninstalled' Reading 'glew' from file '/usr/lib/pkgconfig/glew.pc' SDL and glew packages are found, not SDL_ttf one. ++ From demosthenesk at ...626... Mon Jul 4 18:52:15 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 04 Jul 2011 19:52:15 +0300 Subject: [Gambas-user] About Raise Events In-Reply-To: <201107041540.41243.gambas@...1...> References: <1309769261.3236.11.camel@...2493...> <1309773907.7123.6.camel@...2493...> <201107041540.41243.gambas@...1...> Message-ID: <1309798335.2232.9.camel@...2493...> On Mon, 2011-07-04 at 15:40 +0200, Beno?t Minisini wrote: > > On Mon, 2011-07-04 at 11:26 +0200, Fabien Bodard wrote: > > > 2011/7/4 Demosthenes Koptsis : > > > > Hello, > > > > > > > > i have a class CCar with an event Run(). > > > > > > > > When i implement the object hCar in module Main > > > > i have to use Object.Attach to use the event handler for the event Run. > > > > > > > > At page http://gambasdoc.org/help/lang/eventdecl says > > > > "By default, Name_EventName is the name of the method called in the > > > > event listener when an event is raised." > > > > > > > > > > > > But without Object.Attach(hCar, Me, "hCar") i cannot use the event > > > > > > > > Example > > > > ------------ > > > > ' Gambas module file > > > > > > > > Private hCar As CCar > > > > > > > > Public Sub Main() > > > > > > --> hCar = New CCar as "hcar" > > > > > > This is how you must declare an event handler ! > > > > Yes i know that. > > > > hObject = NEW MyClass > > Object.Attach(hObject, ME, "EventName") > > > > is equivalent to: > > > > hObject = NEW MyClass AS "EventName" > > > > > > > > when i declare an event in a class. > > > > EVENT Run > > > > in class CCar. > > > > i expected the object hCar to autocomplete in editor the > > hCar_Run as default event handler, as this is done with properties > > hCar.Doors etc. > > > > my question is, > > why this autocomplete is not done for default event handlers and i should > > declare a handler hCar ? > > > > Because the IDE can only handle event names declared statically (i.e. with NEW > ... AS "xxx"), not those declared dynamically with Object.Attach(). > > Regards, > ok i comment Object.Attach() and declared ... AS "hCar" ------ hCar = New CCar As "hCar" ' Object.Attach(hCar, Me, "hCar") ------- Still the IDE does not make autocopmlete even for statically declarations. Public Sub hCar_ does not show autocomplete. i use gambas3-svn3888 -- Regards, Demosthenes Koptsis. From mohareve at ...626... Mon Jul 4 20:18:21 2011 From: mohareve at ...626... (M. Cs.) Date: Mon, 4 Jul 2011 20:18:21 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: <201107031520.56001.gambas@...1...> References: <201107031520.56001.gambas@...1...> Message-ID: Thanks, these are clear words we need! I think it is very important to have clear explanations. 2011/7/3, Beno?t Minisini : >> I've tried to do exactly what I've done in G2: giving coordinates in >> original pixel sizes of the image. >> Can I set the resolution to 300 dpi and to use the originally measured >> horizontal and vertical pixel coordinates for printing? You know the >> program I'm working on is right about the using mouse coordinates for >> positioning the text, to avoid the unnecessary measurement >> coordinate's transformation. But as it seems to me, G3 is about how to >> make simple things complicated :( >> >> Thanks anyway, I'll try to fix it. >> >> Csaba >> > > There are three reasons for the new Printer API in Gambas 3 : > > - The Qt drawing model has changed. > - GTK+ got a printer API that uses Cairo. > - The Gambas 2 Printer API was blocking the GUI. > > So it is a bit more complicated now, as you have to use events, and the new > Paint class that mimics the Cairo API. > > Otherwise, there is no "unnecessary coordinate transformation". If you using > screen coordinates for printing in Gambas 2 worked, then it just means that > you were lucky. > > Because doing that is as false in Gambas 2 as it is in Gambas 3. > > In other words, you have to do coordinate transformation. > > To do that, for example, you draw inside the (0, 0, Printer.PaperWidth, > Printer.PaperHeight) rectangle, each unit being a millimeter. And before > calling the Paint method, you scale the rectangle to (0, 0, Draw.Width, > Draw.Height). > > To do this scaling, you have the "Paint matrix", i.e. the Paint.Scale() > method. > > I will try to add these explanations to the wiki. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From silvani.canal at ...626... Tue Jul 5 01:55:09 2011 From: silvani.canal at ...626... (Silva) Date: Mon, 4 Jul 2011 20:55:09 -0300 Subject: [Gambas-user] Backing up Gmail with Gambas? Message-ID: Hello! I'm impressed with Gambas. But I did not find examples on how to resolve this situation: I need a routine to back up Gmail's. IMAP4 with SSL / TLS. Something as simple as: - Gmail Login - Read the messages in each folder - Record a database with MySQL It is possible to do this? Anyone have any examples POP or IMAP4? From kevinfishburne at ...1887... Tue Jul 5 02:18:53 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Jul 2011 20:18:53 -0400 Subject: [Gambas-user] gb3: clearing a public embedded array from a procedure Message-ID: <4E12586D.5080609@...1887...> I've declared an array like this: Public QueueObject[1024] As String and tried to clear it in a procedure like this: QueueObject.Clear() but receive the error "Embedded array...". I just need to erase all the values in the array so I can reassign new ones. Obviously I can do this manually, but it looked like the .Clear method would do the trick. Any idea why it is throwing this error? I looked over the documentation here: http://gambasdoc.org/help/cat/arraydecl?v3 and see that there are local arrays and embedded arrays. I guess some or all array methods are only available for local arrays? The docs are a bit confusing to me on this, but it's probably because I'm out of my depth. I can otherwise read and write to the array normally from the procedure, and do a function such as "QueueSorted = QueueObject.Sort(gb.Descent)". -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Jul 5 02:25:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Jul 2011 02:25:53 +0200 Subject: [Gambas-user] gb3: clearing a public embedded array from a procedure In-Reply-To: <4E12586D.5080609@...1887...> References: <4E12586D.5080609@...1887...> Message-ID: <201107050225.54004.gambas@...1...> > I've declared an array like this: > > Public QueueObject[1024] As String > > and tried to clear it in a procedure like this: > > QueueObject.Clear() > > but receive the error "Embedded array...". > > I just need to erase all the values in the array so I can reassign new > ones. Obviously I can do this manually, but it looked like the .Clear > method would do the trick. Any idea why it is throwing this error? > > I looked over the documentation here: > > http://gambasdoc.org/help/cat/arraydecl?v3 > > and see that there are local arrays and embedded arrays. I guess some or > all array methods are only available for local arrays? The docs are a > bit confusing to me on this, but it's probably because I'm out of my > depth. I can otherwise read and write to the array normally from the > procedure, and do a function such as "QueueSorted = > QueueObject.Sort(gb.Descent)". Embedded arrays are not Gambas object, their memory is allocated directly inside the object where they are declared. So you can't use Clear(), as that method resizes the array to zero elements. If you don't want to be confused, just use normal arrays: Public QueueObject As New String[1024] Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Tue Jul 5 02:43:40 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Jul 2011 20:43:40 -0400 Subject: [Gambas-user] gb3: clearing a public embedded array from a procedure In-Reply-To: <201107050225.54004.gambas@...1...> References: <4E12586D.5080609@...1887...> <201107050225.54004.gambas@...1...> Message-ID: <4E125E3C.4040400@...1887...> On 07/04/2011 08:25 PM, Beno?t Minisini wrote: > > Embedded arrays are not Gambas object, their memory is allocated directly > inside the object where they are declared. > > So you can't use Clear(), as that method resizes the array to zero elements. > > If you don't want to be confused, just use normal arrays: > > Public QueueObject As New String[1024] Excellent, thank you. That was the syntax I was looking for. I was using an embedded array by accident, basically, not knowing how to declare one normally (or what the difference was). Since Clear() destroys all the elements, what I really needed was "QueueObject = New String[1024]" to erase all the values. It is now working and one more bug has died. :) In a feeble effort to expand my understanding, is there an obvious [dis]advantage between using a normal array versus an embedded array? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Jul 5 04:39:11 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Jul 2011 22:39:11 -0400 Subject: [Gambas-user] gb3: DrawAlpha Message-ID: <4E12794F.80906@...1887...> Since DrawImage just copies the RGBA channels and PaintImage blends the channels using the alpha channel, I'm assuming that DrawAlpha copies (but does not blend) the alpha channel. Is that the case? If so then it follows there should be a PaintAlpha, which blends one alpha channel into another rather than overwriting it. Or maybe there's a workaround that I haven't thought of. What I'm trying to do is this: 1) Create a landscape image 2) Create a solar lighting image 3) Create an object lighting image 4) Composite them The landscape image is just the landscape with no lighting. The solar lighting image is RGBA and reflects the solar light level and color tint applied to the landscape image. The object lighting image is pure alpha and is generated by whatever non-solar light sources are in the scene (fire, generally). It should modify only the solar lighting image (blending its alpha channel), which is then drawn on top of the landscape image via PaintImage. This will allow the landscape to be colored and darkened by the solar lighting image, which has had "holes" made in it by the object lighting image. Is any of this possible? I've been thinking about it for about a week and have just started to implement code to experiment. I also have some gut feeling that I may need to invert an alpha channel to accomplish this, but there's no evidence to support that yet. Any thoughts are appreciated as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sotema at ...626... Tue Jul 5 11:36:47 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 05 Jul 2011 11:36:47 +0200 Subject: [Gambas-user] rev 3910 gb.sdl component is disable Message-ID: <1309858607.2411.11.camel@...2516...> Hi Laurent, thanks for the answer. I have both libsdl_ttf2.0 and libsdl_ttf2.0-dev installed. libSDL_ttf-2.0.so.0.6.3 located in /usr/lib SDL_ttf.h located in /lib/include I had no configure problem till rev 3909. Did you change something starting with rev3910? No entry found in Changelog for SDL component. Regards, Emanuele From gambas at ...1... Tue Jul 5 12:34:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Jul 2011 12:34:19 +0200 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E12794F.80906@...1887...> References: <4E12794F.80906@...1887...> Message-ID: <201107051234.19279.gambas@...1...> > Since DrawImage just copies the RGBA channels and PaintImage blends the > channels using the alpha channel, I'm assuming that DrawAlpha copies > (but does not blend) the alpha channel. Is that the case? > Actually DrawAlpha is PaintAlpha. I saw no point of just copying the alpha channel. Blending the alpha channel is just keeping the greater transparency between the destination pixel and the source pixel. This is what DrawAlpha does. By the way, I have fixed a bug in the alpha blending of PaintImage in revision #3926. Tell me if you notice the change. Regards, -- Beno?t Minisini From lordheavym at ...626... Tue Jul 5 13:08:34 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 05 Jul 2011 13:08:34 +0200 Subject: [Gambas-user] rev 3910 gb.sdl component is disable In-Reply-To: <1309858607.2411.11.camel@...2516...> References: <1309858607.2411.11.camel@...2516...> Message-ID: <2663670.JrnDOAuaTY@...2592...> Le Tuesday 5 July 2011 11:36:47, Emanuele Sottocorno a ?crit : > Hi Laurent, > thanks for the answer. > > I have both libsdl_ttf2.0 and libsdl_ttf2.0-dev installed. > libSDL_ttf-2.0.so.0.6.3 located in /usr/lib > SDL_ttf.h located in /lib/include > > I had no configure problem till rev 3909. Did you change something > starting with rev3910? No entry found in Changelog for SDL component. > Regards, Emanuele > > It should be fixed in rev#3927. SDL_ttf<2.0.10 doesn't provide needed pkg-config file, so i've added the previous manual checking of files. ++ From gambas at ...2524... Tue Jul 5 15:31:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 05 Jul 2011 13:31:25 +0000 Subject: [Gambas-user] Issue 73 in gambas: Gambas 3 under LXDE In-Reply-To: <1-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> <0-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-598825967082708148-gambas=googlecode.com@...2524...> Comment #2 on issue 73 by anishp... at ...626...: Gambas 3 under LXDE http://code.google.com/p/gambas/issues/detail?id=73 Thanks for your help. Now it's ok. qtconfig help me to clear the problem. Anish From tobiasboe1 at ...20... Tue Jul 5 15:50:05 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 05 Jul 2011 15:50:05 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107032038.17096.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107032022.08447.gambas@...1...> <4E10B555.60406@...20...> <201107032038.17096.gambas@...1...> Message-ID: <4E13168D.3040608@...20...> hi, > - Or adding 'Component.Load("gb.net")' in the component source code. this is not working, i still get "Unable to load class 'Socket'" what's wrong? btw, have you noticed my explanation in the previous mail about the ide crashing? i don't want to be impatient but these two problems get me mad... regards, tobi From gambas at ...1... Tue Jul 5 16:07:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Jul 2011 16:07:24 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <4E13168D.3040608@...20...> References: <4E10AF97.6010502@...20...> <201107032038.17096.gambas@...1...> <4E13168D.3040608@...20...> Message-ID: <201107051607.24889.gambas@...1...> > hi, > > > - Or adding 'Component.Load("gb.net")' in the component source code. > > this is not working, i still get "Unable to load class 'Socket'" > what's wrong? > btw, have you noticed my explanation in the previous mail about the ide > crashing? i don't want to be impatient but these two problems get me mad... > > regards, > tobi > I think I see now: you are creating a Socket inside an _init method. But _init is called just after the class is loaded, and apparently before components. Just create it elsewhere. I will try to see if I can run _init later, but it is not sure. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Tue Jul 5 16:13:33 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 05 Jul 2011 16:13:33 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107051607.24889.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107032038.17096.gambas@...1...> <4E13168D.3040608@...20...> <201107051607.24889.gambas@...1...> Message-ID: <4E131C0D.2090303@...20...> > > I think I see now: you are creating a Socket inside an _init method. But _init > is called just after the class is loaded, and apparently before components. > > Just create it elsewhere. I will try to see if I can run _init later, but it > is not sure. > > Regards, > thanks, this sounds logical. i'll try... have you found anything regarding the other issue i noticed? were you able to reproduce the crashes? regards, tobi From gambas at ...1... Tue Jul 5 16:25:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Jul 2011 16:25:33 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <4E131C0D.2090303@...20...> References: <4E10AF97.6010502@...20...> <201107051607.24889.gambas@...1...> <4E131C0D.2090303@...20...> Message-ID: <201107051625.33902.gambas@...1...> > > I think I see now: you are creating a Socket inside an _init method. But > > _init is called just after the class is loaded, and apparently before > > components. > > > > Just create it elsewhere. I will try to see if I can run _init later, but > > it is not sure. > > > > Regards, > > thanks, this sounds logical. i'll try... > have you found anything regarding the other issue i noticed? were you > able to reproduce the crashes? > > regards, > tobi > It may be related. But I will check... -- Beno?t Minisini From and.bertini at ...626... Tue Jul 5 17:26:04 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Tue, 05 Jul 2011 17:26:04 +0200 Subject: [Gambas-user] Webview visualization error in Gambas3 Message-ID: <4E132D0C.4060900@...626...> If i create the following html file: |
| Firefox works good, Webview don't visualize linecharts. -- Andrea Bertini__ From tobiasboe1 at ...20... Tue Jul 5 17:30:52 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 05 Jul 2011 17:30:52 +0200 Subject: [Gambas-user] Component requirements In-Reply-To: <201107051625.33902.gambas@...1...> References: <4E10AF97.6010502@...20...> <201107051607.24889.gambas@...1...> <4E131C0D.2090303@...20...> <201107051625.33902.gambas@...1...> Message-ID: <4E132E2C.7050908@...20...> well, it still not works... i create the socket within _call() now but i get the same message and the ide will crash again if i do something like minimizing and restoring it... -------------- next part -------------- A non-text attachment was scrubbed... Name: test_comp-0.0.10.tar.gz Type: application/x-gzip Size: 8368 bytes Desc: not available URL: From basic.gambas at ...626... Tue Jul 5 19:46:44 2011 From: basic.gambas at ...626... (=?iso-8859-1?Q?Fran=E7ois_Gallo?=) Date: Tue, 5 Jul 2011 19:46:44 +0200 Subject: [Gambas-user] rev 3910 gb.sdl component is disable In-Reply-To: <2663670.JrnDOAuaTY@...2592...> References: <1309858607.2411.11.camel@...2516...> <2663670.JrnDOAuaTY@...2592...> Message-ID: <1D91C0BE-726D-4F17-9224-225D3462FDA4@...626...> Le 5 juil. 2011 ? 13:08, Laurent Carlier a ?crit : > Le Tuesday 5 July 2011 11:36:47, Emanuele Sottocorno a ?crit : >> Hi Laurent, >> thanks for the answer. >> >> I have both libsdl_ttf2.0 and libsdl_ttf2.0-dev installed. >> libSDL_ttf-2.0.so.0.6.3 located in /usr/lib >> SDL_ttf.h located in /lib/include >> >> I had no configure problem till rev 3909. Did you change something >> starting with rev3910? No entry found in Changelog for SDL component. >> Regards, Emanuele >> >> > > It should be fixed in rev#3927. Yes, i confirm, it is fixed. > > SDL_ttf<2.0.10 doesn't provide needed pkg-config file, so i've added the > previous manual checking of files. > > ++ > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fran?ois Gallo From kevinfishburne at ...1887... Tue Jul 5 21:49:36 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Jul 2011 15:49:36 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <201107051234.19279.gambas@...1...> References: <4E12794F.80906@...1887...> <201107051234.19279.gambas@...1...> Message-ID: <4E136AD0.2030402@...1887...> On 07/05/2011 06:34 AM, Beno?t Minisini wrote: >> Since DrawImage just copies the RGBA channels and PaintImage blends the >> channels using the alpha channel, I'm assuming that DrawAlpha copies >> (but does not blend) the alpha channel. Is that the case? > > Actually DrawAlpha is PaintAlpha. I saw no point of just copying the alpha > channel. > > Blending the alpha channel is just keeping the greater transparency between > the destination pixel and the source pixel. This is what DrawAlpha does. Very good. I think I misunderstood how it worked, despite it doing what it was supposed to in my program. > By the way, I have fixed a bug in the alpha blending of PaintImage in revision > #3926. Tell me if you notice the change. I'm going to try recompiling again since revision 3910 involved SDL, but right now I get the error "The program has returned the value: 127" as soon as Client.Initialize() calls Render.Initialize(). The procedure call raises the error immediately, not a line inside the Render.Initialize() procedure, which is interesting. I'll let you know the results when I compile again to 3910 or higher, and if there's any different in appearance or frame rate since the PaintImage bug fix. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Jul 5 22:10:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Jul 2011 16:10:12 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E136AD0.2030402@...1887...> References: <4E12794F.80906@...1887...> <201107051234.19279.gambas@...1...> <4E136AD0.2030402@...1887...> Message-ID: <4E136FA4.8000706@...1887...> On 07/05/2011 03:49 PM, Kevin Fishburne wrote: > On 07/05/2011 06:34 AM, Beno?t Minisini wrote: >>> Since DrawImage just copies the RGBA channels and PaintImage blends the >>> channels using the alpha channel, I'm assuming that DrawAlpha copies >>> (but does not blend) the alpha channel. Is that the case? >> Actually DrawAlpha is PaintAlpha. I saw no point of just copying the alpha >> channel. >> >> Blending the alpha channel is just keeping the greater transparency between >> the destination pixel and the source pixel. This is what DrawAlpha does. > Very good. I think I misunderstood how it worked, despite it doing what > it was supposed to in my program. >> By the way, I have fixed a bug in the alpha blending of PaintImage in revision >> #3926. Tell me if you notice the change. > I'm going to try recompiling again since revision 3910 involved SDL, but > right now I get the error "The program has returned the value: 127" as > soon as Client.Initialize() calls Render.Initialize(). The procedure > call raises the error immediately, not a line inside the > Render.Initialize() procedure, which is interesting. > > I'll let you know the results when I compile again to 3910 or higher, > and if there's any different in appearance or frame rate since the > PaintImage bug fix. Still no dice with the newest revision. Any ideas about what that error message could mean? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Tue Jul 5 23:21:13 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 05 Jul 2011 23:21:13 +0200 Subject: [Gambas-user] Component loading Message-ID: <4E138049.5050204@...20...> hi, i just noticed porting my component testing project to gambas3 that you removed the section from COMPONENT_load() which allows to have user components in ~/.local/lib/whatever ? what's the reason? i really miss that... regards, tobi From Karl.Reinl at ...2345... Tue Jul 5 23:48:25 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 05 Jul 2011 23:48:25 +0200 Subject: [Gambas-user] Component loading In-Reply-To: <4E138049.5050204@...20...> References: <4E138049.5050204@...20...> Message-ID: <1309902505.6330.11.camel@...40...> Am Dienstag, den 05.07.2011, 23:21 +0200 schrieb tobias: > hi, > > i just noticed porting my component testing project to gambas3 that you > removed the section from COMPONENT_load() which allows to have user > components in ~/.local/lib/whatever ? > what's the reason? i really miss that... > > regards, > tobi > Salut tobi, at /Project/Properties/Library you can add what ever you want, and from everywhere on you box. (don't forget the rights) -- Amicalement Charlie From charles at ...1784... Wed Jul 6 15:53:38 2011 From: charles at ...1784... (charlesg) Date: Wed, 6 Jul 2011 06:53:38 -0700 (PDT) Subject: [Gambas-user] Gambas 3 book Message-ID: <32005062.post@...1379...> It see on the Ubuntu forum that Dr Rittinghouse has updated his Gambas book with Jon Nicholson (http://beginnersguidetogambas.com/) now 'revised for Gambas 3'. This is brilliant news! -- View this message in context: http://old.nabble.com/Gambas-3-book-tp32005062p32005062.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Jul 6 15:56:43 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 6 Jul 2011 15:56:43 +0200 Subject: [Gambas-user] Gambas 3 book In-Reply-To: <32005062.post@...1379...> References: <32005062.post@...1379...> Message-ID: 2011/7/6 charlesg : > > It see on the Ubuntu forum that Dr Rittinghouse has updated his Gambas book > with Jon Nicholson (http://beginnersguidetogambas.com/) now 'revised for > Gambas 3'. well ... why he have not use gambas3 screen shot :/ how explain the ide interface without gambas3 ? > > This is brilliant news! > -- > View this message in context: http://old.nabble.com/Gambas-3-book-tp32005062p32005062.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From karl.reinl at ...9... Wed Jul 6 19:01:43 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Wed, 06 Jul 2011 19:01:43 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components Message-ID: <1309971703.6333.34.camel@...40...> Salut Benoit, I'm porting actually a gambas2 application to gambas3. The application consists of several parts. These parts can be ran as executable, or used as component (now Library) in other applications. Now I remarked that while gambas2, when using a component, which it self uses a component, provides/know this underlying component. gambas3 doesn't, you have to declare in every applications. Here a small example : application | App_5 | App_4 | App_3 | App_2 | App_1 ----------------|-------|-------|-------|-------|------ component | App_4 | App_3 | App_2 | App_1 | gambas2 | | App_2 | App_1 | | ----------------|-------|-------|-------|-------|------ libraries | App_4 | App_3 | App_2 | App_1 | gambas3 | App_3 | App_2 | App_1 | | | App_2 | App_1 | | | | App_1 | | | | ----------------|-------|-------|-------|-------|------ -- Amicalement Charlie From kevinfishburne at ...1887... Wed Jul 6 19:30:28 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Jul 2011 13:30:28 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E136AD0.2030402@...1887...> References: <4E12794F.80906@...1887...> <201107051234.19279.gambas@...1...> <4E136AD0.2030402@...1887...> Message-ID: <4E149BB4.2040006@...1887...> On 07/05/2011 03:49 PM, Kevin Fishburne wrote: > On 07/05/2011 06:34 AM, Beno?t Minisini wrote: > >> By the way, I have fixed a bug in the alpha blending of PaintImage in revision >> #3926. Tell me if you notice the change. > > I'm going to try recompiling again since revision 3910 involved SDL, but > right now I get the error "The program has returned the value: 127" as > soon as Client.Initialize() calls Render.Initialize(). The procedure > call raises the error immediately, not a line inside the > Render.Initialize() procedure, which is interesting. > > I'll let you know the results when I compile again to 3910 or higher, > and if there's any different in appearance or frame rate since the > PaintImage bug fix I just noticed in the console window it also says this: there is no soundcard Sanctimonia: symbol lookup error: /usr/local/lib/gambas3/gb.sdl.so: undefined symbol: XcursorGetTheme -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From lordheavym at ...626... Wed Jul 6 21:59:48 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 06 Jul 2011 21:59:48 +0200 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E149BB4.2040006@...1887...> References: <4E12794F.80906@...1887...> <4E136AD0.2030402@...1887...> <4E149BB4.2040006@...1887...> Message-ID: <5039738.XZfGi2CzKQ@...2592...> Le Wednesday 6 July 2011 13:30:28, Kevin Fishburne a ?crit : > I just noticed in the console window it also says this: > > there is no soundcard > Sanctimonia: symbol lookup error: /usr/local/lib/gambas3/gb.sdl.so: > undefined symbol: XcursorGetTheme Can you provide a full building log (configure, make) Something is rotten during the linking. ++ From kevinfishburne at ...1887... Wed Jul 6 23:52:27 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Jul 2011 17:52:27 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <5039738.XZfGi2CzKQ@...2592...> References: <4E12794F.80906@...1887...> <4E136AD0.2030402@...1887...> <4E149BB4.2040006@...1887...> <5039738.XZfGi2CzKQ@...2592...> Message-ID: <4E14D91B.3010201@...1887...> On 07/06/2011 03:59 PM, Laurent Carlier wrote: > Le Wednesday 6 July 2011 13:30:28, Kevin Fishburne a ?crit : >> I just noticed in the console window it also says this: >> >> there is no soundcard >> Sanctimonia: symbol lookup error: /usr/local/lib/gambas3/gb.sdl.so: >> undefined symbol: XcursorGetTheme > Can you provide a full building log (configure, make) > > Something is rotten during the linking. Here's the terminal output of my installation script. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: terminal output.tar.gz Type: application/x-gzip Size: 71028 bytes Desc: not available URL: From lordheavym at ...626... Thu Jul 7 00:05:14 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 07 Jul 2011 00:05:14 +0200 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E14D91B.3010201@...1887...> References: <4E12794F.80906@...1887...> <5039738.XZfGi2CzKQ@...2592...> <4E14D91B.3010201@...1887...> Message-ID: <13232738.Kq0ZKyeTFJ@...2592...> Le Wednesday 6 July 2011 17:52:27, Kevin Fishburne a ?crit : > On 07/06/2011 03:59 PM, Laurent Carlier wrote: > > Le Wednesday 6 July 2011 13:30:28, Kevin Fishburne a ?crit : > >> I just noticed in the console window it also says this: > >> > >> there is no soundcard > >> Sanctimonia: symbol lookup error: /usr/local/lib/gambas3/gb.sdl.so: > >> undefined symbol: XcursorGetTheme > > > > Can you provide a full building log (configure, make) > > > > Something is rotten during the linking. > > Here's the terminal output of my installation script. Ok, should be fixed in rev#3929 ++ From kevinfishburne at ...1887... Thu Jul 7 01:11:45 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Jul 2011 19:11:45 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <13232738.Kq0ZKyeTFJ@...2592...> References: <4E12794F.80906@...1887...> <5039738.XZfGi2CzKQ@...2592...> <4E14D91B.3010201@...1887...> <13232738.Kq0ZKyeTFJ@...2592...> Message-ID: <4E14EBB1.7030108@...1887...> On 07/06/2011 06:05 PM, Laurent Carlier wrote: > Le Wednesday 6 July 2011 17:52:27, Kevin Fishburne a ?crit : >> On 07/06/2011 03:59 PM, Laurent Carlier wrote: >>> Le Wednesday 6 July 2011 13:30:28, Kevin Fishburne a ?crit : >>>> I just noticed in the console window it also says this: >>>> >>>> there is no soundcard >>>> Sanctimonia: symbol lookup error: /usr/local/lib/gambas3/gb.sdl.so: >>>> undefined symbol: XcursorGetTheme >>> Can you provide a full building log (configure, make) >>> >>> Something is rotten during the linking. >> Here's the terminal output of my installation script. > Ok, should be fixed in rev#3929 It is fixed, thanks Laurent. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Jul 7 01:15:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Jul 2011 19:15:44 -0400 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <201107051234.19279.gambas@...1...> References: <4E12794F.80906@...1887...> <201107051234.19279.gambas@...1...> Message-ID: <4E14ECA0.9050303@...1887...> On 07/05/2011 06:34 AM, Beno?t Minisini wrote: > > By the way, I have fixed a bug in the alpha blending of PaintImage in revision > #3926. Tell me if you notice the change. Laurent fixed the bug with SDL, so I was able to test PaintImage. I didn't see a change in frame rate (still 16/17 fps) or a noticeable change in blending. What was the bug regarding? Also, possibly off topic, but how do I check the revision history of gb3? I don't know anything about svn or revision tracking software. I have some idea about how it works but would like to browse a commit log if that's possible. I'm assuming that most commits have brief explanatory notes? Sorry for my ignorance about that. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From member at ...2579... Thu Jul 7 01:16:18 2011 From: member at ...2579... (Silvani Canal via LinkedIn) Date: Wed, 6 Jul 2011 23:16:18 +0000 (UTC) Subject: [Gambas-user] =?utf-8?q?Rejoindre_mon_r=C3=A9seau_sur_LinkedIn?= Message-ID: <620959049.29584.1309994178498.JavaMail.app@...2617...> LinkedIn ------------ Silvani Canal souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Je vous invite ? faire partie de mon r?seau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Silvani Canal http://www.linkedin.com/e/hggat5-gpswpl7a-1a/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1495254756_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPoRdPgRczkVd359bR0VqBFbel8MbPwMejcTcPkRd3cLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Silvani Canal http://www.linkedin.com/e/hggat5-gpswpl7a-1a/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1495254756_3/3dvdzkTd3kOdjAQckALqnpPbOYWrSlI/svi/ ------------------------------------------ Quel est l'int?r?t de faire partie du r?seau de Silvani Canal?? Vous avez une question?? Le r?seau de Silvani Canal a probablement une r?ponse?: La rubrique R?ponses de LinkedIn vous permet de vous informer aupr?s de Silvani Canal et de votre r?seau. Obtenez l'information que vous recherchez aupr?s de professionnels exp?riment?s. http://www.linkedin.com/e/hggat5-gpswpl7a-1a/ash/inv19_ayn/ -- (c) 2011, LinkedIn Corporation From member at ...2579... Thu Jul 7 09:06:35 2011 From: member at ...2579... (Csaba M. via LinkedIn) Date: Thu, 7 Jul 2011 07:06:35 +0000 (UTC) Subject: [Gambas-user] =?utf-8?q?Rejoindre_mon_r=C3=A9seau_sur_LinkedIn?= Message-ID: <935056888.938200.1310022395964.JavaMail.app@...2618...> LinkedIn ------------ Csaba M. souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Je vous invite ? faire partie de mon r?seau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Csaba M. http://www.linkedin.com/e/hggat5-gptdidyw-1t/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1496110022_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP8Oc30NcjoVd359bSoUqzBgiAFkbPkRczgOdjwRd3cLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Csaba M. http://www.linkedin.com/e/hggat5-gptdidyw-1t/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1496110022_3/3dvcz8Mc34NdzAQckALqnpPbOYWrSlI/svi/ ------------------------------------------ SAVEZ-VOUS que pr?senter vos comp?tences sur LinkedIn augmente votre cr?dibilit? professionnelle et peut vous apporter des propositions de postes ou de missions?? R?pondre ? des questions de la rubrique R?ponses vous permet de faire valoir votre expertise aupr?s d'une communaut? mondiale de professionnels. http://www.linkedin.com/e/hggat5-gptdidyw-1t/abq/inv-24/ -- (c) 2011, LinkedIn Corporation From wally at ...2037... Fri Jul 8 09:33:30 2011 From: wally at ...2037... (wally) Date: Fri, 8 Jul 2011 09:33:30 +0200 Subject: [Gambas-user] ScrollArea Problem Message-ID: <201107080933.31218.wally@...2037...> Hi, Gambas 3, ScrollArea (painted=true) when i set "Painted" property to True i get the following Message: see attachment and IDE crashes. Is there some ScrollArea example code available or some infos how to use this widget ? wally -------------- next part -------------- A non-text attachment was scrubbed... Name: scrollarea.png Type: image/png Size: 34683 bytes Desc: not available URL: From gambas.fr at ...626... Fri Jul 8 10:00:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 8 Jul 2011 10:00:59 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: <201107080933.31218.wally@...2037...> References: <201107080933.31218.wally@...2037...> Message-ID: 2011/7/8 wally : > Hi, > > Gambas 3, ScrollArea (painted=true) > > when i set "Painted" property to True i get the following Message: > see attachment and IDE crashes. > > Is there some ScrollArea example code available or some infos > how to use this widget ? you have the iconview widget that use this powerfull component. look in the gambas sources : trunk/comp/src/gb.form (open gb.form with gambas ide) the error say you are trying to use draw function when you have selected paint base. In this case use the paint class. if you want to use the draw class set painted to false. (its like the drawingarea) The difference between drawingarea and scrollarea is that scroll area have integrated scrollbar and a wheel event > > wally > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From wally at ...2037... Fri Jul 8 10:19:11 2011 From: wally at ...2037... (wally) Date: Fri, 8 Jul 2011 10:19:11 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: References: <201107080933.31218.wally@...2037...> Message-ID: <201107081019.11351.wally@...2037...> Fabian, i thoughr ScrollArea is the same as DrawingArea + Scollbars. So it should be possible to use the draw_event. I paint my curve data in this event routine but the Painted property must be set true. What is my mistake ? wally On Friday, July 08, 2011 10:00:59 Fabien Bodard wrote: > 2011/7/8 wally : > > Hi, > > > > Gambas 3, ScrollArea (painted=true) > > > > when i set "Painted" property to True i get the following Message: > > see attachment and IDE crashes. > > > > Is there some ScrollArea example code available or some infos > > how to use this widget ? > > you have the iconview widget that use this powerfull component. > > look in the gambas sources : > > trunk/comp/src/gb.form > > (open gb.form with gambas ide) > > > the error say you are trying to use draw function when you have > selected paint base. In this case use the paint class. > > if you want to use the draw class set painted to false. (its like the > drawingarea) > > > The difference between drawingarea and scrollarea is that scroll area > have integrated scrollbar and a wheel event > > > wally > > > > ------------------------------------------------------------------------- > > ----- All of the data generated in your IT infrastructure is seriously > > valuable. Why? It contains a definitive record of application > > performance, security threats, fraudulent activity, and more. Splunk > > takes this data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Jul 8 11:55:37 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 8 Jul 2011 11:55:37 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: <201107081019.11351.wally@...2037...> References: <201107080933.31218.wally@...2037...> <201107081019.11351.wally@...2037...> Message-ID: show me your code for _draw 2011/7/8 wally : > Fabian, > > i thoughr ScrollArea is the same as DrawingArea + Scollbars. > So it should be possible to use the draw_event. > I paint my curve data in this event routine but the Painted property must be > set true. > What is my mistake ? > > wally > > > > > On Friday, July 08, 2011 10:00:59 Fabien Bodard wrote: >> 2011/7/8 wally : >> > Hi, >> > >> > Gambas 3, ScrollArea (painted=true) >> > >> > when i set "Painted" property to True i get the following Message: >> > see attachment and IDE crashes. >> > >> > Is there some ScrollArea example code available or some infos >> > how to use this widget ? >> >> you have the iconview widget that use this powerfull component. >> >> look in the gambas sources : >> >> trunk/comp/src/gb.form >> >> (open gb.form with gambas ide) >> >> >> the error say you are trying to use draw function when you have >> selected paint base. In this case use the paint class. >> >> if you want to use the draw class set painted to false. ?(its like the >> drawingarea) >> >> >> The difference between drawingarea and scrollarea is that scroll area >> have integrated scrollbar and a wheel event >> >> > wally >> > >> > ------------------------------------------------------------------------- >> > ----- All of the data generated in your IT infrastructure is seriously >> > valuable. Why? It contains a definitive record of application >> > performance, security threats, fraudulent activity, and more. Splunk >> > takes this data and makes sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2d-c2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From wally at ...2037... Fri Jul 8 12:08:09 2011 From: wally at ...2037... (wally) Date: Fri, 8 Jul 2011 12:08:09 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: References: <201107080933.31218.wally@...2037...> <201107081019.11351.wally@...2037...> Message-ID: <201107081208.09898.wally@...2037...> any line code is written yet. Just started to put scrollarea on form and set properties On Friday, July 08, 2011 11:55:37 Fabien Bodard wrote: > show me your code for _draw > > 2011/7/8 wally : > > Fabian, > > > > i thoughr ScrollArea is the same as DrawingArea + Scollbars. > > So it should be possible to use the draw_event. > > I paint my curve data in this event routine but the Painted property must > > be set true. > > What is my mistake ? > > > > wally > > > > On Friday, July 08, 2011 10:00:59 Fabien Bodard wrote: > >> 2011/7/8 wally : > >> > Hi, > >> > > >> > Gambas 3, ScrollArea (painted=true) > >> > > >> > when i set "Painted" property to True i get the following Message: > >> > see attachment and IDE crashes. > >> > > >> > Is there some ScrollArea example code available or some infos > >> > how to use this widget ? > >> > >> you have the iconview widget that use this powerfull component. > >> > >> look in the gambas sources : > >> > >> trunk/comp/src/gb.form > >> > >> (open gb.form with gambas ide) > >> > >> > >> the error say you are trying to use draw function when you have > >> selected paint base. In this case use the paint class. > >> > >> if you want to use the draw class set painted to false. (its like the > >> drawingarea) > >> > >> > >> The difference between drawingarea and scrollarea is that scroll area > >> have integrated scrollbar and a wheel event > >> > >> > wally > >> > > >> > ---------------------------------------------------------------------- > >> > --- ----- All of the data generated in your IT infrastructure is > >> > seriously valuable. Why? It contains a definitive record of > >> > application performance, security threats, fraudulent activity, and > >> > more. Splunk takes this data and makes sense of it. IT sense. And > >> > common sense. http://p.sf.net/sfu/splunk-d2d-c2 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- All of the data generated in your IT infrastructure is seriously > > valuable. Why? It contains a definitive record of application > > performance, security threats, fraudulent activity, and more. Splunk > > takes this data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Jul 8 14:00:35 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 8 Jul 2011 14:00:35 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: <201107081208.09898.wally@...2037...> References: <201107080933.31218.wally@...2037...> <201107081019.11351.wally@...2037...> <201107081208.09898.wally@...2037...> Message-ID: This is a bug !!! 2011/7/8 wally : > > > any line code is written yet. > Just started to put scrollarea on form and set properties > > > > On Friday, July 08, 2011 11:55:37 Fabien Bodard wrote: >> show me your code for _draw >> >> 2011/7/8 wally : >> > Fabian, >> > >> > i thoughr ScrollArea is the same as DrawingArea + Scollbars. >> > So it should be possible to use the draw_event. >> > I paint my curve data in this event routine but the Painted property must >> > be set true. >> > What is my mistake ? >> > >> > wally >> > >> > On Friday, July 08, 2011 10:00:59 Fabien Bodard wrote: >> >> 2011/7/8 wally : >> >> > Hi, >> >> > >> >> > Gambas 3, ScrollArea (painted=true) >> >> > >> >> > when i set "Painted" property to True i get the following Message: >> >> > see attachment and IDE crashes. >> >> > >> >> > Is there some ScrollArea example code available or some infos >> >> > how to use this widget ? >> >> >> >> you have the iconview widget that use this powerfull component. >> >> >> >> look in the gambas sources : >> >> >> >> trunk/comp/src/gb.form >> >> >> >> (open gb.form with gambas ide) >> >> >> >> >> >> the error say you are trying to use draw function when you have >> >> selected paint base. In this case use the paint class. >> >> >> >> if you want to use the draw class set painted to false. ?(its like the >> >> drawingarea) >> >> >> >> >> >> The difference between drawingarea and scrollarea is that scroll area >> >> have integrated scrollbar and a wheel event >> >> >> >> > wally >> >> > >> >> > ---------------------------------------------------------------------- >> >> > --- ----- All of the data generated in your IT infrastructure is >> >> > seriously valuable. Why? It contains a definitive record of >> >> > application performance, security threats, fraudulent activity, and >> >> > more. Splunk takes this data and makes sense of it. IT sense. And >> >> > common sense. http://p.sf.net/sfu/splunk-d2d-c2 >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > ------------------------------------------------------------------------- >> > ----- All of the data generated in your IT infrastructure is seriously >> > valuable. Why? It contains a definitive record of application >> > performance, security threats, fraudulent activity, and more. Splunk >> > takes this data and makes sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2d-c2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Fri Jul 8 17:06:32 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 08 Jul 2011 18:06:32 +0300 Subject: [Gambas-user] wiki search Message-ID: <1310137592.16233.1.camel@...2493...> hi, i want to ask why the google site search was removed from the site? i used it a lot to find methods and properties which i did not remember where they were. :( -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Fri Jul 8 17:23:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 08 Jul 2011 18:23:35 +0300 Subject: [Gambas-user] ProgressBar Change Event Message-ID: <1310138615.16931.3.camel@...2493...> hi, i make an example with progressbar and i saw that i was needed a ProgressBar_Change() event to check the status (value) of the control. So if value is 1 to show a Message.Info("Complete 100%"). Is it possible to implement this event? -- Regards, Demosthenes Koptsis. From gambas at ...1... Fri Jul 8 18:20:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 8 Jul 2011 18:20:52 +0200 Subject: [Gambas-user] wiki search In-Reply-To: <1310137592.16233.1.camel@...2493...> References: <1310137592.16233.1.camel@...2493...> Message-ID: <201107081820.53035.gambas@...1...> > hi, > > i want to ask why the google site search was removed from the site? > i used it a lot to find methods and properties which i did not remember > where they were. :( It wasn't: click on the "search" link on top of the gambasdoc.org website. Regards, -- Beno?t Minisini From demosthenesk at ...626... Fri Jul 8 18:30:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 08 Jul 2011 19:30:02 +0300 Subject: [Gambas-user] wiki search In-Reply-To: <201107081820.53035.gambas@...1...> References: <1310137592.16233.1.camel@...2493...> <201107081820.53035.gambas@...1...> Message-ID: <1310142602.16931.5.camel@...2493...> ok but for a few minutes the links were disappeared. see picture. Thanks! On Fri, 2011-07-08 at 18:20 +0200, Beno?t Minisini wrote: > gambasdoc.org -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: image_120.png Type: image/png Size: 21090 bytes Desc: not available URL: From gambas at ...1... Fri Jul 8 18:34:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 8 Jul 2011 18:34:43 +0200 Subject: [Gambas-user] wiki search In-Reply-To: <1310142602.16931.5.camel@...2493...> References: <1310137592.16233.1.camel@...2493...> <201107081820.53035.gambas@...1...> <1310142602.16931.5.camel@...2493...> Message-ID: <201107081834.43620.gambas@...1...> > ok but for a few minutes the links were disappeared. > > see picture. > > Thanks! > ????? Very strange! -- Beno?t Minisini From demosthenesk at ...626... Fri Jul 8 18:53:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 08 Jul 2011 19:53:10 +0300 Subject: [Gambas-user] wiki search In-Reply-To: <201107081834.43620.gambas@...1...> References: <1310137592.16233.1.camel@...2493...> <201107081820.53035.gambas@...1...> <1310142602.16931.5.camel@...2493...> <201107081834.43620.gambas@...1...> Message-ID: <1310143990.16931.6.camel@...2493...> it may be some strange behavior of firefox, i think now. On Fri, 2011-07-08 at 18:34 +0200, Beno?t Minisini wrote: > > ok but for a few minutes the links were disappeared. > > > > see picture. > > > > Thanks! > > > > ????? > > Very strange! > -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Sat Jul 9 00:02:43 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 9 Jul 2011 00:02:43 +0200 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: <1310138615.16931.3.camel@...2493...> References: <1310138615.16931.3.camel@...2493...> Message-ID: ??? can't you test the value when you set the value of the progressbar ? progressbar1.value = X if X >=1 then message.info("all is done") 2011/7/8 Demosthenes Koptsis : > hi, > > i make an example with progressbar and i saw that i was needed a > ProgressBar_Change() event to check the status (value) of the control. > > So if value is 1 to show a Message.Info("Complete 100%"). > > Is it possible to implement this event? > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Sat Jul 9 09:04:46 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 09 Jul 2011 10:04:46 +0300 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: References: <1310138615.16931.3.camel@...2493...> Message-ID: <1310195086.29111.9.camel@...2493...> in that case the expression if X >=1 then message.info("all is done") who will watch this expression? i need a timer or event loop or event ProgressBar1_Change() i implement this for now with a timer but i think it would be more elegant as programming approach to watch the ProgressBar1.Value and not the variable who set this value. On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote: > ??? can't you test the value when you set the value of the progressbar ? > > progressbar1.value = X > > if X >=1 then message.info("all is done") > > 2011/7/8 Demosthenes Koptsis : > > hi, > > > > i make an example with progressbar and i saw that i was needed a > > ProgressBar_Change() event to check the status (value) of the control. > > > > So if value is 1 to show a Message.Info("Complete 100%"). > > > > Is it possible to implement this event? > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes Koptsis. From samandujar at ...2619... Sat Jul 9 09:16:45 2011 From: samandujar at ...2619... (samandujar at ...2619...) Date: Sat, 9 Jul 2011 07:16:45 GMT Subject: [Gambas-user] un-subscribe me Message-ID: <20110709.031645.12857.0@...2620...> PLEASE!!! un-subscribe me (samandujar at ...2619...) from the list! sam a. ____________________________________________________________ Penny Stock Jumping 3000% Sign up to the #1 voted penny stock newsletter for free today! http://thirdpartyoffers.juno.com/TGL3131/4e18009cc08c02b951bst03vuc From support at ...2529... Sat Jul 9 10:24:32 2011 From: support at ...2529... (John Spikowski) Date: Sat, 09 Jul 2011 01:24:32 -0700 Subject: [Gambas-user] un-subscribe me In-Reply-To: <20110709.031645.12857.0@...2620...> References: <20110709.031645.12857.0@...2620...> Message-ID: <1310199872.1975.4.camel@...1833...> On Sat, 2011-07-09 at 07:16 +0000, samandujar at ...2619... wrote: > PLEASE!!! > > un-subscribe me (samandujar at ...2619...) from the list! > > sam a. send an e-mail to " gambas-user-request at lists.sourceforge.net " and insert the word " unsubscribe " in the body for the message. From demosthenesk at ...626... Sat Jul 9 11:29:33 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 09 Jul 2011 12:29:33 +0300 Subject: [Gambas-user] Comments at wiki like PHP site Message-ID: <1310203773.32193.1.camel@...2493...> hi, is it possible to extend wiki documentation with user comments like PHP documentation? see for example http://www.php.net/manual/en/language.types.php http://www.php.net/manual/en/language.functions.php -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jul 9 11:41:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 09 Jul 2011 12:41:02 +0300 Subject: [Gambas-user] TrayIcon is missing Message-ID: <1310204462.32517.1.camel@...2493...> hi i search for TrayIcon in Special Tab but i cant find it nor in any tab. In Gambas2 there was at Special tab as i see. -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Sat Jul 9 12:39:29 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 09 Jul 2011 12:39:29 +0200 Subject: [Gambas-user] ComboBox_Click Problem In-Reply-To: <1310204462.32517.1.camel@...2493...> References: <1310204462.32517.1.camel@...2493...> Message-ID: <4E182FE1.2030202@...20...> hi, i encountered a problem - for me - in gambas3 regarding ComboBox_Click() event. i have a directory name in ComboBox.Text and the contents of this directory in ComboBox.List. i implemented _Click() to append the current item's text to the directory path: Public Sub ComboBox1_Click() Dim sPath As String Print ComboBox1.Text sPath = Mid$(ComboBox1.Text, 1, RInStr(ComboBox1.Text, "/")) ComboBox1.Text = sPath &/ ComboBox1.Current.Text End this results in e.g. "bin" (if ComboBox1.Text was "/" before) as output in terminal, so the ComboBox.Text is changed to the text of the selected item before the event is raised. i tried Stop Event but this didn't help. i want to preserve the previous text. the text of the current selected item is in ComboBox1.Current.Text, too, so it's twice available but i don't see a proper way to get the previous text. or is this expected? i don't know if this is the same in gb2... regards, tobi From tobiasboe1 at ...20... Sat Jul 9 14:43:02 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 09 Jul 2011 14:43:02 +0200 Subject: [Gambas-user] gb.Case In-Reply-To: <4E182FE1.2030202@...20...> References: <1310204462.32517.1.camel@...2493...> <4E182FE1.2030202@...20...> Message-ID: <4E184CD6.4000202@...20...> hi, while the doc says that there is a constant gb.Case, the interpreter tells me that there is no symbol "Case" within gb. gb.Text works well instead. but either the doc or the interpreter should be corrected ;) regards, tobi From dosida at ...626... Sun Jul 10 05:54:53 2011 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 9 Jul 2011 21:54:53 -0600 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: <1310195086.29111.9.camel@...2493...> References: <1310138615.16931.3.camel@...2493...> <1310195086.29111.9.camel@...2493...> Message-ID: Demosthene, Since the value of the progressbar cotnrol is just between 0 to 1 you can probably try IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete" You can probably do this within the ProgressBar1_Change() event assuming that the event is going to get fired when an input changes the Value property of the control. I hope this helps Dimitris On Sat, Jul 9, 2011 at 1:04 AM, Demosthenes Koptsis wrote: > in that case > > the expression > if X >=1 then message.info("all is done") > > who will watch this expression? > > i need a timer or event loop or event ProgressBar1_Change() > > i implement this for now with a timer > but i think it would be more elegant as programming approach to watch the > ProgressBar1.Value and not the variable who set this value. > > > On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote: > > ??? can't you test the value when you set the value of the progressbar ? > > > > progressbar1.value = X > > > > if X >=1 then message.info("all is done") > > > > 2011/7/8 Demosthenes Koptsis : > > > hi, > > > > > > i make an example with progressbar and i saw that i was needed a > > > ProgressBar_Change() event to check the status (value) of the control. > > > > > > So if value is 1 to show a Message.Info("Complete 100%"). > > > > > > Is it possible to implement this event? > > > > > > > > > -- > > > Regards, > > > Demosthenes Koptsis. > > > > > > > > > > ------------------------------------------------------------------------------ > > > All of the data generated in your IT infrastructure is seriously > valuable. > > > Why? It contains a definitive record of application performance, > security > > > threats, fraudulent activity, and more. Splunk takes this data and > makes > > > sense of it. IT sense. And common sense. > > > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Sun Jul 10 07:37:39 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 10 Jul 2011 01:37:39 -0400 Subject: [Gambas-user] using Sin() to produce a specific range of values Message-ID: <4E193AA3.50501@...1887...> Again my thick skull prevents me from figuring this out, even with Google searches. I need to use the Sin() function to calculate an output range from an input range. The advantage of Sin() is that it's not linear; it makes a nice smooth curve of values sort of like a sound wave in an audio editor. I need to produce an output range of values from 0 to 255, then back from 255 to 0. A linear example would be: 0, 31, 63, 95, 127, 159, 191, 223, 255, 223, 191, 159, 127, 95, 63, 31, 0 Sin()'s output should start at 0, peak at 255, then go back down to 0. The input range I can control so whatever is easiest or most efficient will work fine. The Greek symbols in the official math references are a bit much for what should be a simple equation rather than a math lesson. ;) Any help is appreciated as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ihaywood at ...1979... Sun Jul 10 08:02:11 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 10 Jul 2011 16:02:11 +1000 Subject: [Gambas-user] using Sin() to produce a specific range of values In-Reply-To: <4E193AA3.50501@...1887...> References: <4E193AA3.50501@...1887...> Message-ID: On Sun, Jul 10, 2011 at 3:37 PM, Kevin Fishburne wrote: > I need to use the Sin() function to calculate an output range from an > input range. The advantage of Sin() is that it's not linear; it makes a > nice smooth curve of values sort of like a sound wave in an audio editor. this example project does this using 50 numbers, you can adjust the stepping in the FOR loop to change the number of numbers produced. Ian -------------- next part -------------- A non-text attachment was scrubbed... Name: sin-0.0.1.tar.gz Type: application/x-gzip Size: 4459 bytes Desc: not available URL: From kevinfishburne at ...1887... Sun Jul 10 08:33:27 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 10 Jul 2011 02:33:27 -0400 Subject: [Gambas-user] using Sin() to produce a specific range of values In-Reply-To: References: <4E193AA3.50501@...1887...> Message-ID: <4E1947B7.9090909@...1887...> On 07/10/2011 02:02 AM, Ian Haywood wrote: > On Sun, Jul 10, 2011 at 3:37 PM, Kevin Fishburne > wrote: >> I need to use the Sin() function to calculate an output range from an >> input range. The advantage of Sin() is that it's not linear; it makes a >> nice smooth curve of values sort of like a sound wave in an audio editor. > this example project does this using 50 numbers, you can adjust the stepping > in the FOR loop to change the number of numbers produced. Hi Ian. The code attached is: Public Sub Main() Dim i As Float For i = 0.0 To 1.0 Step 0.02 Print CInt(255 * Sin(Pi(i))) Next End It's output values when run are: 0 16 31 47 63 78 93 108 122 136 149 162 174 185 196 206 215 223 230 237 242 246 250 252 254 255 254 252 250 246 242 237 230 223 215 206 196 185 174 162 149 136 122 108 93 78 63 47 31 16 That worked extremely well, thank you so much. The Pi part is interesting. I thought I had it working, as it worked very similarly to your code, but I didn't use Pi. I was using something like Rad(degrees), cycling from 0 to 360 instead. Something I just corrected was that I needed those values inversed. It should have started at 255, went to zero in the middle, then back to 255. I figured it out, so I guess I'm not a completely jackass. :) Thanks so much! Also, to the mailing list in general, please let me know if it's okay if every now and then if I post a link to what I've done so far with GAMBAS. Part of me thinks it's okay because we should all be proud of what we've programmed with it, but I don't want to offend the list. Any input on that is appreciated. Sometimes when someone helps me (a lot around here!) I want to show them the immediate results of the fix, but I'm a bit reserved as I don't want to pollute an already busy list. Maybe there should be a new gb mailing list just for accomplishments? -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Sun Jul 10 09:04:59 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 10 Jul 2011 10:04:59 +0300 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: References: <1310138615.16931.3.camel@...2493...> <1310195086.29111.9.camel@...2493...> Message-ID: <1310281499.2587.29.camel@...2494...> Dimitris i say exactly that. 1) There is no watcher method to watch the changes in a progressbar. i would like to write something like that. PUBLIC SUB ProgressBar1_Change() Message.Info("Complete 100%") END but progressbar has not any Change() event. 2) So for now i use a Timer with interval 100 ms who watch ProgressBar.Value and show the Message. 3) Of course i can watch the variable who feeds the ProgressBar.Value but this is not the solution. it is the same to watch the sString variable for a tetbox and not use the Change event. example: TextBox1.Text = sString. what is the solution here? To watch sString or to use a change event? On Sat, 2011-07-09 at 21:54 -0600, Dimitris Anogiatis wrote: > Demosthene, > > Since the value of the progressbar cotnrol is just between 0 to 1 > you can probably try > > IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete" > > > You can probably do this within the ProgressBar1_Change() event > assuming that the event is going to get fired when an input changes > the Value property of the control. > > I hope this helps > > Dimitris > > On Sat, Jul 9, 2011 at 1:04 AM, Demosthenes Koptsis > wrote: > > > in that case > > > > the expression > > if X >=1 then message.info("all is done") > > > > who will watch this expression? > > > > i need a timer or event loop or event ProgressBar1_Change() > > > > i implement this for now with a timer > > but i think it would be more elegant as programming approach to watch the > > ProgressBar1.Value and not the variable who set this value. > > > > > > On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote: > > > ??? can't you test the value when you set the value of the progressbar ? > > > > > > progressbar1.value = X > > > > > > if X >=1 then message.info("all is done") > > > > > > 2011/7/8 Demosthenes Koptsis : > > > > hi, > > > > > > > > i make an example with progressbar and i saw that i was needed a > > > > ProgressBar_Change() event to check the status (value) of the control. > > > > > > > > So if value is 1 to show a Message.Info("Complete 100%"). > > > > > > > > Is it possible to implement this event? > > > > > > > > > > > > -- > > > > Regards, > > > > Demosthenes Koptsis. > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > All of the data generated in your IT infrastructure is seriously > > valuable. > > > > Why? It contains a definitive record of application performance, > > security > > > > threats, fraudulent activity, and more. Splunk takes this data and > > makes > > > > sense of it. IT sense. And common sense. > > > > http://p.sf.net/sfu/splunk-d2d-c2 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas.fr at ...626... Sun Jul 10 10:54:04 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 10 Jul 2011 10:54:04 +0200 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: <1310281499.2587.29.camel@...2494...> References: <1310138615.16931.3.camel@...2493...> <1310195086.29111.9.camel@...2493...> <1310281499.2587.29.camel@...2494...> Message-ID: But There is an ENORMOUS difference between a textbox and a progressbar !! In the progressbar side the user CAN'T change the value with his keyboard or mouse. So we know where and when the value is changed. The change event in the text box is a way to inform the program that the user do something. You need really to explain us why you really need this event !! i think it's not a real need because Public sub SpinBow_Change() Progressbar1.Value = Last.value/100 End Public sub ProgressBar1_Change() If last.Value =1 then message.info("end process") End is more complicated (for the same result) than : Public sub SpinBow_Change() Progressbar1.Value = Last.value/100 If last.Value =100 then message.info("end process") End no ? I really don't understand why you need to test the progressbar ? and not check on the value that set the progressbar... you need to learn the data/view way of programming. Datas are one thing , View another ! ProgressBar is just a view for a state... but does not store the state. 2011/7/10 Demosthenes Koptsis : > Dimitris i say exactly that. > > 1) There is no watcher method to watch the changes in a progressbar. > > i would like to write something like that. > > PUBLIC SUB ProgressBar1_Change() > ?Message.Info("Complete 100%") > END > > but progressbar has not any Change() event. > > 2) So for now i use a Timer with interval 100 ms who watch > ProgressBar.Value and show the Message. > > 3) Of course i can watch the variable who feeds the ProgressBar.Value > but this is not the solution. > > it is the same to watch the sString variable for a tetbox and not use > the Change event. > example: > TextBox1.Text = sString. > > what is the solution here? To watch sString or to use a change event? > > > On Sat, 2011-07-09 at 21:54 -0600, Dimitris Anogiatis wrote: >> Demosthene, >> >> Since the value of the progressbar cotnrol is just between 0 to 1 >> you can probably try >> >> IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete" >> >> >> You can probably do this within the ProgressBar1_Change() event >> assuming that the event is going to get fired when an input changes >> the Value property of the control. >> >> I hope this helps >> >> Dimitris >> >> On Sat, Jul 9, 2011 at 1:04 AM, Demosthenes Koptsis >> wrote: >> >> > in that case >> > >> > the expression >> > if X >=1 then message.info("all is done") >> > >> > who will watch this expression? >> > >> > i need a timer or event loop or event ProgressBar1_Change() >> > >> > i implement this for now with a timer >> > but i think it would be more elegant as programming approach to watch the >> > ProgressBar1.Value and not the variable who set this value. >> > >> > >> > On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote: >> > > ??? can't you test the value when you set the value of the progressbar ? >> > > >> > > progressbar1.value = X >> > > >> > > if X >=1 then message.info("all is done") >> > > >> > > 2011/7/8 Demosthenes Koptsis : >> > > > hi, >> > > > >> > > > i make an example with progressbar and i saw that i was needed a >> > > > ProgressBar_Change() event to check the status (value) of the control. >> > > > >> > > > So if value is 1 to show a Message.Info("Complete 100%"). >> > > > >> > > > Is it possible to implement this event? >> > > > >> > > > >> > > > -- >> > > > Regards, >> > > > Demosthenes Koptsis. >> > > > >> > > > >> > > > >> > ------------------------------------------------------------------------------ >> > > > All of the data generated in your IT infrastructure is seriously >> > valuable. >> > > > Why? It contains a definitive record of application performance, >> > security >> > > > threats, fraudulent activity, and more. Splunk takes this data and >> > makes >> > > > sense of it. IT sense. And common sense. >> > > > http://p.sf.net/sfu/splunk-d2d-c2 >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > >> > > >> > > >> > >> > -- >> > Regards, >> > Demosthenes Koptsis. >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously valuable. >> > Why? It contains a definitive record of application performance, security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2d-c2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Sun Jul 10 11:42:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 10 Jul 2011 12:42:10 +0300 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: References: <1310138615.16931.3.camel@...2493...> <1310195086.29111.9.camel@...2493...> <1310281499.2587.29.camel@...2494...> Message-ID: <1310290930.4420.26.camel@...2494...> ok, maybe you are right. i explain my case: In my case the purpose to use a change event for progressbar is to inform user about the changes of its value within control and not from a variable which changes the value of the control. Only for this. For the data/view part i understand what are you saying. But the progressbar store its state to its value property. The difference is that the user cannot change its value from the keyboard but the program does it, ok. Also from another point of view there is a change to the property Value regardless that there is no implementation for this as an event, so far or an obvious purpose to use such an event. If the change event is used only for the input of user and how the user changes a value, it is ok, there is no need for a change event for progressbar. i just thought that the change event would described better the behavior of the progressbar to its operation independently of user actions. On Sun, 2011-07-10 at 10:54 +0200, Fabien Bodard wrote: > But There is an ENORMOUS difference between a textbox and a progressbar !! > > In the progressbar side the user CAN'T change the value with his > keyboard or mouse. So we know where and when the value is changed. > > The change event in the text box is a way to inform the program that > the user do something. > > You need really to explain us why you really need this event !! > > > i think it's not a real need because > > > Public sub SpinBow_Change() > Progressbar1.Value = Last.value/100 > End > > > Public sub ProgressBar1_Change() > If last.Value =1 then message.info("end process") > End > > > is more complicated (for the same result) than : > > Public sub SpinBow_Change() > Progressbar1.Value = Last.value/100 > If last.Value =100 then message.info("end process") > End > > > no ? > > I really don't understand why you need to test the progressbar ? and > not check on the value that set the progressbar... you need to > learn the data/view way of programming. Datas are one thing , View > another ! ProgressBar is just a view for a state... but does not > store the state. > > 2011/7/10 Demosthenes Koptsis : > > Dimitris i say exactly that. > > > > 1) There is no watcher method to watch the changes in a progressbar. > > > > i would like to write something like that. > > > > PUBLIC SUB ProgressBar1_Change() > > Message.Info("Complete 100%") > > END > > > > but progressbar has not any Change() event. > > > > 2) So for now i use a Timer with interval 100 ms who watch > > ProgressBar.Value and show the Message. > > > > 3) Of course i can watch the variable who feeds the ProgressBar.Value > > but this is not the solution. > > > > it is the same to watch the sString variable for a tetbox and not use > > the Change event. > > example: > > TextBox1.Text = sString. > > > > what is the solution here? To watch sString or to use a change event? > > > > > > On Sat, 2011-07-09 at 21:54 -0600, Dimitris Anogiatis wrote: > >> Demosthene, > >> > >> Since the value of the progressbar cotnrol is just between 0 to 1 > >> you can probably try > >> > >> IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete" > >> > >> > >> You can probably do this within the ProgressBar1_Change() event > >> assuming that the event is going to get fired when an input changes > >> the Value property of the control. > >> > >> I hope this helps > >> > >> Dimitris > >> > >> On Sat, Jul 9, 2011 at 1:04 AM, Demosthenes Koptsis > >> wrote: > >> > >> > in that case > >> > > >> > the expression > >> > if X >=1 then message.info("all is done") > >> > > >> > who will watch this expression? > >> > > >> > i need a timer or event loop or event ProgressBar1_Change() > >> > > >> > i implement this for now with a timer > >> > but i think it would be more elegant as programming approach to watch the > >> > ProgressBar1.Value and not the variable who set this value. > >> > > >> > > >> > On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote: > >> > > ??? can't you test the value when you set the value of the progressbar ? > >> > > > >> > > progressbar1.value = X > >> > > > >> > > if X >=1 then message.info("all is done") > >> > > > >> > > 2011/7/8 Demosthenes Koptsis : > >> > > > hi, > >> > > > > >> > > > i make an example with progressbar and i saw that i was needed a > >> > > > ProgressBar_Change() event to check the status (value) of the control. > >> > > > > >> > > > So if value is 1 to show a Message.Info("Complete 100%"). > >> > > > > >> > > > Is it possible to implement this event? > >> > > > > >> > > > > >> > > > -- > >> > > > Regards, > >> > > > Demosthenes Koptsis. > >> > > > > >> > > > > >> > > > > >> > ------------------------------------------------------------------------------ > >> > > > All of the data generated in your IT infrastructure is seriously > >> > valuable. > >> > > > Why? It contains a definitive record of application performance, > >> > security > >> > > > threats, fraudulent activity, and more. Splunk takes this data and > >> > makes > >> > > > sense of it. IT sense. And common sense. > >> > > > http://p.sf.net/sfu/splunk-d2d-c2 > >> > > > _______________________________________________ > >> > > > Gambas-user mailing list > >> > > > Gambas-user at lists.sourceforge.net > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > >> > > > >> > > > >> > > > >> > > >> > -- > >> > Regards, > >> > Demosthenes Koptsis. > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > All of the data generated in your IT infrastructure is seriously valuable. > >> > Why? It contains a definitive record of application performance, security > >> > threats, fraudulent activity, and more. Splunk takes this data and makes > >> > sense of it. IT sense. And common sense. > >> > http://p.sf.net/sfu/splunk-d2d-c2 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------------------------ > >> All of the data generated in your IT infrastructure is seriously valuable. > >> Why? It contains a definitive record of application performance, security > >> threats, fraudulent activity, and more. Splunk takes this data and makes > >> sense of it. IT sense. And common sense. > >> http://p.sf.net/sfu/splunk-d2d-c2 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Regards, > > Demosthenes > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes From member at ...2579... Sun Jul 10 17:38:24 2011 From: member at ...2579... (Kari Laine via LinkedIn) Date: Sun, 10 Jul 2011 15:38:24 +0000 (UTC) Subject: [Gambas-user] =?utf-8?q?Rejoindre_mon_r=C3=A9seau_sur_LinkedIn?= Message-ID: <106343580.5070171.1310312304613.JavaMail.app@...2621...> LinkedIn ------------ Kari Laine souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Je vous invite ? faire partie de mon r?seau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Kari Laine http://www.linkedin.com/e/hggat5-gpy644wx-18/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1504075740_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP0QdPkTc3gMdj59bR95dBl4k4JpbPwTcz0RdzoUd3cLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Kari Laine http://www.linkedin.com/e/hggat5-gpy644wx-18/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1504075740_3/3dvc3gTdjsMd30RckALqnpPbOYWrSlI/svi/ ------------------------------------------ SAVEZ-VOUS que LinkedIn peut trouver une r?ponse aux questions les plus complexes?? Publiez ces questions dans la rubrique R?ponses de LinkedIn pour profiter de l'expertise des professionnels du monde entier?: http://www.linkedin.com/e/hggat5-gpy644wx-18/ask/inv-23/ -- (c) 2011, LinkedIn Corporation From gambas at ...1... Sun Jul 10 20:28:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Jul 2011 20:28:10 +0200 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: <1310290930.4420.26.camel@...2494...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> Message-ID: <201107102028.10082.gambas@...1...> > ok, maybe you are right. > > i explain my case: > In my case the purpose to use a change event for progressbar is to > inform user about the changes of its value within control and not from a > variable which changes the value of the control. > Only for this. > > For the data/view part i understand what are you saying. > But the progressbar store its state to its value property. > > The difference is that the user cannot change its value from the > keyboard but the program does it, ok. > > Also from another point of view there is a change to the property Value > regardless that there is no implementation for this as an event, so far > or an obvious purpose to use such an event. > > If the change event is used only for the input of user and how the user > changes a value, it is ok, there is no need for a change event for > progressbar. i just thought that the change event would described better > the behavior of the progressbar to its operation independently of user > actions. > If you really need that Change event, you can reimplement the ProgressBar control in your project : ----[ ProgressBar.class ]------------------------------------- ' Gambas class file Export Event Change Property Value As Float Private Sub Value_Read() As Float Return Super.Value End Private Sub Value_Write(Value As Float) Super.Value = Value Raise Change End -------------------------------------------------------------- Tell me if it works. :-) -- Beno?t Minisini From demosthenesk at ...626... Sun Jul 10 22:15:19 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 10 Jul 2011 23:15:19 +0300 Subject: [Gambas-user] ProgressBar Change Event In-Reply-To: <201107102028.10082.gambas@...1...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> Message-ID: <1310328919.16144.2.camel@...2493...> ok, it works. But what is better programming approach, a progressbar to have a change event or not? i am thinking Fabien's approach. On Sun, 2011-07-10 at 20:28 +0200, Beno?t Minisini wrote: > > ok, maybe you are right. > > > > i explain my case: > > In my case the purpose to use a change event for progressbar is to > > inform user about the changes of its value within control and not from a > > variable which changes the value of the control. > > Only for this. > > > > For the data/view part i understand what are you saying. > > But the progressbar store its state to its value property. > > > > The difference is that the user cannot change its value from the > > keyboard but the program does it, ok. > > > > Also from another point of view there is a change to the property Value > > regardless that there is no implementation for this as an event, so far > > or an obvious purpose to use such an event. > > > > If the change event is used only for the input of user and how the user > > changes a value, it is ok, there is no need for a change event for > > progressbar. i just thought that the change event would described better > > the behavior of the progressbar to its operation independently of user > > actions. > > > > If you really need that Change event, you can reimplement the ProgressBar > control in your project : > > ----[ ProgressBar.class ]------------------------------------- > > ' Gambas class file > > Export > > Event Change > > Property Value As Float > > Private Sub Value_Read() As Float > > Return Super.Value > > End > > Private Sub Value_Write(Value As Float) > > Super.Value = Value > Raise Change > > End > > -------------------------------------------------------------- > > Tell me if it works. :-) > -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Sun Jul 10 23:10:53 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 10 Jul 2011 23:10:53 +0200 Subject: [Gambas-user] Creating Sound In-Reply-To: <1310328919.16144.2.camel@...2493...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> <1310328919.16144.2.camel@...2493...> Message-ID: <4E1A155D.7010801@...20...> hi, (it's not a gambas specific question this time but i think at least related and maybe i benefit from your experiences) i know how to play sound files using gb.sdl.sound but is there a way to create sound based on, let's say, sin() values? regards, tobi From kevinfishburne at ...1887... Sun Jul 10 23:26:21 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 10 Jul 2011 17:26:21 -0400 Subject: [Gambas-user] Creating Sound In-Reply-To: <4E1A155D.7010801@...20...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> <1310328919.16144.2.camel@...2493...> <4E1A155D.7010801@...20...> Message-ID: <4E1A18FD.9010904@...1887...> On 07/10/2011 05:10 PM, tobias wrote: > hi, > > (it's not a gambas specific question this time but i think at least > related and maybe i benefit from your experiences) > i know how to play sound files using gb.sdl.sound but is there a way to > create sound based on, let's say, sin() values? That would be cool. I remember making sound effects that way using GW Basic ages ago. Maybe there's something in /dev/ that can be opened as a stream and read/written to directly? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Mon Jul 11 00:35:12 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 00:35:12 +0200 Subject: [Gambas-user] Creating Sound In-Reply-To: <4E1A18FD.9010904@...1887...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> <1310328919.16144.2.camel@...2493...> <4E1A155D.7010801@...20...> <4E1A18FD.9010904@...1887...> Message-ID: <4E1A2920.9050409@...20...> On 10.07.2011 23:26, Kevin Fishburne wrote: > On 07/10/2011 05:10 PM, tobias wrote: >> hi, >> >> (it's not a gambas specific question this time but i think at least >> related and maybe i benefit from your experiences) >> i know how to play sound files using gb.sdl.sound but is there a way to >> create sound based on, let's say, sin() values? > That would be cool. I remember making sound effects that way using GW > Basic ages ago. Maybe there's something in /dev/ that can be opened as a > stream and read/written to directly? > i tried /dev/dsp some time ago but i couldn't figure out the format... (just saw that there is a suitable result with google). but now, on my fresh kubuntu, i can't even find any of the suggested sound device files... i think it would be interesting to write some code based on this idea but does someone know of some other approches? regards, tobi From gambas at ...1... Mon Jul 11 02:11:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Jul 2011 02:11:58 +0200 Subject: [Gambas-user] gb3: DrawAlpha In-Reply-To: <4E14ECA0.9050303@...1887...> References: <4E12794F.80906@...1887...> <201107051234.19279.gambas@...1...> <4E14ECA0.9050303@...1887...> Message-ID: <201107110211.58403.gambas@...1...> > On 07/05/2011 06:34 AM, Beno?t Minisini wrote: > > By the way, I have fixed a bug in the alpha blending of PaintImage in > > revision #3926. Tell me if you notice the change. > > Laurent fixed the bug with SDL, so I was able to test PaintImage. I > didn't see a change in frame rate (still 16/17 fps) or a noticeable > change in blending. What was the bug regarding? When blending a pixel on another pixel, the alpha value of the result is the greater alpha value between the source and the destination. Not the lower. > > Also, possibly off topic, but how do I check the revision history of > gb3? I don't know anything about svn or revision tracking software. I > have some idea about how it works but would like to browse a commit log > if that's possible. I'm assuming that most commits have brief > explanatory notes? Sorry for my ignorance about that. There is a mailing-list named "gambas-devel-svn". By subscribing to it, you will receive one mail for each commit with a description of the changes. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Mon Jul 11 02:32:26 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 02:32:26 +0200 Subject: [Gambas-user] Creating Sound In-Reply-To: <4E1A2920.9050409@...20...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> <1310328919.16144.2.camel@...2493...> <4E1A155D.7010801@...20...> <4E1A18FD.9010904@...1887...> <4E1A2920.9050409@...20...> Message-ID: <4E1A449A.3000708@...20...> On 10.07.2011 23:26, Kevin Fishburne wrote: >> On 07/10/2011 05:10 PM, tobias wrote: >>> hi, >>> >>> (it's not a gambas specific question this time but i think at least >>> related and maybe i benefit from your experiences) >>> i know how to play sound files using gb.sdl.sound but is there a way to >>> create sound based on, let's say, sin() values? >> That would be cool. I remember making sound effects that way using GW >> Basic ages ago. Maybe there's something in /dev/ that can be opened as a >> stream and read/written to directly? >> wow, i quite can't figure out what my audio output device file is nor restore the /dev/dsp without causing my sound to be disabled... that's weird! From kevinfishburne at ...1887... Mon Jul 11 04:17:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 10 Jul 2011 22:17:19 -0400 Subject: [Gambas-user] Creating Sound In-Reply-To: <4E1A449A.3000708@...20...> References: <1310138615.16931.3.camel@...2493...> <1310290930.4420.26.camel@...2494...> <201107102028.10082.gambas@...1...> <1310328919.16144.2.camel@...2493...> <4E1A155D.7010801@...20...> <4E1A18FD.9010904@...1887...> <4E1A2920.9050409@...20...> <4E1A449A.3000708@...20...> Message-ID: <4E1A5D2F.5070500@...1887...> On 07/10/2011 08:32 PM, tobias wrote: > On 10.07.2011 23:26, Kevin Fishburne wrote: >>> On 07/10/2011 05:10 PM, tobias wrote: >>>> hi, >>>> >>>> (it's not a gambas specific question this time but i think at least >>>> related and maybe i benefit from your experiences) >>>> i know how to play sound files using gb.sdl.sound but is there a way to >>>> create sound based on, let's say, sin() values? >>> That would be cool. I remember making sound effects that way using GW >>> Basic ages ago. Maybe there's something in /dev/ that can be opened as a >>> stream and read/written to directly? >>> > wow, i quite can't figure out what my audio output device file is nor > restore the /dev/dsp without causing my sound to be disabled... > that's weird! I'm using Mint 11 and noticed it doesn't have a /dev/dsp, only /dev/snd which contains: drwxr-xr-x 2 root root 60 2011-07-06 01:16 by-path crw-rw----+ 1 root audio 116, 8 2011-07-06 01:16 controlC0 crw-rw----+ 1 root audio 116, 7 2011-07-06 01:16 hwC0D0 crw-rw----+ 1 root audio 116, 6 2011-07-09 21:15 pcmC0D0c crw-rw----+ 1 root audio 116, 5 2011-07-10 17:08 pcmC0D0p crw-rw----+ 1 root audio 116, 4 2011-07-09 01:09 pcmC0D1c crw-rw----+ 1 root audio 116, 3 2011-07-06 01:16 pcmC0D1p crw-rw----+ 1 root audio 116, 2 2011-07-09 01:09 pcmC0D2c crw-rw----+ 1 root audio 116, 1 2011-07-06 01:16 seq crw-rw----+ 1 root audio 116, 33 2011-07-06 01:16 timer -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Mon Jul 11 12:42:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 11 Jul 2011 13:42:08 +0300 Subject: [Gambas-user] Application_Read Message-ID: <1310380928.3307.2.camel@...2493...> i have an application who reads the data from stdin with Application_Read the implementation is ---------- Public Sub Application_Read() Line Input txtArea.Text End --------- i try to send data to the running process with echo xxx > /proc/7417/fd/0 where 7417 is the pid. But i cant get the data to textArea. How can i do that? Thanks in advanced :) -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Mon Jul 11 15:25:31 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 15:25:31 +0200 Subject: [Gambas-user] Desktop.SendKeys In-Reply-To: <1310380928.3307.2.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> Message-ID: <4E1AF9CB.2050202@...20...> hi, i have an open terminal running a program that may run for long time. i want to use Desktop.SendKeys to send a CTRL+C to the terminal. (that's just an example. i know there are some very smarter ways of achieving that ;)) if i use Desktop.SendKeys("{[CONTROL_L]C}") nothing happens but if no program runs i can see that the blinking cursor stops for a moment so my terminal seems to receive the keystrike...? what's happening here? btw, i think, the person i'm asking for wants to send CTRL+K to a gui application, so it has nothing to do with sending signals as in my example... but it is not working, too, while sending normal keys (without CTRL) works well... regards, tobi From demosthenesk at ...626... Mon Jul 11 20:39:30 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 11 Jul 2011 21:39:30 +0300 Subject: [Gambas-user] About Printer Message-ID: <1310409570.7830.7.camel@...2493...> These days i am learning Printer class and i have some questions about it. For the beginning i print a blank page and some status messages in a textarea. the code is this ----------------- Public Sub btnPrint_Click() If prtPrinter.Configure() Then Return Me.Enabled = False Inc Application.Busy prtPrinter.Print Dec Application.Busy Me.Enabled = True End Public Sub prtPrinter_Begin() prtPrinter.Count = 1 txtArea.Text &= "Set number of pages to 1\n" txtArea.Text &= "Begin printing\n" End Public Sub prtPrinter_Paginate() txtArea.Text &= "Begin paginate\n" End Public Sub prtPrinter_Draw() txtArea.Text &= "Begin Draw\n" End Public Sub prtPrinter_End() txtArea.Text &= "End printing\n" End -------------- The question is why the prtPrinter_End event is not gining the status message? In TextArea i get only Set number of pages to 1 Begin printing Begin paginate Begin Draw -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Mon Jul 11 20:47:18 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 20:47:18 +0200 Subject: [Gambas-user] How to stop an Observer? Message-ID: <4E1B4536.3080407@...20...> hi, i wonder how to stop an observer from raising events? my code demonstrative code looks like this: (gambas2) PRIVATE hObs AS Observer PUBLIC SUB ObserveSubject(hSubject AS TextBox) IF hObs THEN ReleaseSubject() ENDIF hObs = NEW Observer(hSubject) END PUBLIC SUB ReleaseSubject() ??? END i think, i'm missing something very basic here... regards, tobi From math.eber at ...221... Mon Jul 11 21:37:27 2011 From: math.eber at ...221... (Matti) Date: Mon, 11 Jul 2011 21:37:27 +0200 Subject: [Gambas-user] ComboBox_Click Problem In-Reply-To: <4E182FE1.2030202@...20...> References: <1310204462.32517.1.camel@...2493...> <4E182FE1.2030202@...20...> Message-ID: <4E1B50F7.4090500@...221...> Hi Tobias, for me, it looks like ComboBox.Text is made only to show something like "Please select something" or "All entries". As soon as you select an item, ComboBox.Text is replaced by that item. I tried the Click and the Change event, and in both cases it's gone. Benoit might correct me here. But this should be no problem: when you set ComboBox.Text, why don't you store your path in a variable and put it together afterwards with the selected item? Matti Am 09.07.2011 12:39, schrieb tobias: > hi, > > i encountered a problem - for me - in gambas3 regarding ComboBox_Click() > event. i have a directory name in ComboBox.Text and the contents of this > directory in ComboBox.List. i implemented _Click() to append the current > item's text to the directory path: > > Public Sub ComboBox1_Click() > > Dim sPath As String > > Print ComboBox1.Text > sPath = Mid$(ComboBox1.Text, 1, RInStr(ComboBox1.Text, "/")) > ComboBox1.Text = sPath&/ ComboBox1.Current.Text > > End > > this results in e.g. "bin" (if ComboBox1.Text was "/" before) as output > in terminal, so the ComboBox.Text is changed to the text of the selected > item before the event is raised. i tried Stop Event but this didn't > help. i want to preserve the previous text. the text of the current > selected item is in ComboBox1.Current.Text, too, so it's twice available > but i don't see a proper way to get the previous text. > or is this expected? i don't know if this is the same in gb2... > > regards, > tobi > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Mon Jul 11 21:54:25 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 21:54:25 +0200 Subject: [Gambas-user] ComboBox_Click Problem In-Reply-To: <4E1B50F7.4090500@...221...> References: <1310204462.32517.1.camel@...2493...> <4E182FE1.2030202@...20...> <4E1B50F7.4090500@...221...> Message-ID: <4E1B54F1.3060705@...20...> On 11.07.2011 21:37, Matti wrote: > Hi Tobias, > > for me, it looks like ComboBox.Text is made only to show something like "Please > select something" or "All entries". As soon as you select an item, ComboBox.Text > is replaced by that item. I tried the Click and the Change event, and in both > cases it's gone. Benoit might correct me here. > > But this should be no problem: when you set ComboBox.Text, why don't you store > your path in a variable and put it together afterwards with the selected item? > > Matti > > Am 09.07.2011 12:39, schrieb tobias: >> hi, >> >> i encountered a problem - for me - in gambas3 regarding ComboBox_Click() >> event. i have a directory name in ComboBox.Text and the contents of this >> directory in ComboBox.List. i implemented _Click() to append the current >> item's text to the directory path: >> >> Public Sub ComboBox1_Click() >> >> Dim sPath As String >> >> Print ComboBox1.Text >> sPath = Mid$(ComboBox1.Text, 1, RInStr(ComboBox1.Text, "/")) >> ComboBox1.Text = sPath&/ ComboBox1.Current.Text >> >> End >> >> this results in e.g. "bin" (if ComboBox1.Text was "/" before) as output >> in terminal, so the ComboBox.Text is changed to the text of the selected >> item before the event is raised. i tried Stop Event but this didn't >> help. i want to preserve the previous text. the text of the current >> selected item is in ComboBox1.Current.Text, too, so it's twice available >> but i don't see a proper way to get the previous text. >> or is this expected? i don't know if this is the same in gb2... >> >> regards, >> tobi >> of course, but i consider this as a workaround... From tobiasboe1 at ...20... Mon Jul 11 22:33:14 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 22:33:14 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <4E1B4536.3080407@...20...> References: <4E1B4536.3080407@...20...> Message-ID: <4E1B5E0A.2000502@...20...> On 11.07.2011 20:47, tobias wrote: > hi, > > i wonder how to stop an observer from raising events? my code > demonstrative code looks like this: > > (gambas2) > > PRIVATE hObs AS Observer > > PUBLIC SUB ObserveSubject(hSubject AS TextBox) > IF hObs THEN > ReleaseSubject() > ENDIF > hObs = NEW Observer(hSubject) > END > > PUBLIC SUB ReleaseSubject() > ??? > END > > i think, i'm missing something very basic here... > > regards, > tobi oh, i just noticed the note in the online doc which is not present in my offline one: The observer object is attached to the observed object, and is freed only when the observed object is freed too. seems that there is no possibility without destroying the control. is there a way to copy an entire object, so i can create a new TextBox with the same property values? From gambas at ...1... Mon Jul 11 22:39:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Jul 2011 22:39:24 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <4E1B5E0A.2000502@...20...> References: <4E1B4536.3080407@...20...> <4E1B5E0A.2000502@...20...> Message-ID: <201107112239.24651.gambas@...1...> > On 11.07.2011 20:47, tobias wrote: > > hi, > > > > i wonder how to stop an observer from raising events? my code > > demonstrative code looks like this: > > > > (gambas2) > > > > PRIVATE hObs AS Observer > > > > PUBLIC SUB ObserveSubject(hSubject AS TextBox) > > > > IF hObs THEN > > > > ReleaseSubject() > > > > ENDIF > > hObs = NEW Observer(hSubject) > > > > END > > > > PUBLIC SUB ReleaseSubject() > > > > ??? > > > > END > > > > i think, i'm missing something very basic here... > > > > regards, > > tobi > > oh, i just noticed the note in the online doc which is not present in my > offline one: > The observer object is attached to the observed object, and is freed > only when the observed object is freed too. > > seems that there is no possibility without destroying the control. is > there a way to copy an entire object, so i can create a new TextBox with > the same property values? > Why do you want to stop the observer? -- Beno?t Minisini From gambas at ...1... Mon Jul 11 22:44:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Jul 2011 22:44:49 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: <201107080933.31218.wally@...2037...> References: <201107080933.31218.wally@...2037...> Message-ID: <201107112244.49904.gambas@...1...> > Hi, > > Gambas 3, ScrollArea (painted=true) > > when i set "Painted" property to True i get the following Message: > see attachment and IDE crashes. > > Is there some ScrollArea example code available or some infos > how to use this widget ? > > wally The bug should be fixed in revision #3931. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Mon Jul 11 22:56:26 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 22:56:26 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <201107112239.24651.gambas@...1...> References: <4E1B4536.3080407@...20...> <4E1B5E0A.2000502@...20...> <201107112239.24651.gambas@...1...> Message-ID: <4E1B637A.2000509@...20...> On 11.07.2011 22:39, Beno?t Minisini wrote: >> On 11.07.2011 20:47, tobias wrote: >>> hi, >>> >>> i wonder how to stop an observer from raising events? my code >>> demonstrative code looks like this: >>> >>> (gambas2) >>> >>> PRIVATE hObs AS Observer >>> >>> PUBLIC SUB ObserveSubject(hSubject AS TextBox) >>> >>> IF hObs THEN >>> >>> ReleaseSubject() >>> >>> ENDIF >>> hObs = NEW Observer(hSubject) >>> >>> END >>> >>> PUBLIC SUB ReleaseSubject() >>> >>> ??? >>> >>> END >>> >>> i think, i'm missing something very basic here... >>> >>> regards, >>> tobi >> oh, i just noticed the note in the online doc which is not present in my >> offline one: >> The observer object is attached to the observed object, and is freed >> only when the observed object is freed too. >> >> seems that there is no possibility without destroying the control. is >> there a way to copy an entire object, so i can create a new TextBox with >> the same property values? >> > Why do you want to stop the observer? > as usual, i'm just interested ;) in my example, the raising of observer events may become unnecessary or unwelcome because they restrict a control (i wanted to try another way of limiting the input of a textbox to number only, for example). now, i'm discovering FOR EACH s IN Class.Load("TextBox").Symbols to copy the entire textbox before deleting it to get rid of the events :) regards, tobi From tobiasboe1 at ...20... Mon Jul 11 22:57:53 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 22:57:53 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <201107112239.24651.gambas@...1...> References: <4E1B4536.3080407@...20...> <4E1B5E0A.2000502@...20...> <201107112239.24651.gambas@...1...> Message-ID: <4E1B63D1.7040109@...20...> of course, i could also use a flag instead, but i love it to research in the gambas universe :) From gambas at ...1... Mon Jul 11 22:58:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Jul 2011 22:58:37 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <4E1B637A.2000509@...20...> References: <4E1B4536.3080407@...20...> <201107112239.24651.gambas@...1...> <4E1B637A.2000509@...20...> Message-ID: <201107112258.38024.gambas@...1...> > > > > Why do you want to stop the observer? > > as usual, i'm just interested ;) > in my example, the raising of observer events may become unnecessary or > unwelcome because they restrict a control (i wanted to try another way > of limiting the input of a textbox to number only, for example). > now, i'm discovering > FOR EACH s IN Class.Load("TextBox").Symbols > to copy the entire textbox before deleting it to get rid of the events :) > > regards, > tobi > An observer is a Gambas object. So if you want him to stop raising events, just use Object.Detach() on it. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Mon Jul 11 23:12:45 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 11 Jul 2011 23:12:45 +0200 Subject: [Gambas-user] How to stop an Observer? In-Reply-To: <4E1B63D1.7040109@...20...> References: <4E1B4536.3080407@...20...> <4E1B5E0A.2000502@...20...> <201107112239.24651.gambas@...1...> <4E1B63D1.7040109@...20...> Message-ID: <4E1B674D.90100@...20...> i also considered using Object.Lock() this works with the textbox but not with an observer...? From rterry at ...1946... Tue Jul 12 05:39:10 2011 From: rterry at ...1946... (richard terry) Date: Tue, 12 Jul 2011 13:39:10 +1000 Subject: [Gambas-user] gb.text deprecated question Message-ID: <201107121339.10399.rterry@...1946...> gb.Text (gb) STATIC PROPERTY READ Text AS Integer Constant that represents a case insensitive comparison. This constant is deprecated in Gambas 3.0. I've just noticed my exe bugs out on this during a replace, ?what do I replace it with?? From wally at ...2037... Tue Jul 12 07:21:33 2011 From: wally at ...2037... (wally) Date: Tue, 12 Jul 2011 07:21:33 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: References: <201107080933.31218.wally@...2037...> <201107081208.09898.wally@...2037...> Message-ID: <201107120721.33500.wally@...2037...> Problems persists in SVN 3931 see attachment wally On Friday, July 08, 2011 14:00:35 Fabien Bodard wrote: > This is a bug !!! > > 2011/7/8 wally : > > any line code is written yet. > > Just started to put scrollarea on form and set properties > > > > On Friday, July 08, 2011 11:55:37 Fabien Bodard wrote: > >> show me your code for _draw > >> > >> 2011/7/8 wally : > >> > Fabian, > >> > > >> > i thoughr ScrollArea is the same as DrawingArea + Scollbars. > >> > So it should be possible to use the draw_event. > >> > I paint my curve data in this event routine but the Painted property > >> > must be set true. > >> > What is my mistake ? > >> > > >> > wally > >> > > >> > On Friday, July 08, 2011 10:00:59 Fabien Bodard wrote: > >> >> 2011/7/8 wally : > >> >> > Hi, > >> >> > > >> >> > Gambas 3, ScrollArea (painted=true) > >> >> > > >> >> > when i set "Painted" property to True i get the following Message: > >> >> > see attachment and IDE crashes. > >> >> > > >> >> > Is there some ScrollArea example code available or some infos > >> >> > how to use this widget ? > >> >> > >> >> you have the iconview widget that use this powerfull component. > >> >> > >> >> look in the gambas sources : > >> >> > >> >> trunk/comp/src/gb.form > >> >> > >> >> (open gb.form with gambas ide) > >> >> > >> >> > >> >> the error say you are trying to use draw function when you have > >> >> selected paint base. In this case use the paint class. > >> >> > >> >> if you want to use the draw class set painted to false. (its like > >> >> the drawingarea) > >> >> > >> >> > >> >> The difference between drawingarea and scrollarea is that scroll area > >> >> have integrated scrollbar and a wheel event > >> >> > >> >> > wally > >> >> > > >> >> > ------------------------------------------------------------------- > >> >> > --- --- ----- All of the data generated in your IT infrastructure > >> >> > is seriously valuable. Why? It contains a definitive record of > >> >> > application performance, security threats, fraudulent activity, > >> >> > and more. Splunk takes this data and makes sense of it. IT sense. > >> >> > And common sense. http://p.sf.net/sfu/splunk-d2d-c2 > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > ---------------------------------------------------------------------- > >> > --- ----- All of the data generated in your IT infrastructure is > >> > seriously valuable. Why? It contains a definitive record of > >> > application performance, security threats, fraudulent activity, and > >> > more. Splunk takes this data and makes sense of it. IT sense. And > >> > common sense. http://p.sf.net/sfu/splunk-d2d-c2 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- All of the data generated in your IT infrastructure is seriously > > valuable. Why? It contains a definitive record of application > > performance, security threats, fraudulent activity, and more. Splunk > > takes this data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > 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: ScrArea_svn3931.png Type: image/png Size: 55090 bytes Desc: not available URL: From gambas.fr at ...626... Tue Jul 12 08:34:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 12 Jul 2011 08:34:18 +0200 Subject: [Gambas-user] gb.text deprecated question In-Reply-To: <201107121339.10399.rterry@...1946...> References: <201107121339.10399.rterry@...1946...> Message-ID: http://gambasdoc.org/help/doc/gb2togb3?v3 read that page :) gb.IgnoreCase 2011/7/12 richard terry : > gb.Text (gb) > STATIC PROPERTY READ Text AS Integer > Constant that represents a case insensitive comparison. > ? ? ? ? This constant is deprecated in Gambas 3.0. > > I've just noticed my exe bugs out on this during a replace, ?what do I replace > it with?? > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1946... Tue Jul 12 09:26:24 2011 From: rterry at ...1946... (richard terry) Date: Tue, 12 Jul 2011 17:26:24 +1000 Subject: [Gambas-user] gb.text deprecated question In-Reply-To: References: <201107121339.10399.rterry@...1946...> Message-ID: <201107121726.24509.rterry@...1946...> On Tuesday 12 July 2011 16:34:18 Fabien Bodard wrote: > http://gambasdoc.org/help/doc/gb2togb3?v3 > > read that page :) thanks. > > gb.IgnoreCase > > 2011/7/12 richard terry : > > gb.Text (gb) > > STATIC PROPERTY READ Text AS Integer > > Constant that represents a case insensitive comparison. > > This constant is deprecated in Gambas 3.0. > > > > I've just noticed my exe bugs out on this during a replace, ?what do I > > replace it with?? > > > > ------------------------------------------------------------------------- > >----- All of the data generated in your IT infrastructure is seriously > > valuable. Why? It contains a definitive record of application > > performance, security threats, fraudulent activity, and more. Splunk > > takes this data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Tue Jul 12 16:22:47 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 12 Jul 2011 16:22:47 +0200 Subject: [Gambas-user] Checking whether a file exists Message-ID: <4E1C58B7.60406@...20...> hi, in a project, i am searching directories recursively and opening files to search their content, too. while searching in the gambas2 sources my program crashed with "File or directory doesn't exist". so i noticed this one ? sFile ".../main/ltmain.sh" ? Exist(sFile) True ? File.Load(sFile) File or directory does not exist this is because the file is a symlink to another file that doesn't exist (maybe because i haven't compiled gambas2 from sources yet), so Exist says the file is there but when opening it, the symlink is resolved and there is an error. this may be irritating. developers, do you think it's necessary to do something here? (maybe Exist(sPath AS String, bFollowSymlinks AS Boolean) ?) regards, tobi From tobiasboe1 at ...20... Tue Jul 12 17:27:37 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 12 Jul 2011 17:27:37 +0200 Subject: [Gambas-user] Me inside Eval() in Terminal Message-ID: <4E1C67E9.5070301@...20...> hi, i played around with Eval() again and noticed that Me is NULL within Eval(). in the ide every attempt to read something that belongs to Me will give "Null Object" but if i use the program in a terminal, i get a segfault. is Me something else there? even Eval("Me") leads to segfault? does the ide prevent from getting the segfault or is there something wrong? regards, tobi From gambas at ...1... Tue Jul 12 17:40:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Jul 2011 17:40:09 +0200 Subject: [Gambas-user] ScrollArea Problem In-Reply-To: <201107120721.33500.wally@...2037...> References: <201107080933.31218.wally@...2037...> <201107120721.33500.wally@...2037...> Message-ID: <201107121740.09573.gambas@...1...> > Problems persists in SVN 3931 > see attachment > > wally > Oops. Fixed in revision #3932. Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Jul 12 17:44:50 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 12 Jul 2011 17:44:50 +0200 Subject: [Gambas-user] Checking whether a file exists In-Reply-To: <4E1C58B7.60406@...20...> References: <4E1C58B7.60406@...20...> Message-ID: 2011/7/12 tobias : > hi, > > in a project, i am searching directories recursively and opening files > to search their content, too. > while searching in the gambas2 sources my program crashed with "File or > directory doesn't exist". so i noticed this one > > ? sFile > ".../main/ltmain.sh" > ? Exist(sFile) > True > ? File.Load(sFile) > File or directory does not exist > > this is because the file is a symlink to another file that doesn't exist > (maybe because i haven't compiled gambas2 from sources yet), so Exist > says the file is there but when opening it, the symlink is resolved and > there is an error. > this may be irritating. > > developers, do you think it's necessary to do something here? (maybe > Exist(sPath AS String, bFollowSymlinks AS Boolean) ?) > > regards, > tobi I think it's a good idea... stat already do that > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Jul 12 17:52:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Jul 2011 17:52:32 +0200 Subject: [Gambas-user] Checking whether a file exists In-Reply-To: References: <4E1C58B7.60406@...20...> Message-ID: <201107121752.32642.gambas@...1...> > 2011/7/12 tobias : > > hi, > > > > in a project, i am searching directories recursively and opening files > > to search their content, too. > > while searching in the gambas2 sources my program crashed with "File or > > directory doesn't exist". so i noticed this one > > > > ? sFile > > ".../main/ltmain.sh" > > ? Exist(sFile) > > True > > ? File.Load(sFile) > > File or directory does not exist > > > > this is because the file is a symlink to another file that doesn't exist > > (maybe because i haven't compiled gambas2 from sources yet), so Exist > > says the file is there but when opening it, the symlink is resolved and > > there is an error. > > this may be irritating. > > > > developers, do you think it's necessary to do something here? (maybe > > Exist(sPath AS String, bFollowSymlinks AS Boolean) ?) > > > > regards, > > tobi > > I think it's a good idea... stat already do that > Use 'Try Stat(..., TRUE)' in Gambas 2. In Gambas 3, I will try to add the optional argument. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jul 12 23:42:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Jul 2011 23:42:50 +0200 Subject: [Gambas-user] TrayIcon is missing In-Reply-To: <1310204462.32517.1.camel@...2493...> References: <1310204462.32517.1.camel@...2493...> Message-ID: <201107122342.50335.gambas@...1...> > hi i search for TrayIcon in Special Tab but i cant find it nor in any > tab. > > In Gambas2 there was at Special tab as i see. TrayIcon is now a normal class. You can create it by code only. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jul 12 23:43:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Jul 2011 23:43:40 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1310409570.7830.7.camel@...2493...> References: <1310409570.7830.7.camel@...2493...> Message-ID: <201107122343.40392.gambas@...1...> > These days i am learning Printer class and i have some questions about > it. > > For the beginning i print a blank page and some status messages in a > textarea. > > ... > > The question is why the prtPrinter_End event is not gining the status > message? > > In TextArea i get only > > Set number of pages to 1 > Begin printing > Begin paginate > Begin Draw The End event should be raised. Even if it is not really useful. Can you send me your project? -- Beno?t Minisini From gambas at ...1... Wed Jul 13 00:17:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jul 2011 00:17:39 +0200 Subject: [Gambas-user] gb.Case In-Reply-To: <4E184CD6.4000202@...20...> References: <1310204462.32517.1.camel@...2493...> <4E182FE1.2030202@...20...> <4E184CD6.4000202@...20...> Message-ID: <201107130017.39335.gambas@...1...> > hi, > > while the doc says that there is a constant gb.Case, the interpreter > tells me that there is no symbol "Case" within gb. > gb.Text works well instead. but either the doc or the interpreter should > be corrected ;) > > regards, > tobi > Which version of Gambas and documentaion page are you talking about? -- Beno?t Minisini From rterry at ...1946... Wed Jul 13 00:35:15 2011 From: rterry at ...1946... (richard terry) Date: Wed, 13 Jul 2011 08:35:15 +1000 Subject: [Gambas-user] gb.Case In-Reply-To: <201107130017.39335.gambas@...1...> References: <1310204462.32517.1.camel@...2493...> <4E184CD6.4000202@...20...> <201107130017.39335.gambas@...1...> Message-ID: <201107130835.15903.rterry@...1946...> On Wednesday 13 July 2011 08:17:39 Beno?t Minisini wrote: > > hi, > > > > while the doc says that there is a constant gb.Case, the interpreter > > tells me that there is no symbol "Case" within gb. > > gb.Text works well instead. but either the doc or the interpreter should > > be corrected ;) > > > > regards, > > tobi > > Which version of Gambas and documentaion page are you talking about? > the IDE popup help as you type. Anway, Fabian pointed me in the direction of gb.IgnoreCAse Regards richard From gambas at ...1... Wed Jul 13 00:56:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jul 2011 00:56:23 +0200 Subject: [Gambas-user] Desktop.SendKeys In-Reply-To: <4E1AF9CB.2050202@...20...> References: <1310380928.3307.2.camel@...2493...> <4E1AF9CB.2050202@...20...> Message-ID: <201107130056.23986.gambas@...1...> > hi, > > i have an open terminal running a program that may run for long time. i > want to use Desktop.SendKeys to send a CTRL+C to the terminal. (that's > just an example. i know there are some very smarter ways of achieving > that ;)) > if i use > Desktop.SendKeys("{[CONTROL_L]C}") nothing happens but if no program > runs i can see that the blinking cursor stops for a moment so my > terminal seems to receive the keystrike...? > what's happening here? > btw, i think, the person i'm asking for wants to send CTRL+K to a gui > application, so it has nothing to do with sending signals as in my > example... but it is not working, too, while sending normal keys > (without CTRL) works well... > > regards, > tobi > X11 found funny to recently change the case of the keys. They were uppercase, now they use a mix of uppercase and lowercase. Very funny. So now try: Desktop.SendKeys("{[Control_L]c}") And tell me if it works. Otherwise, are you replying to a previous post just to create a new subject? If that is the case, then stop doing that! You are making the mailing-list unreadable by mixing unrelated threads. Regards, -- Beno?t Minisini From demosthenesk at ...626... Wed Jul 13 07:24:24 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jul 2011 08:24:24 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107122343.40392.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107122343.40392.gambas@...1...> Message-ID: <1310534664.623.0.camel@...2493...> yes here it is. :) On Tue, 2011-07-12 at 23:43 +0200, Beno?t Minisini wrote: > > These days i am learning Printer class and i have some questions about > > it. > > > > For the beginning i print a blank page and some status messages in a > > textarea. > > > > ... > > > > The question is why the prtPrinter_End event is not gining the status > > message? > > > > In TextArea i get only > > > > Set number of pages to 1 > > Begin printing > > Begin paginate > > Begin Draw > > The End event should be raised. Even if it is not really useful. > > Can you send me your project? > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project133.tar.bz2 Type: application/x-bzip-compressed-tar Size: 6934 bytes Desc: not available URL: From and.bertini at ...626... Wed Jul 13 07:48:37 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Wed, 13 Jul 2011 07:48:37 +0200 Subject: [Gambas-user] ListBox Mode Property Message-ID: <4E1D31B5.1010603@...626...> If i set the mode property to MULTIPLE, how to have a list of the only selected items? Thx -- Andrea Bertini__ From robert1juhasz at ...626... Wed Jul 13 08:00:32 2011 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Wed, 13 Jul 2011 14:00:32 +0800 Subject: [Gambas-user] Gambas for Android Message-ID: Hello, Is it / will it be possible to install applications written in Gambas on Android devices? That would be really great. Robi From gambas.fr at ...626... Wed Jul 13 08:38:20 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Jul 2011 08:38:20 +0200 Subject: [Gambas-user] Gambas for Android In-Reply-To: References: Message-ID: http://www.frandroid.com/developpement/392_on-pourra-developper-des-appli-android-dans-dautres-langages/ as said in this article, to be abble to have android application language have to be compatible with the dalvik VM 2011/7/13 Robert JUHASZ : > Hello, > Is it / will it be possible to install applications written in Gambas on > Android devices? That would be really great. > > Robi > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Wed Jul 13 08:50:48 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 13 Jul 2011 02:50:48 -0400 Subject: [Gambas-user] gb3: retrieving channel value from pixel color Message-ID: <4E1D4048.2050802@...1887...> I think this has been discussed before, but damn if I can't find it or figure it out myself. If I read a color value from an image, like this: Dim Pixel as Integer Pixel = SomeImage[0,0] I get an Integer. I'd like to know what the value is of a specific channel of the pixel/color. I see the ColorInfo class (http://gambasdoc.org/help/comp/gb.image/colorinfo?v3) which looks like it should return any specified channel from a Color/Integer, but the docs and autocomplete fail me on its usage. What's the syntax for ColorInfo, or does it even work in gb3? I have no idea how to use it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Wed Jul 13 08:51:42 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Jul 2011 08:51:42 +0200 Subject: [Gambas-user] Gambas for Android In-Reply-To: References: Message-ID: http://code.google.com/p/android-scripting/wiki/UserGuide Well if we want to do some thing in a first tim that can be by that way... and gbs maybe. From oceanosoftlapalma at ...626... Wed Jul 13 09:00:54 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 13 Jul 2011 09:00:54 +0200 Subject: [Gambas-user] ListBox Mode Property In-Reply-To: <4E1D31B5.1010603@...626...> References: <4E1D31B5.1010603@...626...> Message-ID: Andrea, As far as I know this is not possible. You can do something like: For i = 0 To ListWithMultipleRowsSelected.Rows.Count - 1 If ListWithMultipleRowsSelected.Rows[i].Selected Then 'you got it Endif Next Regards, Ricardo D?az 2011/7/13 Andrea Bertini > If i set the mode property to MULTIPLE, how to have a list of the only > selected items? Thx > > -- > > Andrea Bertini__ > > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Jul 13 09:09:39 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Jul 2011 09:09:39 +0200 Subject: [Gambas-user] gb.Case In-Reply-To: <201107130835.15903.rterry@...1946...> References: <1310204462.32517.1.camel@...2493...> <4E184CD6.4000202@...20...> <201107130017.39335.gambas@...1...> <201107130835.15903.rterry@...1946...> Message-ID: 2011/7/13 richard terry : > On Wednesday 13 July 2011 08:17:39 Beno?t Minisini wrote: >> > hi, >> > >> > while the doc says that there is a constant gb.Case, the interpreter >> > tells me that there is no symbol "Case" within gb. >> > gb.Text works well instead. but either the doc or the interpreter should >> > be corrected ;) >> > >> > regards, >> > tobi >> >> Which version of Gambas and documentaion page are you talking about? >> > the IDE popup help as you type. > > Anway, Fabian pointed me in the direction of gb.IgnoreCAse > > Regards > > richard > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > well just the result of a google gb.text removed :-) as the svn changes are pulic and forum relay mailing list messages..; all is on google -- Fabien Bodard From gambas.fr at ...626... Wed Jul 13 09:25:54 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Jul 2011 09:25:54 +0200 Subject: [Gambas-user] gb3: retrieving channel value from pixel color In-Reply-To: <4E1D4048.2050802@...1887...> References: <4E1D4048.2050802@...1887...> Message-ID: http://gambasdoc.org/help/comp/gb.image?v3 hum ok i've understand the way it work Dim redvalue as Integer redvalue = color[SomeImage[0,0]].red not easy to find that in the doc ... in fact it's the class color that return a colorinfo. http://gambasdoc.org/help/comp/gb.image/color/_get?v3 Benoit, the created, array read/write fuctions page need to be more visible... you need to find a better way for users found them ! they are blended in the text and look like all others links... 2011/7/13 Kevin Fishburne : > I think this has been discussed before, but damn if I can't find it or > figure it out myself. > > If I read a color value from an image, like this: > > Dim Pixel as Integer > Pixel = SomeImage[0,0] > > I get an Integer. I'd like to know what the value is of a specific > channel of the pixel/color. I see the ColorInfo class > (http://gambasdoc.org/help/comp/gb.image/colorinfo?v3) which looks like > it should return any specified channel from a Color/Integer, but the > docs and autocomplete fail me on its usage. What's the syntax for > ColorInfo, or does it even work in gb3? I have no idea how to use it. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Wed Jul 13 09:55:07 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 13 Jul 2011 03:55:07 -0400 Subject: [Gambas-user] gb3: retrieving channel value from pixel color In-Reply-To: References: <4E1D4048.2050802@...1887...> Message-ID: <4E1D4F5B.1020803@...1887...> On 07/13/2011 03:25 AM, Fabien Bodard wrote: > http://gambasdoc.org/help/comp/gb.image?v3 > > > hum ok i've understand the way it work > > > Dim redvalue as Integer > redvalue = color[SomeImage[0,0]].red > > > not easy to find that in the doc ... in fact it's the class color that > return a colorinfo. > > > http://gambasdoc.org/help/comp/gb.image/color/_get?v3 > > Benoit, the created, array read/write fuctions page need to be more > visible... you need to find a better way for users found them ! > > they are blended in the text and look like all others links... Thank you. I also found I could divide the Integer representing the color by 65536 to get an approximation. Don't know if the color having an alpha value would throw this off, as my case had no alpha. I had a gray-scale image and was trying to get the value of a pixel from it. I have noticed that if you do a search on the gb docs that a lot of old, sparse docs show up. Normal browsing links to pretty solid stuff, but there seems to be a lot of orphaned articles in there when searching. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From iggy.budiman.it at ...626... Wed Jul 13 11:27:08 2011 From: iggy.budiman.it at ...626... (Iggy Budiman) Date: Wed, 13 Jul 2011 16:27:08 +0700 Subject: [Gambas-user] Gambas for Android In-Reply-To: References: Message-ID: <4E1D64EC.2060708@...626...> Android doesn't use X windows, no GTK nor QT. Maybe You can compile it for text mode only, compile it for Arm, but with no graphic. I guess gambas won't do so much on Android. But in MeeGo it has a lot possibility. I can run in MeeGo 1.2 for netbooks (x86). But expectancy is high to compile it for Arms, and run it on Nokia N9 for example. salam -iggy On 07/13/2011 01:00 PM, Robert JUHASZ wrote: > Hello, > Is it / will it be possible to install applications written in Gambas on > Android devices? That would be really great. > > Robi From kevinfishburne at ...1887... Wed Jul 13 11:41:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 13 Jul 2011 05:41:54 -0400 Subject: [Gambas-user] gb3: gb.sdl: playing music versus playing a sound Message-ID: <4E1D6862.9000009@...1887...> I noticed that when playing music only one track is played at once by default. Is this a limitation of music or can channels be specified for playing music while still controlling the volume along the way (as per the "music" versus "sound" choice). Playing sounds is great, but the need exists for multiple, lengthy sounds to be played simultaneously while adjusting their volume independently. Simultaneous music calls could do this with existing methods maybe? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sourceforge-raindog2 at ...94... Wed Jul 13 17:44:41 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 13 Jul 2011 11:44:41 -0400 Subject: [Gambas-user] Gambas for Android In-Reply-To: <4E1D64EC.2060708@...626...> References: <4E1D64EC.2060708@...626...> Message-ID: <201107131144.41706.sourceforge-raindog2@...94...> On Wednesday 13 July 2011 05:27, Iggy Budiman wrote: > Android doesn't use X windows, no GTK nor QT. > Maybe You can compile it for text mode only, compile it for Arm, but > with no graphic. Someone has ported Qt to Android. I don't know how many X-specific hacks there are in Gambas, but someone sufficiently motivated (that is to say, not me) might be able to port Gambas (using NDK) as well. Google for android-lighthouse. I think such a thing would be kind of hacky and result in a lot of bad, hoggy non-native-feeling apps being written, due to the way NDK works, but it should be possible. Eclipse and Google's Android SDK together are definitely not as easy to learn as Gambas, but they do provide a GUI form designer and Java is certainly easier to deal with than, say, Objective-C. For those not up to that challenge, there's Google App Inventor. Rob From demosthenesk at ...626... Wed Jul 13 18:42:28 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jul 2011 19:42:28 +0300 Subject: [Gambas-user] Gambas for Android In-Reply-To: <201107131144.41706.sourceforge-raindog2@...94...> References: <4E1D64EC.2060708@...626...> <201107131144.41706.sourceforge-raindog2@...94...> Message-ID: <1310575348.14612.0.camel@...2493...> see here http://labs.qt.nokia.com/2011/02/28/necessitas/ On Wed, 2011-07-13 at 11:44 -0400, Rob wrote: > On Wednesday 13 July 2011 05:27, Iggy Budiman wrote: > > Android doesn't use X windows, no GTK nor QT. > > Maybe You can compile it for text mode only, compile it for Arm, but > > with no graphic. > > Someone has ported Qt to Android. I don't know how many X-specific hacks > there are in Gambas, but someone sufficiently motivated (that is to say, > not me) might be able to port Gambas (using NDK) as well. Google for > android-lighthouse. > > I think such a thing would be kind of hacky and result in a lot of bad, > hoggy non-native-feeling apps being written, due to the way NDK works, but > it should be possible. > > Eclipse and Google's Android SDK together are definitely not as easy to > learn as Gambas, but they do provide a GUI form designer and Java is > certainly easier to deal with than, say, Objective-C. For those not up to > that challenge, there's Google App Inventor. > > Rob > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Wed Jul 13 22:12:59 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 13 Jul 2011 22:12:59 +0200 Subject: [Gambas-user] Desktop.SendKeys In-Reply-To: <201107130056.23986.gambas@...1...> References: <1310380928.3307.2.camel@...2493...> <4E1AF9CB.2050202@...20...> <201107130056.23986.gambas@...1...> Message-ID: <4E1DFC4B.6050008@...20...> > X11 found funny to recently change the case of the keys. They were uppercase, > now they use a mix of uppercase and lowercase. Very funny. > > So now try: > > Desktop.SendKeys("{[Control_L]c}") it works! these are the kinds of errors that make me very tired... > Otherwise, are you replying to a previous post just to create a new subject? > If that is the case, then stop doing that! You are making the mailing-list > unreadable by mixing unrelated threads. this may be, i'm sorry. it was one of my first posts with my fresh installation and i hadn't got the mailinglist in my addresses already. it won't happen again! regards, tobi From kevinfishburne at ...1887... Wed Jul 13 23:00:34 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 13 Jul 2011 17:00:34 -0400 Subject: [Gambas-user] gb3: gb.sdl: playing music versus playing a sound In-Reply-To: <4E1D6862.9000009@...1887...> References: <4E1D6862.9000009@...1887...> Message-ID: <4E1E0772.7010403@...1887...> On 07/13/2011 05:41 AM, Kevin Fishburne wrote: > I noticed that when playing music only one track is played at once by > default. Is this a limitation of music or can channels be specified for > playing music while still controlling the volume along the way (as per > the "music" versus "sound" choice). > > Playing sounds is great, but the need exists for multiple, lengthy > sounds to be played simultaneously while adjusting their volume > independently. Simultaneous music calls could do this with existing > methods maybe? Just saw the Channel and Channels classes and it looks like that should work. http://gambasdoc.org/help/comp/gb.sdl.sound/channel?v3 http://gambasdoc.org/help/comp/gb.sdl.sound/channels?v3 -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Thu Jul 14 00:52:32 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 14 Jul 2011 00:52:32 +0200 Subject: [Gambas-user] Gambas and internal functions Message-ID: <4E1E21B0.8090403@...20...> hi, when i call a gambas function that is not in any component, e.g. Abs(), what is called internally? i'm currently studying the interpreter internals but didn't come far enough yet to figure that out by myself (i focused on the gambas api first). may it be these "subr" files? is there a central structure like GB to collect them? regards, tobi From gambas.fr at ...626... Thu Jul 14 12:25:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 14 Jul 2011 12:25:36 +0200 Subject: [Gambas-user] Gambas for Android In-Reply-To: <4E1D64EC.2060708@...626...> References: <4E1D64EC.2060708@...626...> Message-ID: 2011/7/13 Iggy Budiman : > Android doesn't use X windows, no GTK nor QT. > Maybe You can compile it for text mode only, compile it for Arm, but > with no graphic. > I guess gambas won't do so much on Android. as all the others language ... android have not any programing envirronment (maybe just the click and go one) All need to be done in the eclipse envirronment (on a pc) or via a console. gambas is a text only compiler ... the qt and gtk components are extentions > But in MeeGo it has a lot possibility. I can run in MeeGo 1.2 for > netbooks (x86). But expectancy is high to compile it for Arms, and run > it on Nokia N9 for example. > > salam > -iggy > > On 07/13/2011 01:00 PM, Robert JUHASZ wrote: >> Hello, >> Is it / will it be possible to install applications written in Gambas on >> Android devices? That would be really great. >> >> Robi > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Thu Jul 14 15:16:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Jul 2011 15:16:11 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1310534664.623.0.camel@...2493...> References: <1310409570.7830.7.camel@...2493...> <201107122343.40392.gambas@...1...> <1310534664.623.0.camel@...2493...> Message-ID: <201107141516.11967.gambas@...1...> > yes here it is. > > :) > OK, it is fixed in revision #3935. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Thu Jul 14 16:32:41 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 14 Jul 2011 16:32:41 +0200 Subject: [Gambas-user] All instances of a class Message-ID: <4E1EFE09.9040709@...20...> hi, i wonder if there is the possibility to get all the objects created from a specific class... again, just interested, no code. i didn't saw it in Class and Object classes... regards, tobi From gambas at ...1... Thu Jul 14 16:38:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Jul 2011 16:38:03 +0200 Subject: [Gambas-user] All instances of a class In-Reply-To: <4E1EFE09.9040709@...20...> References: <4E1EFE09.9040709@...20...> Message-ID: <201107141638.03746.gambas@...1...> > hi, > > i wonder if there is the possibility to get all the objects created from > a specific class... again, just interested, no code. i didn't saw it in > Class and Object classes... > > regards, > tobi > No, this isn't possible. It is not really useful, and it would take at least one pointer by object, which is a lot. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jul 14 16:43:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Jul 2011 16:43:23 +0200 Subject: [Gambas-user] Gambas and internal functions In-Reply-To: <4E1E21B0.8090403@...20...> References: <4E1E21B0.8090403@...20...> Message-ID: <201107141643.23931.gambas@...1...> > hi, > > when i call a gambas function that is not in any component, e.g. Abs(), > what is called internally? i'm currently studying the interpreter > internals but didn't come far enough yet to figure that out by myself (i > focused on the gambas api first). may it be these "subr" files? is there > a central structure like GB to collect them? > > regards, > tobi > Native functions are implemented in subr_*.c files. These functions are called directly from the main interpreter bytecode dispatch loop located in exec_loop.c Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Thu Jul 14 16:45:50 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 14 Jul 2011 16:45:50 +0200 Subject: [Gambas-user] All instances of a class In-Reply-To: <201107141638.03746.gambas@...1...> References: <4E1EFE09.9040709@...20...> <201107141638.03746.gambas@...1...> Message-ID: <4E1F011E.3020007@...20...> On 14.07.2011 16:38, Beno?t Minisini wrote: >> hi, >> >> i wonder if there is the possibility to get all the objects created from >> a specific class... again, just interested, no code. i didn't saw it in >> Class and Object classes... >> >> regards, >> tobi >> > No, this isn't possible. It is not really useful, and it would take at least > one pointer by object, which is a lot. > > Regards, > quick answer, thanks. yes, it is definitely a lot. i just saw Class and Classes, Component and Components but Object and not Objects... regards, tobi From demosthenesk at ...626... Thu Jul 14 16:47:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 14 Jul 2011 17:47:43 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107141516.11967.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107122343.40392.gambas@...1...> <1310534664.623.0.camel@...2493...> <201107141516.11967.gambas@...1...> Message-ID: <1310654863.2982.0.camel@...2493...> yes it is done! On Thu, 2011-07-14 at 15:16 +0200, Beno?t Minisini wrote: > > yes here it is. > > > > :) > > > > OK, it is fixed in revision #3935. > > Regards, > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Thu Jul 14 16:54:26 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 14 Jul 2011 17:54:26 +0300 Subject: [Gambas-user] Application_Read In-Reply-To: <1310380928.3307.2.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> Message-ID: <1310655266.2982.6.camel@...2493...> ok i change some things the implementation is this --------------------- Public Sub _new() Print "My pid is: " & Application.Handle End Static Public Sub Application_Read() Print "ok" End --------------------- 1) Problem #1, if i do echo 'test' > /proc/32264/fd/0 the program repeat the call of Application_Read() again and again. Am i doing something wrong? 2) Problem #2, How can i get the stdin data to a TextArea since dynamic symbols are not allowed to Application_Read ? Thanks! On Mon, 2011-07-11 at 13:42 +0300, Demosthenes Koptsis wrote: > i have an application who reads the data from stdin with > Application_Read > > the implementation is > > ---------- > Public Sub Application_Read() > > Line Input txtArea.Text > > End > --------- > > i try to send data to the running process with > echo xxx > /proc/7417/fd/0 > > where 7417 is the pid. > > But i cant get the data to textArea. > > How can i do that? > > Thanks in advanced :) > > -- Regards, Demosthenes Koptsis. From gambas at ...1... Thu Jul 14 20:30:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Jul 2011 20:30:53 +0200 Subject: [Gambas-user] Me inside Eval() in Terminal In-Reply-To: <4E1C67E9.5070301@...20...> References: <4E1C67E9.5070301@...20...> Message-ID: <201107142030.53374.gambas@...1...> > hi, > > i played around with Eval() again and noticed that Me is NULL within > Eval(). in the ide every attempt to read something that belongs to Me > will give "Null Object" but if i use the program in a terminal, i get a > segfault. is Me something else there? even Eval("Me") leads to segfault? > does the ide prevent from getting the segfault or is there something wrong? > > regards, > tobi > Segfault fixed in revision #3936. Now "Me" returns NULL as expected. Regards, -- Beno?t Minisini From silvani.canal at ...626... Thu Jul 14 21:53:55 2011 From: silvani.canal at ...626... (Silva) Date: Thu, 14 Jul 2011 16:53:55 -0300 Subject: [Gambas-user] Gambas 3 - Do not install on Ubuntu 10.10 (Maverick) Message-ID: I tried to install Gambas 3, but did not complete the installation. Ubuntu 10.10 (Maverick), Portuguese in Brazil. Below is the command I used. Attached is a ZIP with TXT generated by them. sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev > gambas3_Install_0.txt sudo apt-get update sudo ./configure -C > gambas3_Install_1.txt sudo ./configure -C > gambas3_Install_2.txt sudo make > gambas3_Install_3.txt sudo make install > gambas3_Install_4.txt Please help me identify and solve this problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3-2.99.1_Not_Install.zip Type: application/zip Size: 19745 bytes Desc: not available URL: From kevinfishburne at ...1887... Thu Jul 14 22:38:43 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 14 Jul 2011 16:38:43 -0400 Subject: [Gambas-user] Gambas 3 - Do not install on Ubuntu 10.10 (Maverick) In-Reply-To: References: Message-ID: <4E1F53D3.7080200@...1887...> On 07/14/2011 03:53 PM, Silva wrote: > I tried to install Gambas 3, but did not complete the installation. > Ubuntu 10.10 (Maverick), Portuguese in Brazil. > > Below is the command I used. Attached is a ZIP with TXT generated by them. > > sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev > librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev > libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev > firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev> > gambas3_Install_0.txt > > sudo apt-get update > sudo ./configure -C> gambas3_Install_1.txt > sudo ./configure -C> gambas3_Install_2.txt > sudo make> gambas3_Install_3.txt > sudo make install> gambas3_Install_4.txt > > Please help me identify and solve this problem. In 10.10 I use this: # Install build dependencies. sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev # Remove previously-created files. sudo rm -fr trunk # Download latest GAMBAS 3 revision. svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ # Compile, install and run. cd trunk ./reconf-all ./configure make sudo make install gambas3 It's the same with 11.04, except add the linux-libc-dev package. Someone correct me if I'm wrong of course. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From girardhenri at ...67... Thu Jul 14 23:01:47 2011 From: girardhenri at ...67... (Girard Henri) Date: Thu, 14 Jul 2011 23:01:47 +0200 Subject: [Gambas-user] Gambas 3 - Do not install on Ubuntu 10.10 (Maverick) In-Reply-To: <4E1F53D3.7080200@...1887...> References: <4E1F53D3.7080200@...1887...> Message-ID: From wally at ...2037... Fri Jul 15 08:25:02 2011 From: wally at ...2037... (wally) Date: Fri, 15 Jul 2011 08:25:02 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? Message-ID: <201107150825.02561.wally@...2037...> Is there any difference between DrawArea and ScrollArea when using painted=true and the draw_event ? Can i set the drawable area bigger than the controls size (ScrollArea.W, ScrollArea.H) ? If i draw e.g. a line over the extends of width and heigth the scrollbars does not appear as i expected. Any kind of example clearing the behavior of ScrollArea is highly apreciated. Thanks wally From zachsmith022 at ...626... Fri Jul 15 19:40:34 2011 From: zachsmith022 at ...626... (zachsmith022 at ...626...) Date: Fri, 15 Jul 2011 12:40:34 -0500 Subject: [Gambas-user] restarting a gambas application Message-ID: <4E207B92.8060000@...626...> Does anyone know how to automatically close and restart a running gambas program? For example, if I have a program update available, I'd like to click a button in my program ("Install/Run update") that would start an intermediate program that would stop my program, then the intermediate program would overwrite the main program with an upgraded version, then it would start the upgraded program, and then the intermediate program would quit. The problem is that by using the shell or exec commands a child process is created and the parent app. never quits. The thing I'm looking for would be somewhat similar to what happens when you run xfrun4 in Xfce. There, you press Alt+F2 to bring up a command entry box, it then starts the program you have typed in and then xfrun4 quits. There are no remaining parent/child issues. From kevinfishburne at ...1887... Fri Jul 15 22:28:22 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 15 Jul 2011 16:28:22 -0400 Subject: [Gambas-user] restarting a gambas application In-Reply-To: <4E207B92.8060000@...626...> References: <4E207B92.8060000@...626...> Message-ID: <4E20A2E6.5080702@...1887...> On 07/15/2011 01:40 PM, zachsmith022 at ...626... wrote: > > Does anyone know how to automatically close and restart a running gambas > program? > > For example, if I have a program update available, I'd like to click a > button in my program ("Install/Run update") that would start an > intermediate program that would stop my program, then the intermediate > program would overwrite the main program with an upgraded version, then > it would start the upgraded program, and then the intermediate program > would quit. The problem is that by using the shell or exec commands a > child process is created and the parent app. never quits. > > The thing I'm looking for would be somewhat similar to what happens when > you run xfrun4 in Xfce. There, you press Alt+F2 to bring up a command > entry box, it then starts the program you have typed in and then xfrun4 > quits. There are no remaining parent/child issues. If there's not a native way to do it, you could have a "loader" program start the main program. When the main program terminates, control would be returned to the loader program, which would check an update directory for an update. If it finds one it would overwrite the main program with the update, delete the update, then re-run the main program. If not it would just exit normally. I'm going to need to do this myself at some point with my application. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Fri Jul 15 22:49:27 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 15 Jul 2011 23:49:27 +0300 Subject: [Gambas-user] restarting a gambas application In-Reply-To: <4E207B92.8060000@...626...> References: <4E207B92.8060000@...626...> Message-ID: <1310762967.5783.5.camel@...2494...> I think you need to fork a process or something like that. As i know in Gambas the only thing that this happens is when you set Application.Deamon property. http://gambasdoc.org/help/comp/gb/application/daemon?v3 The application forks, and terminates the newly created parent, so that the real parent of the application does not wait for its termination. It could be usefull to fork the application without making it a deamon. Because in a deamon case you cannot do some things. The standard input, standard output and standard error output are closed. But is this what you want? On Fri, 2011-07-15 at 12:40 -0500, zachsmith022 at ...626... wrote: > Does anyone know how to automatically close and restart a running gambas > program? > > For example, if I have a program update available, I'd like to click a > button in my program ("Install/Run update") that would start an > intermediate program that would stop my program, then the intermediate > program would overwrite the main program with an upgraded version, then > it would start the upgraded program, and then the intermediate program > would quit. The problem is that by using the shell or exec commands a > child process is created and the parent app. never quits. > > The thing I'm looking for would be somewhat similar to what happens when > you run xfrun4 in Xfce. There, you press Alt+F2 to bring up a command > entry box, it then starts the program you have typed in and then xfrun4 > quits. There are no remaining parent/child issues. > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...1... Sat Jul 16 00:40:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Jul 2011 00:40:41 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components In-Reply-To: <1309971703.6333.34.camel@...40...> References: <1309971703.6333.34.camel@...40...> Message-ID: <201107160040.41930.gambas@...1...> > Salut Benoit, > > I'm porting actually a gambas2 application to gambas3. > > The application consists of several parts. These parts can be ran as > executable, or used as component (now Library) in other applications. > > Now I remarked that while gambas2, when using a component, which it self > uses a component, provides/know this underlying component. > > gambas3 doesn't, you have to declare in every applications. > > Here a small example : > > application | App_5 | App_4 | App_3 | App_2 | App_1 > ----------------|-------|-------|-------|-------|------ > component | App_4 | App_3 | App_2 | App_1 | > gambas2 | | App_2 | App_1 | | > ----------------|-------|-------|-------|-------|------ > libraries | App_4 | App_3 | App_2 | App_1 | > gambas3 | App_3 | App_2 | App_1 | | > > | App_2 | App_1 | | | > | App_1 | | | | > > ----------------|-------|-------|-------|-------|------ I confirm the design problem. As for native components, their dependencies is managed by the IDE, not at runtime. As for libraries, nothing is done This is not a good idea: if it is not really a problem for native components (they are somewhat under my control), libraries are done by users, and so you get the problem you described. I must think to find a good solution... -- Beno?t Minisini From kevinfishburne at ...1887... Sat Jul 16 08:26:49 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 16 Jul 2011 02:26:49 -0400 Subject: [Gambas-user] gb3: gb.sdl.sound: How to adjust the volume of a sound being played Message-ID: <4E212F29.1020904@...1887...> I have some code: ' General declarations. Public Ocean As Sound = New Sound(GUI.basepath & "/sound/Ocean.wav") Public SeawashHeavy As Sound = New Sound(GUI.basepath & "/sound/Seawash, Heavy.wav") Public Lake As Sound = New Sound(GUI.basepath & "/sound/Lake.wav") Public SeawashMedium As Sound = New Sound(GUI.basepath & "/sound/Seawash, Medium.wav") Public River As Sound = New Sound(GUI.basepath & "/sound/River.wav") Public SeawashLight As Sound = New Sound(GUI.basepath & "/sound/Seawash, Light.wav") Public Sub Initialize() ' Start basic environmental sound effects. ' Start water effects. Channels.Count = 32 Channels.Volume = 0 Ocean.Play(-1) End How do I adjust the volume of any of the sounds? I've read the docs which say that Channel is a class but other than that they are as spartan as a pine box. I've tried some random combinations and exposing the methods, etc., just by typing, but am getting nowhere. Thanks as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Jul 16 09:36:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 16 Jul 2011 03:36:44 -0400 Subject: [Gambas-user] gb3: gb.sdl.sound: How to adjust the volume of a sound being played In-Reply-To: <4E212F29.1020904@...1887...> References: <4E212F29.1020904@...1887...> Message-ID: <4E213F8C.7030201@...1887...> On 07/16/2011 02:26 AM, Kevin Fishburne wrote: > I have some code: > > ' General declarations. > Public Ocean As Sound = New Sound(GUI.basepath& "/sound/Ocean.wav") > Public SeawashHeavy As Sound = New Sound(GUI.basepath& "/sound/Seawash, > Heavy.wav") > Public Lake As Sound = New Sound(GUI.basepath& "/sound/Lake.wav") > Public SeawashMedium As Sound = New Sound(GUI.basepath& > "/sound/Seawash, Medium.wav") > Public River As Sound = New Sound(GUI.basepath& "/sound/River.wav") > Public SeawashLight As Sound = New Sound(GUI.basepath& "/sound/Seawash, > Light.wav") > > Public Sub Initialize() > > ' Start basic environmental sound effects. > > ' Start water effects. > Channels.Count = 32 > Channels.Volume = 0 > Ocean.Play(-1) > > End > > How do I adjust the volume of any of the sounds? I've read the docs > which say that Channel is a class but other than that they are as > spartan as a pine box. I've tried some random combinations and exposing > the methods, etc., just by typing, but am getting nowhere. Thanks as always Funny how I keep replying to myself. I can only hope someone else reads these and all their questions are answered. After a process similar to beating my head against a brick wall until blood starts seeping from my ears, I found that this code works fine (knock on wood): ' Gambas module file ' Audio module ' General declarations. Public sOcean As Sound = New Sound(GUI.basepath & "/sound/Ocean.wav") Public cOcean As Channel Public sSeawashHeavy As Sound = New Sound(GUI.basepath & "/sound/Seawash, Heavy.wav") Public cSeawashHeavy As Channel Public sLake As Sound = New Sound(GUI.basepath & "/sound/Lake.wav") Public cLake As Channel Public sSeawashMedium As Sound = New Sound(GUI.basepath & "/sound/Seawash, Medium.wav") Public cSeawashMedium As Channel Public sRiver As Sound = New Sound(GUI.basepath & "/sound/River.wav") Public cRiver As Channel Public sSeawashLight As Sound = New Sound(GUI.basepath & "/sound/Seawash, Light.wav") Public cSeawashLight As Channel Public Sub Initialize() ' Start basic environmental sound effects. ' Start water effects. cOcean = sOcean.Play(-1) cOcean.Volume = 0 cSeawashHeavy = sSeawashHeavy.Play(-1) cSeawashHeavy.Volume = 0 cLake = sLake.Play(-1) cLake.Volume = 0 cSeawashMedium = sSeawashMedium.Play(-1) cSeawashMedium.Volume = 0 cRiver = sRiver.Play(-1) cRiver.Volume = 0 cSeawashLight = sSeawashLight.Play(-1) cSeawashLight.Volume = 0 End That was done through sheer trial and error, sadly. +1 for heads on bricks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Sat Jul 16 09:53:45 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 16 Jul 2011 09:53:45 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: <201107150825.02561.wally@...2037...> References: <201107150825.02561.wally@...2037...> Message-ID: 2011/7/15 wally : > > Is there any difference between DrawArea and ScrollArea when using > painted=true and the draw_event ? > Can i set the drawable area bigger than the controls size > (ScrollArea.W, ScrollArea.H) ? > If i draw e.g. a line over the extends of width and heigth the scrollbars does > not appear as i expected. > > Any kind of example clearing the behavior of ScrollArea is highly apreciated. > Thanks wally > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > scroll area is a drawing area with scroll bars... look in the sources in trunk/comp/src/gb.form in the iconview classes the last iconview widget is written using the scrollarea -- Fabien Bodard From wally at ...2037... Sat Jul 16 10:30:38 2011 From: wally at ...2037... (wally) Date: Sat, 16 Jul 2011 10:30:38 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: References: <201107150825.02561.wally@...2037...> Message-ID: <201107161030.38177.wally@...2037...> Fabian, please jsut tell m: Is there a difference or not when using paint_event. wally On Saturday, July 16, 2011 09:53:45 Fabien Bodard wrote: > 2011/7/15 wally : > > Is there any difference between DrawArea and ScrollArea when using > > painted=true and the draw_event ? > > Can i set the drawable area bigger than the controls size > > (ScrollArea.W, ScrollArea.H) ? > > If i draw e.g. a line over the extends of width and heigth the scrollbars > > does not appear as i expected. > > > > Any kind of example clearing the behavior of ScrollArea is highly > > apreciated. Thanks wally > > > > > > ------------------------------------------------------------------------- > > ----- AppSumo Presents a FREE Video for the SourceForge Community by Eric > > Ries, the creator of the Lean Startup Methodology on "Lean Startup > > Secrets Revealed." This video shows you how to validate your ideas, > > optimize your ideas and identify your business strategy. > > http://p.sf.net/sfu/appsumosfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > scroll area is a drawing area with scroll bars... > > look in the sources in trunk/comp/src/gb.form in the iconview classes > > the last iconview widget is written using the scrollarea From gambas.fr at ...626... Sat Jul 16 12:23:26 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 16 Jul 2011 12:23:26 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: <201107161030.38177.wally@...2037...> References: <201107150825.02561.wally@...2037...> <201107161030.38177.wally@...2037...> Message-ID: 2011/7/16 wally : > Fabian, > > please jsut tell m: Is there a difference or not when using paint_event. no difference just the paint.widht/height that are the full size menus the scrollbar size. take a look at the iconview to see what event, and what property are used > > wally > > > > On Saturday, July 16, 2011 09:53:45 Fabien Bodard wrote: >> 2011/7/15 wally : >> > Is there any difference between DrawArea and ScrollArea when using >> > painted=true and the draw_event ? >> > Can i set the drawable area bigger than the controls size >> > (ScrollArea.W, ScrollArea.H) ? >> > If i draw e.g. a line over the extends of width and heigth the scrollbars >> > does not appear as i expected. >> > >> > Any kind of example clearing the behavior of ScrollArea is highly >> > apreciated. Thanks wally >> > >> > >> > ------------------------------------------------------------------------- >> > ----- AppSumo Presents a FREE Video for the SourceForge Community by Eric >> > Ries, the creator of the Lean Startup Methodology on "Lean Startup >> > Secrets Revealed." This video shows you how to validate your ideas, >> > optimize your ideas and identify your business strategy. >> > http://p.sf.net/sfu/appsumosfdev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> scroll area is a drawing area with scroll bars... >> >> look in the sources in trunk/comp/src/gb.form in the iconview classes >> >> the last iconview ?widget is written using the scrollarea > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From wally at ...2037... Sat Jul 16 12:32:28 2011 From: wally at ...2037... (wally) Date: Sat, 16 Jul 2011 12:32:28 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: References: <201107150825.02561.wally@...2037...> <201107161030.38177.wally@...2037...> Message-ID: <201107161232.28313.wally@...2037...> Merci Fabiean, "paint.widht/height" thats a hint i can work with! I'm too stupid to derive documentation ad hoc from c sourcecode. Thats the reason i always ask here for examples :) And it is the reason i use Gambas, otherwiese i would do C/C++ and Qt directly. OK, let me try these properties now. wally On Saturday, July 16, 2011 12:23:26 Fabien Bodard wrote: > 2011/7/16 wally : > > Fabian, > > > > please jsut tell m: Is there a difference or not when using paint_event. > > no difference > > just the paint.widht/height that are the full size menus the scrollbar > size. > > take a look at the iconview to see what event, and what property are used > > > wally > > > > On Saturday, July 16, 2011 09:53:45 Fabien Bodard wrote: > >> 2011/7/15 wally : > >> > Is there any difference between DrawArea and ScrollArea when using > >> > painted=true and the draw_event ? > >> > Can i set the drawable area bigger than the controls size > >> > (ScrollArea.W, ScrollArea.H) ? > >> > If i draw e.g. a line over the extends of width and heigth the > >> > scrollbars does not appear as i expected. > >> > > >> > Any kind of example clearing the behavior of ScrollArea is highly > >> > apreciated. Thanks wally > >> > > >> > > >> > ---------------------------------------------------------------------- > >> > --- ----- AppSumo Presents a FREE Video for the SourceForge Community > >> > by Eric Ries, the creator of the Lean Startup Methodology on "Lean > >> > Startup Secrets Revealed." This video shows you how to validate your > >> > ideas, optimize your ideas and identify your business strategy. > >> > http://p.sf.net/sfu/appsumosfdev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> scroll area is a drawing area with scroll bars... > >> > >> look in the sources in trunk/comp/src/gb.form in the iconview classes > >> > >> the last iconview widget is written using the scrollarea > > > > ------------------------------------------------------------------------- > > ----- AppSumo Presents a FREE Video for the SourceForge Community by Eric > > Ries, the creator of the Lean Startup Methodology on "Lean Startup > > Secrets Revealed." This video shows you how to validate your ideas, > > optimize your ideas and identify your business strategy. > > http://p.sf.net/sfu/appsumosfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Sat Jul 16 12:40:07 2011 From: wally at ...2037... (wally) Date: Sat, 16 Jul 2011 12:40:07 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: <201107161232.28313.wally@...2037...> References: <201107150825.02561.wally@...2037...> <201107161232.28313.wally@...2037...> Message-ID: <201107161240.08047.wally@...2037...> Paint.height/width is read-only and returns the size H/W of the ScrollArea control. How to make the scrollbars appear ? On Saturday, July 16, 2011 12:32:28 wally wrote: > Merci Fabiean, > > "paint.widht/height" thats a hint i can work with! > > I'm too stupid to derive documentation ad hoc from c sourcecode. > Thats the reason i always ask here for examples :) > And it is the reason i use Gambas, otherwiese i would do C/C++ and Qt > directly. > > OK, let me try these properties now. > > wally > > On Saturday, July 16, 2011 12:23:26 Fabien Bodard wrote: > > 2011/7/16 wally : > > > Fabian, > > > > > > please jsut tell m: Is there a difference or not when using > > > paint_event. > > > > no difference > > > > just the paint.widht/height that are the full size menus the scrollbar > > size. > > > > take a look at the iconview to see what event, and what property are used > > > > > wally > > > > > > On Saturday, July 16, 2011 09:53:45 Fabien Bodard wrote: > > >> 2011/7/15 wally : > > >> > Is there any difference between DrawArea and ScrollArea when using > > >> > painted=true and the draw_event ? > > >> > Can i set the drawable area bigger than the controls size > > >> > (ScrollArea.W, ScrollArea.H) ? > > >> > If i draw e.g. a line over the extends of width and heigth the > > >> > scrollbars does not appear as i expected. > > >> > > > >> > Any kind of example clearing the behavior of ScrollArea is highly > > >> > apreciated. Thanks wally > > >> > > > >> > > > >> > -------------------------------------------------------------------- > > >> > -- --- ----- AppSumo Presents a FREE Video for the SourceForge > > >> > Community by Eric Ries, the creator of the Lean Startup Methodology > > >> > on "Lean Startup Secrets Revealed." This video shows you how to > > >> > validate your ideas, optimize your ideas and identify your business > > >> > strategy. http://p.sf.net/sfu/appsumosfdev2dev > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> scroll area is a drawing area with scroll bars... > > >> > > >> look in the sources in trunk/comp/src/gb.form in the iconview classes > > >> > > >> the last iconview widget is written using the scrollarea > > > > > > ----------------------------------------------------------------------- > > > -- ----- AppSumo Presents a FREE Video for the SourceForge Community by > > > Eric Ries, the creator of the Lean Startup Methodology on "Lean > > > Startup Secrets Revealed." This video shows you how to validate your > > > ideas, optimize your ideas and identify your business strategy. > > > http://p.sf.net/sfu/appsumosfdev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets > Revealed." This video shows you how to validate your ideas, optimize your > ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jul 16 12:41:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Jul 2011 12:41:10 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: <201107150825.02561.wally@...2037...> References: <201107150825.02561.wally@...2037...> Message-ID: <201107161241.10438.gambas@...1...> > Is there any difference between DrawArea and ScrollArea when using > painted=true and the draw_event ? > Can i set the drawable area bigger than the controls size > (ScrollArea.W, ScrollArea.H) ? > If i draw e.g. a line over the extends of width and heigth the scrollbars > does not appear as i expected. > > Any kind of example clearing the behavior of ScrollArea is highly > apreciated. Thanks wally > > ScrollArea is a DrawingArea with scrollbars. But you must tell the ScrollArea the area size by calling its ResizeContents() method. Otherwise you will never see the scrollbars! -- Beno?t Minisini From gambas at ...1... Sat Jul 16 12:42:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Jul 2011 12:42:55 +0200 Subject: [Gambas-user] DrawArea vs ScrollArea ? In-Reply-To: <201107161232.28313.wally@...2037...> References: <201107150825.02561.wally@...2037...> <201107161232.28313.wally@...2037...> Message-ID: <201107161242.55738.gambas@...1...> > Merci Fabiean, > > "paint.widht/height" thats a hint i can work with! > > I'm too stupid to derive documentation ad hoc from c sourcecode. > Thats the reason i always ask here for examples :) > And it is the reason i use Gambas, otherwiese i would do C/C++ and Qt > directly. > > OK, let me try these properties now. > > wally > IconView is a control entirely written in Gambas, based on ScrollArea. This is why Fabien told you to look at its source code. But as I told you ini my previous mail, as soon as you call ResizeContents() accordingly, and take the ScrollX, ScrollY properties into account when drawing, you should not see any difference between ScrollArea and DrawingArea Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 16 19:41:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Jul 2011 19:41:13 +0200 Subject: [Gambas-user] Webview visualization error in Gambas3 In-Reply-To: <4E132D0C.4060900@...626...> References: <4E132D0C.4060900@...626...> Message-ID: <201107161941.13290.gambas@...1...> > If i create the following html file: > ... > > > Firefox works good, Webview don't visualize linecharts. It works there. Did you enable JavaScript in the WebView? -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Jul 16 22:07:53 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 16 Jul 2011 22:07:53 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components In-Reply-To: <201107160040.41930.gambas@...1...> References: <1309971703.6333.34.camel@...40...> <201107160040.41930.gambas@...1...> Message-ID: <1310846873.6330.2.camel@...40...> Am Samstag, den 16.07.2011, 00:40 +0200 schrieb Beno?t Minisini: > > Salut Benoit, > > > > I'm porting actually a gambas2 application to gambas3. > > > > The application consists of several parts. These parts can be ran as > > executable, or used as component (now Library) in other applications. > > > > Now I remarked that while gambas2, when using a component, which it self > > uses a component, provides/know this underlying component. > > > > gambas3 doesn't, you have to declare in every applications. > > > > Here a small example : > > > > application | App_5 | App_4 | App_3 | App_2 | App_1 > > ----------------|-------|-------|-------|-------|------ > > component | App_4 | App_3 | App_2 | App_1 | > > gambas2 | | App_2 | App_1 | | > > ----------------|-------|-------|-------|-------|------ > > libraries | App_4 | App_3 | App_2 | App_1 | > > gambas3 | App_3 | App_2 | App_1 | | > > > > | App_2 | App_1 | | | > > | App_1 | | | | > > > > ----------------|-------|-------|-------|-------|------ > > I confirm the design problem. > > As for native components, their dependencies is managed by the IDE, not at > runtime. As for libraries, nothing is done > > This is not a good idea: if it is not really a problem for native components > (they are somewhat under my control), libraries are done by users, and so you > get the problem you described. > > I must think to find a good solution... > Salut, may be I missed it, but how can I (we users) continue to use components in gambas3 ? -- Amicalement Charlie From gambas at ...1... Sat Jul 16 22:09:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Jul 2011 22:09:18 +0200 Subject: [Gambas-user] =?utf-8?q?a_gambas3_component_does_not_provide_unde?= =?utf-8?q?rlying=09components?= In-Reply-To: <1310846873.6330.2.camel@...40...> References: <1309971703.6333.34.camel@...40...> <201107160040.41930.gambas@...1...> <1310846873.6330.2.camel@...40...> Message-ID: <201107162209.18446.gambas@...1...> > > Salut, > > may be I missed it, but how can I (we users) continue to use components > in gambas3 ? You meant "libraries" ? -- Beno?t Minisini From nando_f at ...951... Sun Jul 17 05:07:07 2011 From: nando_f at ...951... (nando) Date: Sat, 16 Jul 2011 23:07:07 -0400 Subject: [Gambas-user] Question about classes abd class variables Message-ID: <20110717025551.M97068@...951...> Benoit, I'm look for clarity on a particular thing. Consider the following example class named 'K': STATIC PUBLIC GridX AS Integer PUBLIC c AS Integer = 0 PUBLIC SUB clear() c = 0 END The following two lines are in _init of another class or module: K.GridX = 6 <---This runs K.c = 1 <---This cause run-time error My Question is this: Anything declared class static automatically exists before any NEW instances of it are created. Which means I could consider them as Globals for any number of instances of that class including *zero* instances of it. Correct ?? -Fernando From gambas at ...1... Sun Jul 17 13:02:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jul 2011 13:02:40 +0200 Subject: [Gambas-user] Checking whether a file exists In-Reply-To: <4E1C58B7.60406@...20...> References: <4E1C58B7.60406@...20...> Message-ID: <201107171302.40992.gambas@...1...> > hi, > > in a project, i am searching directories recursively and opening files > to search their content, too. > while searching in the gambas2 sources my program crashed with "File or > directory doesn't exist". so i noticed this one > > ? sFile > ".../main/ltmain.sh" > ? Exist(sFile) > True > ? File.Load(sFile) > File or directory does not exist > > this is because the file is a symlink to another file that doesn't exist > (maybe because i haven't compiled gambas2 from sources yet), so Exist > says the file is there but when opening it, the symlink is resolved and > there is an error. > this may be irritating. > > developers, do you think it's necessary to do something here? (maybe > Exist(sPath AS String, bFollowSymlinks AS Boolean) ?) > > regards, > tobi > Hi, In revision #3940, I have added an extra optional parameter to the Exist() function, to tell it if symbolic links must be followed or not. It is backward compatible with the old syntax. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 17 13:08:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jul 2011 13:08:29 +0200 Subject: [Gambas-user] Checking whether a file exists In-Reply-To: <201107171302.40992.gambas@...1...> References: <4E1C58B7.60406@...20...> <201107171302.40992.gambas@...1...> Message-ID: <201107171308.29762.gambas@...1...> > > It is backward compatible with the old syntax. > Oops. The syntax is compatible, but not the bytecode. I will update the bytecode version, and all projects will have to be recompiled. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 17 13:12:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jul 2011 13:12:23 +0200 Subject: [Gambas-user] Checking whether a file exists In-Reply-To: <201107171308.29762.gambas@...1...> References: <4E1C58B7.60406@...20...> <201107171302.40992.gambas@...1...> <201107171308.29762.gambas@...1...> Message-ID: <201107171312.23553.gambas@...1...> > > It is backward compatible with the old syntax. > > Oops. The syntax is compatible, but not the bytecode. I will update the > bytecode version, and all projects will have to be recompiled. > > Regards, I found a trick in revision #3941, and no recompilation is needed anymore. New Exist() is really backward-compatible. -- Beno?t Minisini From gambas at ...2524... Sun Jul 17 15:54:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 13:54:46 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt Message-ID: <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 74 by flynetin... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 when i try report generate everything work perfectly but when i try print the result is a report without format and wrong space This only happens with component gb.gtk but instead gb.gtk use works well I use ubuntu natty and gambas3-rc1 From gambas at ...2524... Sun Jul 17 16:12:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 14:12:51 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 74 by benoit.m... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 I understand nothing in your bug report. Please try to polish it, and give the needed information as specified in the "new issue" description field. From gambas at ...2524... Sun Jul 17 16:29:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 14:29:54 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <1-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #2 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 i need an example project to debug ! you can send it directly to me. and can you be more precise on the problems From gambas at ...2524... Sun Jul 17 17:23:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 15:23:04 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <2-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #3 on issue 74 by flynetin... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 Sorry but my english is not good. I will try to make me understand The problem is that the report component is not working fine. if i use gb.qt4 in place of gb.gtk the printer page is not formatted correctly. By using report.preview display properly but when print, labels change their position and size and the boxes are drawn in a very small size and everything on top of each other. You can try the reportexample example if you change the component gb.gui by gb.qt4 From gambas at ...2524... Sun Jul 17 19:08:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 17:08:39 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <3-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #4 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 I can't reproduce your bug ... the reportexemple work fine in gb.gtk as in gb.qt4 can you send me an unworking exemple ? From gambas at ...2524... Sun Jul 17 19:12:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 17:12:40 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <4-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #5 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 are you on the last svn or rc release ? From gambas at ...2524... Sun Jul 17 19:16:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 17:16:41 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <5-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #6 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 try with the svn if you can please From karl.reinl at ...9... Sun Jul 17 20:04:12 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 17 Jul 2011 20:04:12 +0200 Subject: [Gambas-user] gambas3 IDE bug Message-ID: <1310925852.6335.26.camel@...40...> Salut, when I create a new form, switch to existent tab and get a gambas2 form. that form can't be shown in the IDE, and when you close the IDE or project, without deleting that form, you can't open the project anymore. -- Amicalement Charlie From gambas at ...2524... Sun Jul 17 20:05:24 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jul 2011 18:05:24 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <6-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #7 on issue 74 by flynetin... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 I work with svn version but i think the bug is in relation with ubuntu natty's gnome version. I try with other ubuntu and i see what happens. From gambas at ...1... Sun Jul 17 20:10:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jul 2011 20:10:48 +0200 Subject: [Gambas-user] gambas3 IDE bug In-Reply-To: <1310925852.6335.26.camel@...40...> References: <1310925852.6335.26.camel@...40...> Message-ID: <201107172010.48236.gambas@...1...> > Salut, > > when I create a new form, switch to existent tab and get a gambas2 form. > that form can't be shown in the IDE, and when you close the IDE or > project, without deleting that form, you can't open the project anymore. I don't really understand. Can you be more precise? -- Beno?t Minisini From Karl.Reinl at ...2345... Sun Jul 17 20:23:31 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 17 Jul 2011 20:23:31 +0200 Subject: [Gambas-user] gambas3 IDE bug In-Reply-To: <201107172010.48236.gambas@...1...> References: <1310925852.6335.26.camel@...40...> <201107172010.48236.gambas@...1...> Message-ID: <1310927011.6335.33.camel@...40...> Am Sonntag, den 17.07.2011, 20:10 +0200 schrieb Beno?t Minisini: > > Salut, > > > > when I create a new form, switch to existent tab and get a gambas2 form. > > that form can't be shown in the IDE, and when you close the IDE or > > project, without deleting that form, you can't open the project anymore. > > I don't really understand. Can you be more precise? > 1. add a new form to a project. 2. in dialog you switch to the second tab "Existent" with the file-chooser 3. choose a form file from an gambas2 project. If you close now you project, it fails with a #11 if you try to open it again. -- Amicalement Charlie From gambas at ...1... Mon Jul 18 01:44:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jul 2011 01:44:32 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1310380928.3307.2.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> Message-ID: <201107180144.32734.gambas@...1...> > i have an application who reads the data from stdin with > Application_Read > > the implementation is > > ---------- > Public Sub Application_Read() > > Line Input txtArea.Text > > End > --------- > > i try to send data to the running process with > echo xxx > /proc/7417/fd/0 > > where 7417 is the pid. > > But i cant get the data to textArea. > > How can i do that? > > Thanks in advanced :) I tested, and it worked. But beware that if you run your project from the IDE, the standard input is not necessarily the file descriptor 0 (as the IDE redirects it to intercept the data). So run your project inside a true virtual terminal. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jul 18 01:45:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jul 2011 01:45:57 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1310655266.2982.6.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> Message-ID: <201107180145.57917.gambas@...1...> > ok i change some things > > the implementation is this > > --------------------- > Public Sub _new() > > Print "My pid is: " & Application.Handle > > End > > Static Public Sub Application_Read() > > Print "ok" > > End > --------------------- > > 1) Problem #1, if i do > echo 'test' > /proc/32264/fd/0 > > the program repeat the call of Application_Read() again and again. > Am i doing something wrong? No: Application_Read is raised when there is something to read on the standard input. If you don't read it, it will be called again and again. > > 2) Problem #2, How can i get the stdin data to a TextArea since dynamic > symbols are not allowed to Application_Read ? > By using a public method in your form (named for example 'SetTextArea'). Regards, -- Beno?t Minisini From gambas at ...1... Mon Jul 18 01:48:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jul 2011 01:48:20 +0200 Subject: [Gambas-user] Comments at wiki like PHP site In-Reply-To: <1310203773.32193.1.camel@...2493...> References: <1310203773.32193.1.camel@...2493...> Message-ID: <201107180148.20243.gambas@...1...> > hi, > > is it possible to extend wiki documentation with user comments like PHP > documentation? > > see for example > http://www.php.net/manual/en/language.types.php > http://www.php.net/manual/en/language.functions.php Yes, it would be cool. I note that in the TODO list. -- Beno?t Minisini From kevinfishburne at ...1887... Mon Jul 18 09:23:11 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Jul 2011 03:23:11 -0400 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) Message-ID: <4E23DF5F.4040004@...1887...> Maybe no one's noticed this but undo/redo operations are seriously f'cked up. Maybe it's due to a limit on the number of changes kept track of, I don't know. My memory may fail me, but in the past I think it's processed changes between modules in module-agnostic order rather than by the module currently being edited. It definitely has limitations and leaves the code in a mixed state when moving back and forth through the history a certain number of times. Sorry for the vague info about it, as I'm not sure exactly what it's doing, but it definitely needs a second look. At some point the undo/redo operations just stop with the code in a random state within the history. My suggestions are to have a large default history, and to keep separate histories per module. Maybe having the changes itemized, browsable and editable would be good, something like an integrated version control system. No biggie, just some ideas for after gb3.0 is released. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Mon Jul 18 09:40:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Jul 2011 09:40:33 +0200 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) In-Reply-To: <4E23DF5F.4040004@...1887...> References: <4E23DF5F.4040004@...1887...> Message-ID: 2011/7/18 Kevin Fishburne : > Maybe no one's noticed this but undo/redo operations are seriously > f'cked up. Maybe it's due to a limit on the number of changes kept track > of, I don't know. My memory may fail me, but in the past I think it's > processed changes between modules in module-agnostic order rather than > by the module currently being edited. It definitely has limitations and > leaves the code in a mixed state when moving back and forth through the > history a certain number of times. do you use the last svn ? > Sorry for the vague info about it, as I'm not sure exactly what it's > doing, but it definitely needs a second look. At some point the > undo/redo operations just stop with the code in a random state within > the history. > > My suggestions are to have a large default history, and to keep separate > histories per module. Maybe having the changes itemized, browsable and > editable would be good, something like an integrated version control > system. No biggie, just some ideas for after gb3.0 is released. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Mon Jul 18 10:44:26 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 18 Jul 2011 11:44:26 +0300 Subject: [Gambas-user] Application_Read In-Reply-To: <201107180145.57917.gambas@...1...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> Message-ID: <1310978666.16137.12.camel@...2493...> On Mon, 2011-07-18 at 01:45 +0200, Beno?t Minisini wrote: > > ok i change some things > > > > the implementation is this > > > > --------------------- > > Public Sub _new() > > > > Print "My pid is: " & Application.Handle > > > > End > > > > Static Public Sub Application_Read() > > > > Print "ok" > > > > End > > --------------------- > > > > 1) Problem #1, if i do > > echo 'test' > /proc/32264/fd/0 > > > > the program repeat the call of Application_Read() again and again. > > Am i doing something wrong? > > No: Application_Read is raised when there is something to read on the standard > input. If you don't read it, it will be called again and again. > > > > > 2) Problem #2, How can i get the stdin data to a TextArea since dynamic > > symbols are not allowed to Application_Read ? > > > > By using a public method in your form (named for example 'SetTextArea'). > > Regards, > 1) ok, it is called again and again and prints to stdout "ok". how i put the "test" word of Application_Read method in a variable, and stop the continuous calling? In other words how do i read the value? 2) if i use PUBLIC SUB SetTextArea it is also a Dynamic Symbol and it complains. Thanks, it may be easy but here i am stucked :( -- Regards, Demosthenes Koptsis. From zachsmith022 at ...626... Mon Jul 18 14:58:14 2011 From: zachsmith022 at ...626... (zachsmith022 at ...626...) Date: Mon, 18 Jul 2011 07:58:14 -0500 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) In-Reply-To: <4E23DF5F.4040004@...1887...> References: <4E23DF5F.4040004@...1887...> Message-ID: <4E242DE6.7010402@...626...> I can confirm that I've seen the described behavior and that it started around 2 months ago. I haven't used gambas that much since that time so I can't say for sure whether it is still happening in the latest svn. On 7/18/2011 2:23 AM, Kevin Fishburne wrote: > Maybe no one's noticed this but undo/redo operations are seriously From gambas.fr at ...626... Mon Jul 18 15:05:56 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Jul 2011 15:05:56 +0200 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) In-Reply-To: <4E242DE6.7010402@...626...> References: <4E23DF5F.4040004@...1887...> <4E242DE6.7010402@...626...> Message-ID: 2011/7/18 : > > I can confirm that I've seen the described behavior and that it started > around 2 months ago. ?I haven't used gambas that much since that time so > I can't say for sure whether it is still happening in the latest svn. i say that because Benoit have done some things about that problem ... i don't remember exactly when but there is less than one month > > On 7/18/2011 2:23 AM, Kevin Fishburne wrote: >> Maybe no one's noticed this but undo/redo operations are seriously > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Mon Jul 18 23:14:33 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Jul 2011 17:14:33 -0400 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) In-Reply-To: References: <4E23DF5F.4040004@...1887...> <4E242DE6.7010402@...626...> Message-ID: <4E24A239.8040204@...1887...> On 07/18/2011 09:05 AM, Fabien Bodard wrote: > 2011/7/18: >> I can confirm that I've seen the described behavior and that it started >> around 2 months ago. I haven't used gambas that much since that time so >> I can't say for sure whether it is still happening in the latest svn. > i say that because Benoit have done some things about that problem ... > i don't remember exactly when but there is less than one month >> On 7/18/2011 2:23 AM, Kevin Fishburne wrote: >>> Maybe no one's noticed this but undo/redo operations are seriously > The revision having the problem (though it's been occurring for a while now) is 3930. I'll compile the current revision and see if it still happens. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Jul 18 23:20:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jul 2011 23:20:22 +0200 Subject: [Gambas-user] gb3: Undo/Redo (Ctrl-Z/Ctrl-Y) In-Reply-To: <4E24A239.8040204@...1887...> References: <4E23DF5F.4040004@...1887...> <4E24A239.8040204@...1887...> Message-ID: <201107182320.22292.gambas@...1...> > On 07/18/2011 09:05 AM, Fabien Bodard wrote: > > 2011/7/18: > >> I can confirm that I've seen the described behavior and that it started > >> around 2 months ago. I haven't used gambas that much since that time so > >> I can't say for sure whether it is still happening in the latest svn. > > > > i say that because Benoit have done some things about that problem ... > > i don't remember exactly when but there is less than one month > > > >> On 7/18/2011 2:23 AM, Kevin Fishburne wrote: > >>> Maybe no one's noticed this but undo/redo operations are seriously > > The revision having the problem (though it's been occurring for a while > now) is 3930. I'll compile the current revision and see if it still > happens. You should try to describe exactly what the problem is, so that I can fix it. -- Beno?t Minisini From demosthenesk at ...626... Tue Jul 19 13:08:49 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 19 Jul 2011 14:08:49 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107141516.11967.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107122343.40392.gambas@...1...> <1310534664.623.0.camel@...2493...> <201107141516.11967.gambas@...1...> Message-ID: <1311073729.21819.14.camel@...2493...> i want to print a rectangle on a page. i have this code: ---------------- ' Gambas class file Private Const PAPER_FACTOR As Float = 7.55 Public Sub btnPrint_Click() If prtPrinter.Configure() Then Return Me.Enabled = False Inc Application.Busy prtPrinter.Print Dec Application.Busy Me.Enabled = True End Public Sub prtPrinter_Draw() Dim X As Float Dim Y As Float Dim W As Float Dim H As Float Dim wFactor As Float Dim hFactor As Float txtArea.Text &= "Begin Draw\n" 'Set scale wFactor = prtPrinter.PaperWidth / Paint.Width hFactor = prtPrinter.PaperHeight / Paint.Height Paint.Scale(wFactor, hFactor) 'Set Color to red Paint.Color(Color.RGB(255, 0, 0, 0)) 'Set X,Y margin to 0,0 X = 0 Y = 0 'W points * 7.55 = W mm 'W = 100 = 100 mm = 10 cm W = 200 * PAPER_FACTOR H = 100 * PAPER_FACTOR 'Draw a rectangle Paint.Rectangle(X, Y, W, H) 'Write it on paper Paint.Stroke End ------------------ At the beginning i make a scale Paint.Scale(wFactor, hFactor) according to page http://gambasdoc.org/help/howto/print?v3 to have absolute coordinates. Problem #1 ----------- i want the rectangle to be printed at (x,y) = (0,0) so i set 'Set X,Y margin to 0,0 X = 0 Y = 0 But at the page it is printed 46 points inside and lower. If i use X = -46 Y = -46 i get the rectangle at the beginning of page, straight to border. Problem #2 ----------- i want to set width to 100 millimeters. I found that i have to multiply the number in millimeters with 7.55 so i use this as constant PAPER_FACTOR How really does this work? why this number? Problem #3 ----------- 'Set Color to red Paint.Color(Color.RGB(255, 0, 0, 0)) color does not work on printing i get black lines -- Regards, Demosthenes Koptsis. From gambas at ...1... Tue Jul 19 14:43:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 14:43:15 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1311073729.21819.14.camel@...2493...> References: <1310409570.7830.7.camel@...2493...> <201107141516.11967.gambas@...1...> <1311073729.21819.14.camel@...2493...> Message-ID: <201107191443.15351.gambas@...1...> > i want to print a rectangle on a page. > > i have this code: > > ---------------- > ' Gambas class file > > Private Const PAPER_FACTOR As Float = 7.55 > > Public Sub btnPrint_Click() > > If prtPrinter.Configure() Then Return > > Me.Enabled = False > Inc Application.Busy > prtPrinter.Print > Dec Application.Busy > Me.Enabled = True > > End > > Public Sub prtPrinter_Draw() > > Dim X As Float > Dim Y As Float > Dim W As Float > Dim H As Float > Dim wFactor As Float > Dim hFactor As Float > > txtArea.Text &= "Begin Draw\n" > > 'Set scale > wFactor = prtPrinter.PaperWidth / Paint.Width > hFactor = prtPrinter.PaperHeight / Paint.Height > Paint.Scale(wFactor, hFactor) > > 'Set Color to red > Paint.Color(Color.RGB(255, 0, 0, 0)) > > 'Set X,Y margin to 0,0 > X = 0 > Y = 0 > > 'W points * 7.55 = W mm > 'W = 100 = 100 mm = 10 cm > W = 200 * PAPER_FACTOR > H = 100 * PAPER_FACTOR > > 'Draw a rectangle > Paint.Rectangle(X, Y, W, H) > > 'Write it on paper > Paint.Stroke > > End > > ------------------ > > At the beginning i make a scale > Paint.Scale(wFactor, hFactor) > > according to page > http://gambasdoc.org/help/howto/print?v3 > > to have absolute coordinates. > > Problem #1 > ----------- > i want the rectangle to be printed at (x,y) = (0,0) > so i set > > 'Set X,Y margin to 0,0 > X = 0 > Y = 0 > > But at the page it is printed 46 points inside and lower. > If i use > X = -46 > Y = -46 > > i get the rectangle at the beginning of page, straight to border. You must set the FullPage to print on the entire page. Otherwise margins will be taken into account. > > Problem #2 > ----------- > i want to set width to 100 millimeters. I found that i have to multiply > the number in millimeters with 7.55 so i use this as constant > PAPER_FACTOR > > How really does this work? why this number? You shouldn't. Can you print the values of prtPrinter.PaperWidth, prtPrinter.PaperHeight, Paint.Width, Paint.Height, wFactor, hFactor...? > > Problem #3 > ----------- > 'Set Color to red > Paint.Color(Color.RGB(255, 0, 0, 0)) > > color does not work on printing i get black lines Paint.Color creates a brush that you must assign to the Paint.Brush property: Paint.Brush = Paint.Color(Color.RGB(255, 0, 0, 0)) Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Jul 19 14:53:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 19 Jul 2011 14:53:17 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <201107191443.15351.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107141516.11967.gambas@...1...> <1311073729.21819.14.camel@...2493...> <201107191443.15351.gambas@...1...> Message-ID: Benoit, Paint.scale work good if there is not text ..; but if there is ... then text font size is increased by the scale too the only way i've found is in the joined archive Le 19 juillet 2011 14:43, Beno?t Minisini a ?crit : >> i want to print a rectangle on a page. >> >> i have this code: >> >> ---------------- >> ' Gambas class file >> >> Private Const PAPER_FACTOR As Float = 7.55 >> >> Public Sub btnPrint_Click() >> >> ? If prtPrinter.Configure() Then Return >> >> ? Me.Enabled = False >> ? Inc Application.Busy >> ? prtPrinter.Print >> ? Dec Application.Busy >> ? Me.Enabled = True >> >> End >> >> Public Sub prtPrinter_Draw() >> >> ? Dim X As Float >> ? Dim Y As Float >> ? Dim W As Float >> ? Dim H As Float >> ? Dim wFactor As Float >> ? Dim hFactor As Float >> >> ? txtArea.Text &= "Begin Draw\n" >> >> ? 'Set scale >> ? wFactor = prtPrinter.PaperWidth / Paint.Width >> ? hFactor = prtPrinter.PaperHeight / Paint.Height >> ? Paint.Scale(wFactor, hFactor) >> >> ? 'Set Color to red >> ? Paint.Color(Color.RGB(255, 0, 0, 0)) >> >> ? 'Set X,Y margin to 0,0 >> ? X = 0 >> ? Y = 0 >> >> ? 'W points * 7.55 = W mm >> ? 'W = 100 = 100 mm = 10 cm >> ? W = 200 * PAPER_FACTOR >> ? H = 100 * PAPER_FACTOR >> >> ? 'Draw a rectangle >> ? Paint.Rectangle(X, Y, W, H) >> >> ? 'Write it on paper >> ? Paint.Stroke >> >> End >> >> ------------------ >> >> At the beginning i make a scale >> Paint.Scale(wFactor, hFactor) >> >> according to page >> http://gambasdoc.org/help/howto/print?v3 >> >> to have absolute coordinates. >> >> Problem #1 >> ----------- >> i want the rectangle to be printed at (x,y) = (0,0) >> so i set >> >> ? 'Set X,Y margin to 0,0 >> ? X = 0 >> ? Y = 0 >> >> But at the page it is printed 46 points inside and lower. >> If i use >> ? X = -46 >> ? Y = -46 >> >> i get the rectangle at the beginning of page, straight to border. > > You must set the FullPage to print on the entire page. Otherwise margins will > be taken into account. > >> >> Problem #2 >> ----------- >> i want to set width to 100 millimeters. I found that i have to multiply >> the number in millimeters with 7.55 so i use this as constant >> PAPER_FACTOR >> >> How really does this work? why this number? > > You shouldn't. Can you print the values of prtPrinter.PaperWidth, > prtPrinter.PaperHeight, Paint.Width, Paint.Height, wFactor, hFactor...? > >> >> Problem #3 >> ----------- >> ? 'Set Color to red >> ? Paint.Color(Color.RGB(255, 0, 0, 0)) >> >> color does not work on printing i get black lines > > Paint.Color creates a brush that you must assign to the Paint.Brush property: > > ? ? ? ?Paint.Brush = Paint.Color(Color.RGB(255, 0, 0, 0)) > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: anotherprintingdemo-0.0.1.tar.gz Type: application/x-gzip Size: 9810 bytes Desc: not available URL: From demosthenesk at ...626... Tue Jul 19 15:02:30 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 19 Jul 2011 16:02:30 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107191443.15351.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107141516.11967.gambas@...1...> <1311073729.21819.14.camel@...2493...> <201107191443.15351.gambas@...1...> Message-ID: <1311080550.21819.40.camel@...2493...> On Tue, 2011-07-19 at 14:43 +0200, Beno?t Minisini wrote: > > i want to print a rectangle on a page. > > > > i have this code: > > > > ---------------- > > ' Gambas class file > > > > Private Const PAPER_FACTOR As Float = 7.55 > > > > Public Sub btnPrint_Click() > > > > If prtPrinter.Configure() Then Return > > > > Me.Enabled = False > > Inc Application.Busy > > prtPrinter.Print > > Dec Application.Busy > > Me.Enabled = True > > > > End > > > > Public Sub prtPrinter_Draw() > > > > Dim X As Float > > Dim Y As Float > > Dim W As Float > > Dim H As Float > > Dim wFactor As Float > > Dim hFactor As Float > > > > txtArea.Text &= "Begin Draw\n" > > > > 'Set scale > > wFactor = prtPrinter.PaperWidth / Paint.Width > > hFactor = prtPrinter.PaperHeight / Paint.Height > > Paint.Scale(wFactor, hFactor) > > > > 'Set Color to red > > Paint.Color(Color.RGB(255, 0, 0, 0)) > > > > 'Set X,Y margin to 0,0 > > X = 0 > > Y = 0 > > > > 'W points * 7.55 = W mm > > 'W = 100 = 100 mm = 10 cm > > W = 200 * PAPER_FACTOR > > H = 100 * PAPER_FACTOR > > > > 'Draw a rectangle > > Paint.Rectangle(X, Y, W, H) > > > > 'Write it on paper > > Paint.Stroke > > > > End > > > > ------------------ > > > > At the beginning i make a scale > > Paint.Scale(wFactor, hFactor) > > > > according to page > > http://gambasdoc.org/help/howto/print?v3 > > > > to have absolute coordinates. > > > > Problem #1 > > ----------- > > i want the rectangle to be printed at (x,y) = (0,0) > > so i set > > > > 'Set X,Y margin to 0,0 > > X = 0 > > Y = 0 > > > > But at the page it is printed 46 points inside and lower. > > If i use > > X = -46 > > Y = -46 > > Is it possible to add properties such LeftMargin, RightMargin, TopMargin, BottomMargin? > > i get the rectangle at the beginning of page, straight to border. > > You must set the FullPage to print on the entire page. Otherwise margins will > be taken into account. ok! > > > > > Problem #2 > > ----------- > > i want to set width to 100 millimeters. I found that i have to multiply > > the number in millimeters with 7.55 so i use this as constant > > PAPER_FACTOR > > > > How really does this work? why this number? > > You shouldn't. Can you print the values of prtPrinter.PaperWidth, > prtPrinter.PaperHeight, Paint.Width, Paint.Height, wFactor, hFactor...? > Print prtPrinter.PaperWidth Print prtPrinter.PaperHeight Print Paint.Width Print Paint.Height Print wFactor Print hFactor 210 297 595.275590551181 841.889763779528 0.352777777777778 0.352777777777778 > > > > Problem #3 > > ----------- > > 'Set Color to red > > Paint.Color(Color.RGB(255, 0, 0, 0)) > > > > color does not work on printing i get black lines > > Paint.Color creates a brush that you must assign to the Paint.Brush property: > > Paint.Brush = Paint.Color(Color.RGB(255, 0, 0, 0)) > > Regards, > ok! -- Regards, Demosthenes Koptsis. From gambas at ...1... Tue Jul 19 15:13:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 15:13:17 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1311080550.21819.40.camel@...2493...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <1311080550.21819.40.camel@...2493...> Message-ID: <201107191513.17546.gambas@...1...> > > > > > > 'Set scale > > > wFactor = prtPrinter.PaperWidth / Paint.Width > > > hFactor = prtPrinter.PaperHeight / Paint.Height > > > Paint.Scale(wFactor, hFactor) > > > I'm stupid, the scale factors must be inverted! wFactor = Paint.Width / prtPrinter.PaperWidth hFactor = Paint.Height / prtPrinter.PaperHeight Paint.Scale(wFactor, hFactor) And prtPrinter.FullPage must be set to TRUE before calling prtPrinter.Print. Otherwise, Paint.Width and Paint.Height will take the margins into account. -- Beno?t Minisini From gambas at ...1... Tue Jul 19 15:14:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 15:14:47 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1311080550.21819.40.camel@...2493...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <1311080550.21819.40.camel@...2493...> Message-ID: <201107191514.47798.gambas@...1...> > > Is it possible to add properties such LeftMargin, RightMargin, > TopMargin, BottomMargin? > I'm afraid not. But you should not use them, because they may be wrong, and are often not the same according to the border. What you should do is printing with FullPage set to TRUE, and let the user define its own margins relatively to the paper border, so that he can get exactly what he wants. Regards, -- Beno?t Minisini From demosthenesk at ...626... Tue Jul 19 15:26:19 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 19 Jul 2011 16:26:19 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107191513.17546.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <1311080550.21819.40.camel@...2493...> <201107191513.17546.gambas@...1...> Message-ID: <1311081979.3480.1.camel@...2494...> On Tue, 2011-07-19 at 15:13 +0200, Beno?t Minisini wrote: > > > > > > > > 'Set scale > > > > wFactor = prtPrinter.PaperWidth / Paint.Width > > > > hFactor = prtPrinter.PaperHeight / Paint.Height > > > > Paint.Scale(wFactor, hFactor) > > > > > Ok, i took this example from this page http://www.gambasdoc.org/help/howto/print?v3 i think there is also inverted the scale factors. > I'm stupid, the scale factors must be inverted! > > wFactor = Paint.Width / prtPrinter.PaperWidth > hFactor = Paint.Height / prtPrinter.PaperHeight > Paint.Scale(wFactor, hFactor) > > And prtPrinter.FullPage must be set to TRUE before calling prtPrinter.Print. > Otherwise, Paint.Width and Paint.Height will take the margins into account. > -- Regards, Demosthenes From mohareve at ...626... Tue Jul 19 15:33:05 2011 From: mohareve at ...626... (M. Cs.) Date: Tue, 19 Jul 2011 15:33:05 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1311081979.3480.1.camel@...2494...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <1311080550.21819.40.camel@...2493...> <201107191513.17546.gambas@...1...> <1311081979.3480.1.camel@...2494...> Message-ID: Please don't forget to publish your working solution. We've spent 3 days with Fabian in private investigations with the printing and at the and I have a nearly working solution for the printing. The emphasis is on the word NEARLY. There are still problems with some pixel constraints. Printing is everything but easy in gambas. This is the first time for me to hear about prtPrinter.FullPage option, so please, PLEASE, give us tested and explained examples. 2011/7/19, Demosthenes Koptsis : > On Tue, 2011-07-19 at 15:13 +0200, Beno?t Minisini wrote: >> > > > >> > > > 'Set scale >> > > > wFactor = prtPrinter.PaperWidth / Paint.Width >> > > > hFactor = prtPrinter.PaperHeight / Paint.Height >> > > > Paint.Scale(wFactor, hFactor) >> > > > >> > > Ok, i took this example from this page > http://www.gambasdoc.org/help/howto/print?v3 > > i think there is also inverted the scale factors. > > >> I'm stupid, the scale factors must be inverted! >> >> wFactor = Paint.Width / prtPrinter.PaperWidth >> hFactor = Paint.Height / prtPrinter.PaperHeight >> Paint.Scale(wFactor, hFactor) >> >> And prtPrinter.FullPage must be set to TRUE before calling >> prtPrinter.Print. >> Otherwise, Paint.Width and Paint.Height will take the margins into >> account. >> > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 19 15:38:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 15:38:47 +0200 Subject: [Gambas-user] About Printer In-Reply-To: References: <1310409570.7830.7.camel@...2493...> <1311081979.3480.1.camel@...2494...> Message-ID: <201107191538.47752.gambas@...1...> > Please don't forget to publish your working solution. We've spent 3 > days with Fabian in private investigations with the printing and at > the and I have a nearly working solution for the printing. The > emphasis is on the word NEARLY. There are still problems with some > pixel constraints. > Printing is everything but easy in gambas. This is the first time for > me to hear about > prtPrinter.FullPage option, so please, PLEASE, give us tested and > explained examples. > This is work in progress. I have just updated the "How to print" page on the wiki, and I will continue as soon as I receive remarks. The Gambas printing model is exactly the same as the Qt or GTK+ printing model. So reading documentation about them may help too! Regards, -- Beno?t Minisini From gambas at ...1... Tue Jul 19 15:40:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 15:40:26 +0200 Subject: [Gambas-user] About Printer In-Reply-To: References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> Message-ID: <201107191540.26424.gambas@...1...> > Benoit, > > Paint.scale work good if there is not text ..; but if there is ... > then text font size is increased by the scale too > This is normal. This it the goal of that matrix: everything is scaled. I added a remark about that on the "How to print" wiki page. And your SC() function is incorrect, as it assumes that Paint.Width and Paint.Height use Point units. Which is the case in Qt apparently, but you must not make such assumptions. Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Jul 19 15:52:13 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 19 Jul 2011 15:52:13 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <201107191540.26424.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <201107191540.26424.gambas@...1...> Message-ID: Le 19 juillet 2011 15:40, Beno?t Minisini a ?crit : >> Benoit, >> >> Paint.scale work good if there is not text ..; but if there is ... >> then text font size is increased by the scale too >> > > This is normal. This it the goal of that matrix: everything is scaled. I added > a remark about that on the "How to print" wiki page. > > And your SC() function is incorrect, as it assumes that Paint.Width and > Paint.Height use Point units. Which is the case in Qt apparently, but you must > not make such assumptions. well i've just say i want to talk in millimeter ... nothing more. I have two property ... a value in point (yes paint.height MUST to be always in point) and a resolution. i know how many point i've in one inch ... i know how many millimerters in one inch (25.4) so i've done a small function that convert mm in nbr points for the current painting device to match the value in mm. well it's not perfect ... but is there another way ? (it's the way used internally by gb.report) Then M.Cs say : what about printer natural margins ? How to know them ? Is there a way to retrive them ? For exemple he have a paper pattern (caneva) he need to place exactly text on it ... on different printers.. but the natural printers margins are not taked into account . For reports or others, we need to be sure to start from O,O to pagetolalW, pagetotalH without any margins. But we need to know margins to alert the user when he draw sometning > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Jul 19 16:10:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 16:10:26 +0200 Subject: [Gambas-user] About Printer In-Reply-To: References: <1310409570.7830.7.camel@...2493...> <201107191540.26424.gambas@...1...> Message-ID: <201107191610.26910.gambas@...1...> > Le 19 juillet 2011 15:40, Beno?t Minisini > > a ?crit : > >> Benoit, > >> > >> Paint.scale work good if there is not text ..; but if there is ... > >> then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I > > added a remark about that on the "How to print" wiki page. > > > > And your SC() function is incorrect, as it assumes that Paint.Width and > > Paint.Height use Point units. Which is the case in Qt apparently, but you > > must not make such assumptions. > > well i've just say i want to talk in millimeter ... nothing more. > > I have two property ... a value in point (yes paint.height MUST to be > always in point) and a resolution. > > i know how many point i've in one inch ... i know how many > millimerters in one inch (25.4) so i've done a small function that > convert > mm in nbr points for the current painting device to match the value in mm. > > well it's not perfect ... but is there another way ? (it's the way > used internally by gb.report) > Don't suppose that Paint.Width or Paint.Height are points. But you can be sure that the number of units of Paint.Width equals Printer.PaperWidth in millimeters (provided that FullPage is set of course). > > Then M.Cs say : what about printer natural margins ? How to know them > ? Is there a way to retrive them ? Logically yes, but if I didn't do it, I would say there is a problem. Anyway, I have designed and printed a lot of report of hundreds of pages on many many different printers in my previous job. Trust me, you should not take these margins into account, and always use the full page to print. > > For exemple he have a paper pattern (caneva) he need to place exactly > text on it ... on different printers.. but the natural printers > margins are not taked into account . > > For reports or others, we need to be sure to start from O,O to > pagetolalW, pagetotalH without any margins. But we need to know > margins to alert the user when he draw sometning This is up to the printer driver normally. Users know there is a non-printable margin. If they don't, they will learn quickly at the first print. By not using what the printer driver may report about its margins, the user have to define its own margin, and so its printing will be the same whatever the printer is. And think about generating a PDF and then sending it to the printer. When are the printer margins taken into account? Do you have a margin inside the PDF, and then another margin when printing? So, don't use printer margins. Use user-defined margins. Of course, if I find a way to get these printer margins accurately, I will add the needed properties to the Printer class. But as I said loudly, this is not a good idea. I'm even thinking about removing the FullPage property and set it to TRUE by default! -- Beno?t Minisini From gambas at ...1... Tue Jul 19 16:13:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 16:13:58 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <201107191610.26910.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107191610.26910.gambas@...1...> Message-ID: <201107191613.58865.gambas@...1...> Sorry for the engligh... > > Don't suppose that Paint.Width or Paint.Height are points. But you can be > sure that the number of units of Paint.Width equals Printer.PaperWidth in > millimeters (provided that FullPage is set of course). > > > Then M.Cs say : what about printer natural margins ? How to know them > > ? Is there a way to retrive them ? > > Logically yes, but if I didn't do it, I would say there is a problem. > > Anyway, I have designed and printed a lot of reportS of hundreds of pages on > many many different printers in my previous job. Trust me, you should not > take these margins into account, and always use the full page to print. > > > For exemple he have a paper pattern (caneva) he need to place exactly > > text on it ... on different printers.. but the natural printers > > margins are not taked into account . > > > > For reports or others, we need to be sure to start from O,O to > > pagetolalW, pagetotalH without any margins. But we need to know > > margins to alert the user when he draw sometning > > This is up to the printer driver normally. > > Users know there is a non-printable margin. If they don't, they will learn > quickly at the first print. By not using what the printer driver may report > about its margins, the user have to define its own ONES, and so its > printing will be the same whatever the printer is. WHICH IS A VERY IMPORTANT > THING! > > And think about generating a PDF and then sending it to the printer. When > are the printer margins taken into account? Do you have a margin inside > the PDF, and then ONE MORE margin when printing? > > So, don't use printer margins. Use user-defined margins. > > Of course, if I find a way to get these printer margins accurately, I will > add the needed properties to the Printer class. > > But as I said loudly, this is not a good idea. I'm even thinking about > removing the FullPage property and set it to TRUE by default! -- Beno?t Minisini From demosthenesk at ...626... Tue Jul 19 16:45:56 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 19 Jul 2011 17:45:56 +0300 Subject: [Gambas-user] About Printer In-Reply-To: <201107191540.26424.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107191443.15351.gambas@...1...> <201107191540.26424.gambas@...1...> Message-ID: <1311086756.4344.9.camel@...2494...> On Tue, 2011-07-19 at 15:40 +0200, Beno?t Minisini wrote: > > Benoit, > > > > Paint.scale work good if there is not text ..; but if there is ... > > then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I added > a remark about that on the "How to print" wiki page. > Regards, > At "How to print" page says: Consequently, if a 10 points font is a good size for drawing text on the screen, it may be too big for the paper: as the printer resolution is far greater than the screen resolution, you usually print things smaller. We know that Desktop.Resolution uses 12 points Font, for example Also we know Printer.Resolution, so X points Font should be on printer. I made an example --------- ' Gambas class file Public Sub Button1_Click() If Not Printer1.Configure() Then Printer1.Count = 1 Printer1.FullPage = True Printer1.Print Endif End Public Sub Printer1_Draw() Dim X As Float Dim Y As Float Dim W As Float Dim H As Float Dim hFactor As Float Dim wFactor As Float hFactor = Paint.Height / Printer1.PaperHeight wFactor = Paint.Width / Printer1.PaperWidth Paint.Scale(wFactor, hFactor) 'Set brush Paint.Brush = Paint.Color(Color.RGB(255, 0, 0, 0)) Paint.LineWidth = 0.45 'Set origin 0,0 X = 0 Y = 0 'Set width, height of printing area W = Printer1.PaperWidth - Paint.LineWidth H = Printer1.PaperHeight - Paint.LineWidth 'Draw printing area with red rectangle Paint.Rectangle(X, Y, W, H) Paint.Stroke 'Draw font Paint.MoveTo(10, 10 + Paint.TextExtents("toto").Height) Paint.Font.Name = "Times New Roman" Paint.Font.Size = 12 * (Desktop.Resolution / Printer1.Resolution) Paint.Text("toto") Paint.Fill End ------------- You know allreay the code but check out the line Paint.Font.Size = 12 * (Desktop.Resolution / Printer1.Resolution) i think this line prints a good 12 points font on a pdf as i see. Compare the result with an OpenOffice pdf. It has good success. i attach the project. -- Regards, Demosthenes -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintFonts.tar.bz2 Type: application/x-bzip-compressed-tar Size: 19049 bytes Desc: not available URL: From gambas at ...1... Tue Jul 19 16:48:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jul 2011 16:48:05 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <1311086756.4344.9.camel@...2494...> References: <1310409570.7830.7.camel@...2493...> <201107191540.26424.gambas@...1...> <1311086756.4344.9.camel@...2494...> Message-ID: <201107191648.05130.gambas@...1...> > On Tue, 2011-07-19 at 15:40 +0200, Beno?t Minisini wrote: > > > Benoit, > > > > > > Paint.scale work good if there is not text ..; but if there is ... > > > then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I > > added a remark about that on the "How to print" wiki page. > > > > Regards, > > At "How to print" page says: > > Consequently, if a 10 points font is a good size for drawing text on the > screen, it may be too big for the paper: as the printer resolution is > far greater than the screen resolution, you usually print things > smaller. > > We know that Desktop.Resolution uses 12 points Font, for example > Also we know Printer.Resolution, so X points Font should be on printer. > > I made an example > --------- > ' Gambas class file > > Public Sub Button1_Click() > > If Not Printer1.Configure() Then > Printer1.Count = 1 > Printer1.FullPage = True > Printer1.Print > Endif > > End > > Public Sub Printer1_Draw() > > Dim X As Float > Dim Y As Float > Dim W As Float > Dim H As Float > Dim hFactor As Float > Dim wFactor As Float > > hFactor = Paint.Height / Printer1.PaperHeight > wFactor = Paint.Width / Printer1.PaperWidth > > Paint.Scale(wFactor, hFactor) > > 'Set brush > Paint.Brush = Paint.Color(Color.RGB(255, 0, 0, 0)) > Paint.LineWidth = 0.45 > > 'Set origin 0,0 > X = 0 > Y = 0 > > 'Set width, height of printing area > W = Printer1.PaperWidth - Paint.LineWidth > H = Printer1.PaperHeight - Paint.LineWidth > > 'Draw printing area with red rectangle > Paint.Rectangle(X, Y, W, H) > Paint.Stroke > > 'Draw font > Paint.MoveTo(10, 10 + Paint.TextExtents("toto").Height) > Paint.Font.Name = "Times New Roman" > Paint.Font.Size = 12 * (Desktop.Resolution / Printer1.Resolution) > Paint.Text("toto") > Paint.Fill > > End > ------------- > > You know allreay the code but check out the line > Paint.Font.Size = 12 * (Desktop.Resolution / Printer1.Resolution) > > i think this line prints a good 12 points font on a pdf as i see. > Compare the result with an OpenOffice pdf. It has good success. > > i attach the project. Note that Paint.Font.Size is an absolute value in typographic points, *BUT* it is scaled by the Paint matrix (i.e. Paint.Scale). -- Beno?t Minisini From gambas.fr at ...626... Tue Jul 19 18:11:46 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 19 Jul 2011 18:11:46 +0200 Subject: [Gambas-user] About Printer In-Reply-To: <201107191610.26910.gambas@...1...> References: <1310409570.7830.7.camel@...2493...> <201107191540.26424.gambas@...1...> <201107191610.26910.gambas@...1...> Message-ID: Le 19 juillet 2011 16:10, Beno?t Minisini a ?crit : >> Le 19 juillet 2011 15:40, Beno?t Minisini >> >> a ?crit : >> >> Benoit, >> >> >> >> Paint.scale work good if there is not text ..; but if there is ... >> >> then text font size is increased by the scale too >> > >> > This is normal. This it the goal of that matrix: everything is scaled. I >> > added a remark about that on the "How to print" wiki page. >> > >> > And your SC() function is incorrect, as it assumes that Paint.Width and >> > Paint.Height use Point units. Which is the case in Qt apparently, but you >> > must not make such assumptions. >> >> well i've just say i want to talk in millimeter ... nothing more. >> >> I have two property ... a value in point (yes paint.height MUST to be >> always in point) and a resolution. >> >> i know how many point i've in one inch ... i know how many >> millimerters in one inch (25.4) so i've done a small function that >> convert >> mm in nbr points for the current painting device to match the value in mm. >> >> well it's not perfect ... but is there another way ? (it's the way >> used internally by gb.report) >> > > Don't suppose that Paint.Width or Paint.Height are points. But you can be sure > that the number of units of Paint.Width equals Printer.PaperWidth in > millimeters (provided that FullPage is set of course). > >> >> Then M.Cs say : what about printer natural margins ? How to know them >> ? Is there a way to retrive them ? > > Logically yes, but if I didn't do it, I would say there is a problem. > > Anyway, I have designed and printed a lot of report of hundreds of pages on > many many different printers in my previous job. Trust me, you should not take > these margins into account, and always use the full page to print. > >> >> For exemple he have a paper pattern (caneva) he need to place exactly >> text on it ... on different printers.. but the natural printers >> margins are not taked into account . >> >> For reports or others, we need to be sure to start from O,O to >> pagetolalW, pagetotalH without any margins. But we need to know >> margins to alert the user when he draw sometning > > This is up to the printer driver normally. > > Users know there is a non-printable margin. If they don't, they will learn > quickly at the first print. By not using what the printer driver may report > about its margins, the user have to define its own margin, and so its printing > will be the same whatever the printer is. > > And think about generating a PDF and then sending it to the printer. When are > the printer margins taken into account? Do you have a margin inside the PDF, > and then another margin when printing? > > So, don't use printer margins. Use user-defined margins. > > Of course, if I find a way to get these printer margins accurately, I will add > the needed properties to the Printer class. > > But as I said loudly, this is not a good idea. I'm even thinking about > removing the FullPage property and set it to TRUE by default! Do It !!!! And if you found a way to get printer margins ... just add read only properties ... we just need to know the printer minimal capabilities to set up users magins accurately > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Wed Jul 20 04:19:23 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 19 Jul 2011 22:19:23 -0400 Subject: [Gambas-user] gb3: "Make code pretty" Message-ID: <4E263B2B.6090307@...1887...> This is a great feature, but as a formatting Nazi I think a couple of things should be added to the "to-do" list once everything important has been taken care of. ;) If you select a range of code and right-click it to choose "Make code pretty" it should only modify the selected code, not the entire module (unless nothing is selected, of course). Secondly, two spaces shouldn't be added after two consecutive CR/LF's. Empty lines should remain empty lines, as this is often useful for visually separating sections of larger procedures. Empty lines shouldn't be formatted, automatically or otherwise (unless perhaps they are consecutive empty lines which would be reduced to one?). The reason I even discovered this feature is that I moved a block of code that needed to be indented two additional times and wanted to do it automatically instead of manually using the arrow and tab keys a million times. Is there a feature to simply indent (or move to the left) a block of code? That would be super useful for minor formatting adjustments (Indent right, Indent left) and copy/paste operations. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Wed Jul 20 04:22:45 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 19 Jul 2011 22:22:45 -0400 Subject: [Gambas-user] gb3: sdl.sound Message-ID: <4E263BF5.2050001@...1887...> What is the datatype or resolution of the Channel.Volume property? Didn't see it in the documentation and it seems somewhat grainy. Its values are between 0 and 1, which is fine, but from the sound levels produced by small amplitude adjustments it seems it may be a byte datatype. While this sounds a bit crazy, I'm trying (stress -trying-) to design my game so that a blind person can play it, so these things are important. Any insight appreciated. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Wed Jul 20 16:25:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jul 2011 14:25:03 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <7-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #8 on issue 74 by flynetin... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 After reviewing the code of the report component finds that the error on the FPreview form to implement the btnPrint_Click event. At this point using the clone () method throws an error "not enough arguments." I conclude that the error is in the clone () method of the Report class but as I not understand how it works i do not find the solution. I hope you can find the problem. thanks Probed in Ubuntu Natty and gambas3 svn version From gambas at ...2524... Wed Jul 20 16:35:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jul 2011 14:35:13 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <8-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #9 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 there is no problem with clone ... i've just tested it ! do you use the exemple report ? if not send me yours From gambas at ...2524... Wed Jul 20 17:41:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jul 2011 15:41:56 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <9-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #10 on issue 74 by flynetin... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 I do not know why but I tried it on 3 different pc all with ubuntu natty and gambas3 svn and I have always the same problem. When using the ReportExample that included with sample prints, all works fine with the preview but when clicking the Print button fires the error "not enough arguments." I know that these problems are difficult to identify when there are only individual cases but I'm sure this error is given with the conditions described. Sorry for the insistence Thank you. From gambas.fr at ...626... Wed Jul 20 18:38:51 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 20 Jul 2011 18:38:51 +0200 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <10-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <9-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <10-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: if i remember well benoit is on ubuntu ... 2011/7/20 : > > Comment #10 on issue 74 by flynetin... at ...626...: printer error with > gb.report and gb.qt > http://code.google.com/p/gambas/issues/detail?id=74 > > I do not know why but I tried it on 3 different pc all with ubuntu natty > and gambas3 svn and I have always the same problem. When using the > ReportExample that included with sample prints, all works fine with the > preview but when clicking the Print button fires the error "not enough > arguments." > I know that these problems are difficult to identify when there are only > individual cases but I'm sure this error is given with the conditions > described. > Sorry for the insistence > Thank you. > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Wed Jul 20 18:39:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jul 2011 16:39:30 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <10-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #11 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 if i remember well benoit is on ubuntu ... From nando_f at ...951... Thu Jul 21 04:24:24 2011 From: nando_f at ...951... (nando) Date: Wed, 20 Jul 2011 22:24:24 -0400 Subject: [Gambas-user] Cloning instances of a class to make an exact copy Message-ID: <20110721021726.M45603@...951...> Question: Assume I have an instance of class myclass dimed as 'myclass1' and I want to clone all the data to NEW myclass2 The syntax may be something like: myclass2 = NEW myclass 'create instance myclass2.clone(myclass1) 'clone/copy I do realize that: myclass2 = myclass2 only assigns a second pointer to the same single object I am assuming that there is no copy/clone of an instance to another to make an exact replica copy, not just pointers to objects In the mean time, I'll start writing a copy/clone sub ?? -Fernando From nando_f at ...951... Thu Jul 21 08:24:43 2011 From: nando_f at ...951... (nando) Date: Thu, 21 Jul 2011 02:24:43 -0400 Subject: [Gambas-user] Do embeded objects get released too upon destruction ? Message-ID: <20110721061318.M75061@...951...> Question: If I have a class 'myClass' with the following: DIM k = NEW OBJECT[100] PUBLIC SUB _init() DIM i AS INTEGER FOR i = 1 TO 100 k[i] = NEW STRING[] 'add a string array k[i].add("HELLO") 'add one element with "HELLO" NEXT END Somewhere else I have: DIM Q AS NEW myClass[5] ' constructor executes 5 times Q[2] = NULL '<---will the embeded string memory get freed too when the myClass object is freed ?? ?? -Fernando From sholzy2010 at ...43... Thu Jul 21 19:37:13 2011 From: sholzy2010 at ...43... (No Way) Date: Thu, 21 Jul 2011 10:37:13 -0700 (PDT) Subject: [Gambas-user] Suspending the screensaver Message-ID: <1311269833.16251.YahooMailClassic@...2623...> Hey guys, I've been trying to figure out how to use this, but I can't make heads or tails of it. http://gambasdoc.org/help/comp/gb.desktop/_desktopscreensaver http://gambasdoc.org/help/comp/gb.desktop/desktop/screensaver Can someone give me an example of how to use this in either Gambas 2 or Gambas 3? Thanks! From tobiasboe1 at ...20... Fri Jul 22 12:29:20 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 22 Jul 2011 12:29:20 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1310978666.16137.12.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> <1310978666.16137.12.camel@...2493...> Message-ID: <4E295100.9060900@...20...> hi, > 1) ok, it is called again and again and prints to stdout "ok". > > how i put the "test" word of Application_Read method in a variable, and > stop the continuous calling? In other words how do i read the value? > this is pretty simple: Public Sub Application_Read() Dim sBuf As String Read #Last, sBuf, Lof(Last) End > 2) if i use PUBLIC SUB SetTextArea it is also a Dynamic Symbol and it > complains. > > Thanks, it may be easy but here i am stucked :( for this, i'm stuck, too (if you declare SetTextArea as static, you can't use the textarea object in it)... regards, tobi From demosthenesk at ...626... Fri Jul 22 16:10:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 22 Jul 2011 17:10:43 +0300 Subject: [Gambas-user] Application_Read In-Reply-To: <4E295100.9060900@...20...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> <1310978666.16137.12.camel@...2493...> <4E295100.9060900@...20...> Message-ID: <1311343843.3470.6.camel@...2493...> On Fri, 2011-07-22 at 12:29 +0200, tobias wrote: > hi, > > > 1) ok, it is called again and again and prints to stdout "ok". > > > > how i put the "test" word of Application_Read method in a variable, and > > stop the continuous calling? In other words how do i read the value? > > > this is pretty simple: > > Public Sub Application_Read() > > Dim sBuf As String > > Read #Last, sBuf, Lof(Last) > here i get again error for Read #Last "Dynamic symbols cannot be used in static function" is this a bug? > End > > > 2) if i use PUBLIC SUB SetTextArea it is also a Dynamic Symbol and it > > complains. > > > > Thanks, it may be easy but here i am stucked :( > for this, i'm stuck, too (if you declare SetTextArea as static, you > can't use the textarea object in it)... > > regards, > tobi > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Sat Jul 23 09:38:10 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 09:38:10 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1311343843.3470.6.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> <1310978666.16137.12.camel@...2493...> <4E295100.9060900@...20...> <1311343843.3470.6.camel@...2493...> Message-ID: <4E2A7A62.5000902@...20...> hi, >> Public Sub Application_Read() >> >> Dim sBuf As String >> >> Read #Last, sBuf, Lof(Last) >> > here i get again error for Read #Last > "Dynamic symbols cannot be used in static function" > > is this a bug? it works fine for me? From kevinfishburne at ...1887... Sat Jul 23 10:24:39 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 23 Jul 2011 04:24:39 -0400 Subject: [Gambas-user] gb3: compiling on Debian Wheezy (testing) Message-ID: <4E2A8547.4040000@...1887...> Everythings seems to work up to the end when I receive this: Making install in gb.sdl make[1]: Entering directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' Making install in src make[2]: Entering directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[3]: Entering directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.sdl.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.sdl.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.sdl.la '/usr/local/lib/gambas3' libtool: install: /usr/bin/install -c .libs/gb.sdl.so.0.0.0 /usr/local/lib/gambas3/gb.sdl.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.sdl.so.0.0.0 gb.sdl.so.0 || { rm -f gb.sdl.so.0 && ln -s gb.sdl.so.0.0.0 gb.sdl.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.sdl.so.0.0.0 gb.sdl.so || { rm -f gb.sdl.so && ln -s gb.sdl.so.0.0.0 gb.sdl.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.sdl.lai /usr/local/lib/gambas3/gb.sdl.la /usr/bin/install: cannot stat `.libs/gb.sdl.lai': No such file or directory make[3]: *** [install-gblibLTLIBRARIES] Error 1 make[3]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' make: *** [install-recursive] Error 1 Any idea what could be causing that? Some of the dependencies aren't quite the same as in the wiki but I installed all the equivalents except for the thunderbird/icedove. I have these SDL dev packages installed: libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-ttf2.0-dev libsdl-1.2-dev -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_log_debian_wheezy.tar.gz Type: application/x-gzip Size: 51409 bytes Desc: not available URL: From gambas at ...1... Sat Jul 23 15:26:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 23 Jul 2011 15:26:56 +0200 Subject: [Gambas-user] Do embeded objects get released too upon destruction ? In-Reply-To: <20110721061318.M75061@...951...> References: <20110721061318.M75061@...951...> Message-ID: <201107231526.56499.gambas@...1...> > Question: > > If I have a class 'myClass' with the following: > > DIM k = NEW OBJECT[100] > > PUBLIC SUB _init() > > DIM i AS INTEGER > > FOR i = 1 TO 100 > k[i] = NEW STRING[] 'add a string array > k[i].add("HELLO") 'add one element with "HELLO" > NEXT > > END > > > Somewhere else I have: > > DIM Q AS NEW myClass[5] ' constructor executes 5 times No : you are creating an array of myClass references, but you are not creating any myClass object at all. And this is a normal array, not an embedded one. > > Q[2] = NULL '<---will the embeded string memory get freed too > when the myClass object is freed ?? What is "string memory" ? Anyway a myClass object will be freed as soon as nothing has a reference on it. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 23 15:28:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 23 Jul 2011 15:28:04 +0200 Subject: [Gambas-user] Cloning instances of a class to make an exact copy In-Reply-To: <20110721021726.M45603@...951...> References: <20110721021726.M45603@...951...> Message-ID: <201107231528.04998.gambas@...1...> > Question: > > Assume I have an instance of class myclass dimed as 'myclass1' > and I want to clone all the data to NEW myclass2 > > The syntax may be something like: > > myclass2 = NEW myclass 'create instance > myclass2.clone(myclass1) 'clone/copy > > I do realize that: > myclass2 = myclass2 only assigns a second pointer to the same single > object > > > I am assuming that there is no copy/clone of an instance to another > to make an exact replica copy, not just pointers to objects > > In the mean time, I'll start writing a copy/clone sub > > ?? > -Fernando > Doing a deep copy in a standard way is impossible, so you have to implement your Clone() or Copy() method yourself. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sat Jul 23 16:02:10 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 16:02:10 +0200 Subject: [Gambas-user] Cloning instances of a class to make an exact copy In-Reply-To: <201107231528.04998.gambas@...1...> References: <20110721021726.M45603@...951...> <201107231528.04998.gambas@...1...> Message-ID: <4E2AD462.4020601@...20...> On 23.07.2011 15:28, Beno?t Minisini wrote: >> Question: >> >> Assume I have an instance of class myclass dimed as 'myclass1' >> and I want to clone all the data to NEW myclass2 >> >> The syntax may be something like: >> >> myclass2 = NEW myclass 'create instance >> myclass2.clone(myclass1) 'clone/copy >> >> I do realize that: >> myclass2 = myclass2 only assigns a second pointer to the same single >> object >> >> >> I am assuming that there is no copy/clone of an instance to another >> to make an exact replica copy, not just pointers to objects >> >> In the mean time, I'll start writing a copy/clone sub >> >> ?? >> -Fernando >> > Doing a deep copy in a standard way is impossible, so you have to implement > your Clone() or Copy() method yourself. > > Regards, > i wrote this one some time ago, but don't know if it is well designed, i discarded the idea for some reason: (on a form with TextBox1 and Button1 existing, copies the textbox and moves it just below the original one) Public Sub Button1_Click() Dim hT As New TextBox(Me) Clone(hT, TextBox1) hT.Y += hT.Height End Public Sub Clone(hBuf As Object, hSource As Object) Dim sSym As String For Each sSym In Object.Class(hSource).Symbols 'get all symbols of a class If Object.Class(hSource)[sSym].Kind = Class.Property Then 'copy properties only Try Object.SetProperty(hBuf, sSym, Object.GetProperty(hSource, sSym)) 'try is for read-only properties in destintion object Endif Next End is that an acceptable solution? regards, tobi From demosthenesk at ...626... Sat Jul 23 16:15:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 23 Jul 2011 17:15:37 +0300 Subject: [Gambas-user] Application_Read In-Reply-To: <4E2A7A62.5000902@...20...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> <1310978666.16137.12.camel@...2493...> <4E295100.9060900@...20...> <1311343843.3470.6.camel@...2493...> <4E2A7A62.5000902@...20...> Message-ID: <1311430537.30106.0.camel@...2493...> i am sure that there is a bug. Please see the project. On Sat, 2011-07-23 at 09:38 +0200, tobias wrote: > hi, > > >> Public Sub Application_Read() > >> > >> Dim sBuf As String > >> > >> Read #Last, sBuf, Lof(Last) > >> > > here i get again error for Read #Last > > "Dynamic symbols cannot be used in static function" > > > > is this a bug? > > it works fine for me? > > ------------------------------------------------------------------------------ > Storage Efficiency Calculator > This modeling tool is based on patent-pending intellectual property that > has been used successfully in hundreds of IBM storage optimization engage- > ments, worldwide. Store less, Store more with what you own, Move data to > the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project_133_.tar.gz Type: application/x-compressed-tar Size: 5752 bytes Desc: not available URL: From tobiasboe1 at ...20... Sat Jul 23 17:39:39 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 17:39:39 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1311430537.30106.0.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> <1310655266.2982.6.camel@...2493...> <201107180145.57917.gambas@...1...> <1310978666.16137.12.camel@...2493...> <4E295100.9060900@...20...> <1311343843.3470.6.camel@...2493...> <4E2A7A62.5000902@...20...> <1311430537.30106.0.camel@...2493...> Message-ID: <4E2AEB3B.20207@...20...> On 23.07.2011 16:15, Demosthenes Koptsis wrote: > i am sure that there is a bug. > > Please see the project. why should it be a bug? it looks more like a design issue but that's just a thought... so, you use sBuf as a global variable this is the errors reason because in this case it actually is a dynamic symbol. use a local variable... this is where i got so far: Public Sub _new() Print "My pid is: " & Application.Handle End Static Public Sub Application_Read() Dim sBuf As String sBuf = Read Lof() Print sBuf End sorry, i didn't notice that the read syntax changed in gambas3... but it still doesn't work, i can't get any data from stdin. i thought that reading from Last was wrong but the syntax i use now should read from stdin (Line Input sBuf doesn't work, too). i only get empty lines over and over... i call the program with: $ echo "test" | ./Project_133_.gambas and data seems to arrive at stdin because the Print inside Application_Read is called... i can't imagine where the mistake is now. and additionally i don't see any way to fill your textarea. (you cannot access anything non-static from Application_Read, neither variables nor functions) From gambas at ...1... Sat Jul 23 17:59:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 23 Jul 2011 17:59:35 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <1311430537.30106.0.camel@...2493...> References: <1310380928.3307.2.camel@...2493...> <4E2A7A62.5000902@...20...> <1311430537.30106.0.camel@...2493...> Message-ID: <201107231759.35269.gambas@...1...> > i am sure that there is a bug. > > Please see the project. > No, read tobias' answer. Here is a fixed project. Note that if you run your project from the IDE, what you type inside the debugger output window will be sent to the process, but you won't have the behaviour of a true terminal. To run your project from the IDE and to have the behaviour of a terminal, you must enable the corresponding option in the project property dialog. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Project_133_-0.0.12.tar.gz Type: application/x-compressed-tar Size: 5620 bytes Desc: not available URL: From tobiasboe1 at ...20... Sat Jul 23 18:30:17 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 18:30:17 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <201107231759.35269.gambas@...1...> References: <1310380928.3307.2.camel@...2493...> <4E2A7A62.5000902@...20...> <1311430537.30106.0.camel@...2493...> <201107231759.35269.gambas@...1...> Message-ID: <4E2AF719.9000709@...20...> On 23.07.2011 17:59, Beno?t Minisini wrote: > No, read tobias' answer. Here is a fixed project. > > Note that if you run your project from the IDE, what you type inside the > debugger output window will be sent to the process, but you won't have the > behaviour of a true terminal. > > To run your project from the IDE and to have the behaviour of a terminal, you > must enable the corresponding option in the project property dialog. > > Regards, if i tick this checkbox, my program starts and exits immediately with 255? and why can't i get the data out of stdin? it still produces empty lines and no data is removed from the stream... regards, tobi From gambas at ...1... Sat Jul 23 18:40:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 23 Jul 2011 18:40:48 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <4E2AF719.9000709@...20...> References: <1310380928.3307.2.camel@...2493...> <201107231759.35269.gambas@...1...> <4E2AF719.9000709@...20...> Message-ID: <201107231840.48747.gambas@...1...> > On 23.07.2011 17:59, Beno?t Minisini wrote: > > No, read tobias' answer. Here is a fixed project. > > > > Note that if you run your project from the IDE, what you type inside the > > debugger output window will be sent to the process, but you won't have > > the behaviour of a true terminal. > > > > To run your project from the IDE and to have the behaviour of a terminal, > > you must enable the corresponding option in the project property dialog. > > > > Regards, > > if i tick this checkbox, my program starts and exits immediately with 255? > and why can't i get the data out of stdin? it still produces empty lines > and no data is removed from the stream... > > regards, > tobi > I don't know what you are talking about. I was sending a fixed project for Demosthene. Please send your project so that I can take a look at it! Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sat Jul 23 18:57:57 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 18:57:57 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <201107231840.48747.gambas@...1...> References: <1310380928.3307.2.camel@...2493...> <201107231759.35269.gambas@...1...> <4E2AF719.9000709@...20...> <201107231840.48747.gambas@...1...> Message-ID: <4E2AFD95.8060004@...20...> > I don't know what you are talking about. I was sending a fixed project for > Demosthene. Please send your project so that I can take a look at it! > > Regards, > oh god, i didn't notice the attachment... it really works. ah, i see Lof() returns 0 on stdin, of course... but there is something i don't understand, i altered the working code to check Lof(): Static Public Sub Application_Read() Dim sBuf As String Print Lof() sBuf = Read -256 FMain.Insert(sBuf) End and now it permanently Prints zeros into my terminal, which means that the Application_Read() is called all the time, but nothing is inserted into the textarea, not even an empty string as i expected. what is going on? btw, there are no stream objects for the 3 standard fds, just interfaces? regards, tobi From tobiasboe1 at ...20... Sat Jul 23 20:14:42 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 20:14:42 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <4E2AFD95.8060004@...20...> References: <1310380928.3307.2.camel@...2493...> <201107231759.35269.gambas@...1...> <4E2AF719.9000709@...20...> <201107231840.48747.gambas@...1...> <4E2AFD95.8060004@...20...> Message-ID: <4E2B0F92.9000504@...20...> > btw, there are no stream objects for the 3 standard fds, just interfaces? ok, found them in the File object From kevinfishburne at ...1887... Sat Jul 23 20:18:01 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 23 Jul 2011 14:18:01 -0400 Subject: [Gambas-user] gb3: compiling on Debian Wheezy (testing) In-Reply-To: <4E2A8547.4040000@...1887...> References: <4E2A8547.4040000@...1887...> Message-ID: <4E2B1059.4000700@...1887...> On 07/23/2011 04:24 AM, Kevin Fishburne wrote: > Everythings seems to work up to the end when I receive this: > > Making install in gb.sdl > make[1]: Entering directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' > Making install in src > make[2]: Entering directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' > make[3]: Entering directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' > make[3]: Nothing to be done for `install-exec-am'. > test -z "/usr/local/lib/gambas3" || /bin/mkdir -p > "/usr/local/lib/gambas3" > /usr/bin/install -c -m 644 gb.sdl.component '/usr/local/lib/gambas3' > test -z "/usr/local/lib/gambas3" || /bin/mkdir -p > "/usr/local/lib/gambas3" > /usr/bin/install -c -m 644 gb.sdl.component '/usr/local/lib/gambas3' > test -z "/usr/local/lib/gambas3" || /bin/mkdir -p > "/usr/local/lib/gambas3" > /bin/bash ../libtool --mode=install /usr/bin/install -c gb.sdl.la > '/usr/local/lib/gambas3' > libtool: install: /usr/bin/install -c .libs/gb.sdl.so.0.0.0 > /usr/local/lib/gambas3/gb.sdl.so.0.0.0 > libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f > gb.sdl.so.0.0.0 gb.sdl.so.0 || { rm -f gb.sdl.so.0 && ln -s > gb.sdl.so.0.0.0 gb.sdl.so.0; }; }) > libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f > gb.sdl.so.0.0.0 gb.sdl.so || { rm -f gb.sdl.so && ln -s > gb.sdl.so.0.0.0 gb.sdl.so; }; }) > libtool: install: /usr/bin/install -c .libs/gb.sdl.lai > /usr/local/lib/gambas3/gb.sdl.la > /usr/bin/install: cannot stat `.libs/gb.sdl.lai': No such file or > directory > make[3]: *** [install-gblibLTLIBRARIES] Error 1 > make[3]: Leaving directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' > make[2]: *** [install-am] Error 2 > make[2]: Leaving directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' > make: *** [install-recursive] Error 1 > > Any idea what could be causing that? Some of the dependencies aren't > quite the same as in the wiki but I installed all the equivalents > except for the thunderbird/icedove. > > I have these SDL dev packages installed: > > libsdl-image1.2-dev > libsdl-mixer1.2-dev > libsdl-sound1.2-dev > libsdl-ttf2.0-dev > libsdl-1.2-dev Just caught something new: /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive make[4]: *** [gb.sdl.la] Error 1 make[4]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk' make: *** [all] Error 2 I've checked for the presence of every dependency library in Synaptic and searching the file system and everything seems to be there, though there may be a version mismatch (newer libraries possibly). I also saw the someone named Henry in the mailing list had the same problem this year but received no replies. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Sat Jul 23 20:24:17 2011 From: nando_f at ...951... (nando) Date: Sat, 23 Jul 2011 14:24:17 -0400 Subject: [Gambas-user] Do embeded objects get released too upon destruction ? In-Reply-To: <201107231526.56499.gambas@...1...> References: <20110721061318.M75061@...951...> <201107231526.56499.gambas@...1...> Message-ID: <20110723181959.M50647@...951...> Does not the following line make the class "_init" execute with each new instance of the class? DIM Q AS NEW myClass[5] ' constructor executes 5 times Then, with each new instance there is the NEW object array with HELLO 100 times When the reference to myClass is gone, as in: myClass[2] = NULL Is there a deep unreference to the embedded objects? ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Sat, 23 Jul 2011 15:26:56 +0200 Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? > > Question: > > > > If I have a class 'myClass' with the following: > > > > DIM k = NEW OBJECT[100] > > > > PUBLIC SUB _init() > > > > DIM i AS INTEGER > > > > FOR i = 1 TO 100 > > k[i] = NEW STRING[] 'add a string array > > k[i].add("HELLO") 'add one element with "HELLO" > > NEXT > > > > END > > > > > > Somewhere else I have: > > > > DIM Q AS NEW myClass[5] ' constructor executes 5 times > > No : you are creating an array of myClass references, but you are not creating > any myClass object at all. > > And this is a normal array, not an embedded one. > > > > > Q[2] = NULL '<---will the embeded string memory get freed too > > when the myClass object is freed ?? > > What is "string memory" ? > > Anyway a myClass object will be freed as soon as nothing has a reference on > it. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Storage Efficiency Calculator > This modeling tool is based on patent-pending intellectual property that > has been used successfully in hundreds of IBM storage optimization engage- > ments, worldwide. Store less, Store more with what you own, Move data to > the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Sat Jul 23 20:29:37 2011 From: nando_f at ...951... (nando) Date: Sat, 23 Jul 2011 14:29:37 -0400 Subject: [Gambas-user] Do embeded objects get released too upon destruction ? In-Reply-To: <20110723181959.M50647@...951...> References: <20110721061318.M75061@...951...> <201107231526.56499.gambas@...1...> <20110723181959.M50647@...951...> Message-ID: <20110723182640.M73010@...951...> Ok, so the following line... DIM Q AS NEW myClass[5] would need... FOR i = 0 TO 4 myClass[i] = NEW myClass NEXT to instantiate each myClass object. The _init would then execute creating the string objects Does this line... myClass[5] = NULL do a deep unreference to the embedded strings too? ---------- Original Message ----------- From: "nando" To: mailing list for gambas users Sent: Sat, 23 Jul 2011 14:24:17 -0400 Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? > Does not the following line make the class "_init" execute with > each new instance of the class? > > DIM Q AS NEW myClass[5] ' constructor executes 5 times > > Then, with each new instance there is the NEW object array with HELLO 100 times > > When the reference to myClass is gone, as in: > > myClass[2] = NULL > > Is there a deep unreference to the embedded objects? > > ---------- Original Message ----------- > From: Beno?t Minisini > To: nando_f at ...951..., mailing list for gambas users > > Sent: Sat, 23 Jul 2011 15:26:56 +0200 > Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? > > > > Question: > > > > > > If I have a class 'myClass' with the following: > > > > > > DIM k = NEW OBJECT[100] > > > > > > PUBLIC SUB _init() > > > > > > DIM i AS INTEGER > > > > > > FOR i = 1 TO 100 > > > k[i] = NEW STRING[] 'add a string array > > > k[i].add("HELLO") 'add one element with "HELLO" > > > NEXT > > > > > > END > > > > > > > > > Somewhere else I have: > > > > > > DIM Q AS NEW myClass[5] ' constructor executes 5 times > > > > No : you are creating an array of myClass references, but you are not creating > > any myClass object at all. > > > > And this is a normal array, not an embedded one. > > > > > > > > Q[2] = NULL '<---will the embeded string memory get freed too > > > when the myClass object is freed ?? > > > > What is "string memory" ? > > > > Anyway a myClass object will be freed as soon as nothing has a reference on > > it. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > > Storage Efficiency Calculator > > This modeling tool is based on patent-pending intellectual property that > > has been used successfully in hundreds of IBM storage optimization engage- > > ments, worldwide. Store less, Store more with what you own, Move data to > > the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > ------------------------------------------------------------------------------ > Storage Efficiency Calculator > This modeling tool is based on patent-pending intellectual property that > has been used successfully in hundreds of IBM storage optimization engage- > ments, worldwide. Store less, Store more with what you own, Move data to > the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From tobiasboe1 at ...20... Sat Jul 23 20:36:30 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 23 Jul 2011 20:36:30 +0200 Subject: [Gambas-user] Do embeded objects get released too upon destruction ? In-Reply-To: <20110723182640.M73010@...951...> References: <20110721061318.M75061@...951...> <201107231526.56499.gambas@...1...> <20110723181959.M50647@...951...> <20110723182640.M73010@...951...> Message-ID: <4E2B14AE.7070309@...20...> On 23.07.2011 20:29, nando wrote: > Ok, so the following line... > > DIM Q AS NEW myClass[5] > > would need... > > FOR i = 0 TO 4 > myClass[i] = NEW myClass > NEXT > > > to instantiate each myClass object. > > The _init would then execute creating the string objects > > Does this line... > > myClass[5] = NULL > > do a deep unreference to the embedded strings too? > it's not really related to your problem but _init isn't called on instanciation but only when the class is loaded, which happens at most once. you may want _new... but i can't answer your question... From gambas at ...1... Sun Jul 24 00:11:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 00:11:01 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <4E2AFD95.8060004@...20...> References: <1310380928.3307.2.camel@...2493...> <201107231840.48747.gambas@...1...> <4E2AFD95.8060004@...20...> Message-ID: <201107240011.01676.gambas@...1...> > > I don't know what you are talking about. I was sending a fixed project > > for Demosthene. Please send your project so that I can take a look at > > it! > > > > Regards, > > oh god, i didn't notice the attachment... it really works. ah, i see > Lof() returns 0 on stdin, of course... > but there is something i don't understand, i altered the working code to > check Lof(): > Static Public Sub Application_Read() > > Dim sBuf As String > > Print Lof() > sBuf = Read -256 > FMain.Insert(sBuf) > > End > > and now it permanently Prints zeros into my terminal, which means that > the Application_Read() is called all the time, but nothing is inserted > into the textarea, not even an empty string as i expected. what is going > on? > I noticed that, I must investigate. It happens when you run the project from the IDE without a true terminal. In that case, the standard streams are redirected to pipes created by the IDE when running the project. And these pipes don't seem to behave like terminal file descriptors! -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jul 24 00:32:46 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 24 Jul 2011 00:32:46 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <201107240011.01676.gambas@...1...> References: <1310380928.3307.2.camel@...2493...> <201107231840.48747.gambas@...1...> <4E2AFD95.8060004@...20...> <201107240011.01676.gambas@...1...> Message-ID: <4E2B4C0E.8030609@...20...> On 24.07.2011 00:11, Beno?t Minisini wrote: >>> I don't know what you are talking about. I was sending a fixed project >>> for Demosthene. Please send your project so that I can take a look at >>> it! >>> >>> Regards, >> oh god, i didn't notice the attachment... it really works. ah, i see >> Lof() returns 0 on stdin, of course... >> but there is something i don't understand, i altered the working code to >> check Lof(): >> Static Public Sub Application_Read() >> >> Dim sBuf As String >> >> Print Lof() >> sBuf = Read -256 >> FMain.Insert(sBuf) >> >> End >> >> and now it permanently Prints zeros into my terminal, which means that >> the Application_Read() is called all the time, but nothing is inserted >> into the textarea, not even an empty string as i expected. what is going >> on? >> > I noticed that, I must investigate. It happens when you run the project from > the IDE without a true terminal. > > In that case, the standard streams are redirected to pipes created by the IDE > when running the project. And these pipes don't seem to behave like terminal > file descriptors! > for me, it's the same in bash (Konsole), not the ide only From kevinfishburne at ...1887... Sun Jul 24 07:37:23 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 24 Jul 2011 01:37:23 -0400 Subject: [Gambas-user] gb3: compiling on Debian Wheezy (testing) In-Reply-To: <4E2B1059.4000700@...1887...> References: <4E2A8547.4040000@...1887...> <4E2B1059.4000700@...1887...> Message-ID: <4E2BAF93.3000901@...1887...> On 07/23/2011 02:18 PM, Kevin Fishburne wrote: > Just caught something new: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk' > make: *** [all] Error 2 > > I've checked for the presence of every dependency library in Synaptic > and searching the file system and everything seems to be there, though > there may be a version mismatch (newer libraries possibly). I also saw > the someone named Henry in the mailing list had the same problem this > year but received no replies *** Please see the end of this email as I solved the problem. I'm leaving the rest here in case it is useful for correcting whatever is happening. *** Well, I'm been trying like crazy to get it to install and am using this installation script now: svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ cd trunk ./reconf-all ./configure -C make sudo make install and interestingly am receiving a new error: libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s "gb.sdl.so.0.0.0" "gb.sdl.so.0") libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s "gb.sdl.so.0.0.0" "gb.sdl.so") /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive make[2]: *** [gb.sdl.la] Error 1 make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' make: *** [install-recursive] Error 1 From my research it seems this problem may have been worked around by creating a symlink somewhere. I created a symlink from /usr/lib/x86_64-linux-gnu/libfreetype.la to /usr/lib/libfreetype.la and copied trunk/gb.sdl/src/gb.sdl.la to /usr/lib/gb.sdl.la and now receive the original error: libtool: install: /usr/bin/install -c .libs/gb.sdl.lai /usr/local/lib/gambas3/gb.sdl.la /usr/bin/install: cannot stat `.libs/gb.sdl.lai': No such file or directory make[3]: *** [install-gblibLTLIBRARIES] Error 1 make[3]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' make: *** [install-recursive] Error 1 I'm using libfreetype6-dev. Here's Henri's post (sorry for misspelling your name earlier): http://old.nabble.com/natty-gambas3-td31276264.html He mentioned v4l in the post (I'm using libv4l-dev 0.8.4-3). *** The Solution *** First I copied every .la file in trunk to /usr/lib (maybe unnecessary). Then I copied trunk/gb.sdl/src/gb.sdl.la to trunk/gb.sdl/src/.libs/gb.sdl.lai, then ran "sudo make install" again. It worked and gb3 runs, but I haven't tested it to see if everything works yet. While I'm glad it's working, I have absolutely no idea what I was doing. I don't know an .la file from my asshole, which is one of the many reasons I'm still using a BASIC dialect. Hopefully this information can be used to allow gb3 to successfully compile on Debian testing in the future, or at least help some poor soul struggling to get it to install. And thanks for all the help (cough!). ;) -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Sun Jul 24 08:17:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 24 Jul 2011 09:17:37 +0300 Subject: [Gambas-user] Application_Read In-Reply-To: <4E2B4C0E.8030609@...20...> References: <1310380928.3307.2.camel@...2493...> <201107231840.48747.gambas@...1...> <4E2AFD95.8060004@...20...> <201107240011.01676.gambas@...1...> <4E2B4C0E.8030609@...20...> Message-ID: <1311488257.12281.4.camel@...2493...> On Sun, 2011-07-24 at 00:32 +0200, tobias wrote: > On 24.07.2011 00:11, Beno?t Minisini wrote: > >>> I don't know what you are talking about. I was sending a fixed project > >>> for Demosthene. Please send your project so that I can take a look at > >>> it! > >>> > >>> Regards, > >> oh god, i didn't notice the attachment... it really works. ah, i see > >> Lof() returns 0 on stdin, of course... > >> but there is something i don't understand, i altered the working code to > >> check Lof(): > >> Static Public Sub Application_Read() > >> > >> Dim sBuf As String > >> > >> Print Lof() > >> sBuf = Read -256 > >> FMain.Insert(sBuf) > >> > >> End > >> > >> and now it permanently Prints zeros into my terminal, which means that > >> the Application_Read() is called all the time, but nothing is inserted > >> into the textarea, not even an empty string as i expected. what is going > >> on? > >> > > I noticed that, I must investigate. It happens when you run the project from > > the IDE without a true terminal. > > > > In that case, the standard streams are redirected to pipes created by the IDE > > when running the project. And these pipes don't seem to behave like terminal > > file descriptors! > > > for me, it's the same in bash (Konsole), not the ide only > Thanks for the fixed Project Benoit. I made an executable and run it in a true console. Then i send data to /proc/12553/fd/0 with echo "test" /proc/12553/fd/0. The result is that the word "test" appears in terminal but it is not Read by Application_Read(). I say that because i add a PRINT "ok" expression in Application_Read and it is not working when i sent data to fd/0. -- Regards, Demosthenes Koptsis. From kevinfishburne at ...1887... Sun Jul 24 09:43:49 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 24 Jul 2011 03:43:49 -0400 Subject: [Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once Message-ID: <4E2BCD35.7020609@...1887...> I can play eight sounds simultaneously, adjusting their volumes as needed, but when I try to set the volume of the channel of the ninth sound I receive an error saying that the channel is null (even though the ninth sound actually starts playing at a volume of 1). Here is my code for the module: ' Gambas module file ' Audio module ' General declarations. Public Struct Effect ' Structure containing an individual sound effect's data. Sample As Sound ' Waveform data (file). Chan As Channel ' Default channel to play on. AmpCurrent As Single ' Current amplitude. AmpTarget As Single ' Target amplitude. AmpScale As Single ' Target amplitude multiplier. End Struct Public Environment[16] As Struct Effect ' Environmental sound effects. Public Dynamic[16] As Struct Effect ' Dynamic sound effects. Public WaterDeepCount As Single ' Total number of deep water tiles. Public WaterDeepDistance As Single ' Total distance of deep water tiles. Public WaterMediumCount As Single ' Total number of medium water tiles. Public WaterMediumDistance As Single ' Total distance of medium water tiles. Public WaterShallowCount As Single ' Total number of shallow water tiles. Public WaterShallowDistance As Single ' Total distance of shallow water tiles. Public LandCount As Single ' Total number of land tiles. Public LandDistance As Single ' Total distance of land tiles. Public Sub Update() ' Analyze area around player to determine effect amplitudes. ' General declarations. Dim x As Byte Dim y As Byte Dim WaterDepth As Short ' Depth of current cell grid tile. ' Reset counters. WaterDeepCount = 0 WaterDeepDistance = 0 WaterMediumCount = 0 WaterMediumDistance = 0 WaterShallowCount = 0 WaterShallowDistance = 0 LandCount = 0 LandDistance = 0 ' Calculate water and land tile counts and distances from camera. For y = Render.ccgy - 32 To Render.ccgy + 31 Step 4 For x = Render.ccgx - 32 To Render.ccgx + 31 Step 4 ' Determine if current tile is water or land. If Render.delevation[x, y] < 0 Then ' Perform water tile calculations. WaterDepth = Render.delevation[x, y] ' Determine effect type from water depth. If WaterDepth >= -32768 And WaterDepth < -2048 Then ' Increment deep water count. Inc WaterDeepCount ' Increment deep water distance. WaterDeepDistance = WaterDeepDistance + Convert.Distance(Render.ccgx, Render.ccgy, x, y) Endif If WaterDepth >= -2048 And WaterDepth < -128 Then ' Increment medium water. Inc WaterMediumCount ' Increment medium water distance. WaterMediumDistance = WaterMediumDistance + Convert.Distance(Render.ccgx, Render.ccgy, x, y) Endif If WaterDepth >= -128 ' Increment shallow water. Inc WaterShallowCount ' Increment shallow water distance. WaterShallowDistance = WaterShallowDistance + Convert.Distance(Render.ccgx, Render.ccgy, x, y) Endif Else ' Increment land. Inc LandCount ' Increment land distance. LandDistance = LandDistance + Convert.Distance(Render.ccgx, Render.ccgy, x, y) Endif Next Next ' Convert tile counts to percentages of occurrence (0 - 1). WaterDeepCount = WaterDeepCount / 256 WaterMediumCount = WaterMediumCount / 256 WaterShallowCount = WaterShallowCount / 256 LandCount = LandCount / 256 ' Convert tile distances to percentages of distance (0 - 1). WaterDeepDistance = WaterDeepDistance / 6350 WaterMediumDistance = WaterMediumDistance / 6350 WaterShallowDistance = WaterShallowDistance / 6350 LandDistance = LandDistance / 6350 ' Calculate target water amplitudes. Environment[0].AmpTarget = (WaterDeepCount + WaterDeepDistance) / 2 * Environment[0].AmpScale Environment[1].AmpTarget = (WaterMediumCount + WaterMediumDistance) / 2 * Environment[1].AmpScale Environment[2].AmpTarget = (WaterShallowCount + WaterShallowDistance) / 2 * Environment[2].AmpScale Environment[3].AmpTarget = LandCount * Environment[0].AmpTarget * Environment[3].AmpScale Environment[4].AmpTarget = LandCount * Environment[1].AmpTarget * Environment[4].AmpScale Environment[5].AmpTarget = LandCount * Environment[2].AmpTarget * Environment[5].AmpScale ' Adjust current water amplitudes. Environment[0].AmpCurrent = (Environment[0].AmpCurrent + Environment[0].AmpTarget) / 2 * Environment[0].AmpScale Environment[1].AmpCurrent = (Environment[1].AmpCurrent + Environment[1].AmpTarget) / 2 * Environment[1].AmpScale Environment[2].AmpCurrent = (Environment[2].AmpCurrent + Environment[2].AmpTarget) / 2 * Environment[2].AmpScale Environment[3].AmpCurrent = (Environment[3].AmpCurrent + Environment[3].AmpTarget) / 2 * Environment[3].AmpScale Environment[4].AmpCurrent = (Environment[4].AmpCurrent + Environment[4].AmpTarget) / 2 * Environment[4].AmpScale Environment[5].AmpCurrent = (Environment[5].AmpCurrent + Environment[5].AmpTarget) / 2 * Environment[5].AmpScale ' Set audible water amplitudes. Environment[0].Chan.Volume = Environment[0].AmpCurrent Environment[1].Chan.Volume = Environment[1].AmpCurrent Environment[2].Chan.Volume = Environment[2].AmpCurrent Environment[3].Chan.Volume = Environment[3].AmpCurrent Environment[4].Chan.Volume = Environment[4].AmpCurrent Environment[5].Chan.Volume = Environment[5].AmpCurrent ' Calculate target rain amplitude. Environment[6].AmpTarget = Client.CloudCover - 125 If Environment[6].AmpTarget < 0 Then Environment[6].AmpTarget = 0 Environment[6].AmpTarget = Convert.Range(Environment[6].AmpTarget, 0, 31, 0, 1) * Environment[6].AmpScale ' Adjust current rain amplitude. If Environment[6].AmpCurrent < Environment[6].AmpTarget Then Environment[6].AmpCurrent = Environment[6].AmpCurrent + 0.01 Else Environment[6].AmpCurrent = Environment[6].AmpCurrent - 0.01 Endif ' Set audible rain amplitude. Environment[6].Chan.Volume = Environment[6].AmpCurrent ' Calculate target wind amplitude. Environment[7].AmpTarget = Abs(Client.WindSpeed) Environment[7].AmpTarget = Convert.Range(Environment[7].AmpTarget, 0, 31, 0, 1) * Environment[7].AmpScale ' Adjust current wind amplitude. If Environment[7].AmpCurrent < Environment[7].AmpTarget Then Environment[7].AmpCurrent = Environment[7].AmpCurrent + 0.01 Else Environment[7].AmpCurrent = Environment[7].AmpCurrent - 0.01 Endif ' Set audible wind amplitude. Environment[7].Chan.Volume = Environment[7].AmpCurrent ' Calculate target arctic amplitude. If Client.worldz >= 16384 Then Environment[8].AmpTarget = Convert.Range(Client.worldz, 16384, 32767, 0, 1) * Environment[8].AmpScale Else Environment[8].AmpTarget = 0 Endif ' Adjust current arctic amplitude. If Environment[8].AmpCurrent < Environment[8].AmpTarget Then Environment[8].AmpCurrent = Environment[8].AmpCurrent + 0.01 Else Environment[8].AmpCurrent = Environment[8].AmpCurrent - 0.01 Endif ' Set audible arctic amplitude. Environment[8].Chan.Volume = Environment[8].AmpCurrent End Public Sub Initialize() ' Start basic environmental sound effects. Channels.Count = 32 ' Start deep water effect. Environment[0].Sample = New Sound(GUI.basepath & "/sound/Ocean.wav") Environment[0].AmpScale = 1 Environment[0].Chan = Environment[0].Sample.Play(-1) Environment[0].Chan.Volume = 0 ' Start medium water effect. Environment[1].Sample = New Sound(GUI.basepath & "/sound/River.wav") Environment[1].AmpScale = 1 Environment[1].Chan = Environment[1].Sample.Play(-1) Environment[1].Chan.Volume = 0 ' Start shallow water effect. Environment[2].Sample = New Sound(GUI.basepath & "/sound/Lake.wav") Environment[2].AmpScale = 1 Environment[2].Chan = Environment[2].Sample.Play(-1) Environment[2].Chan.Volume = 0 ' Start deep seawash effect. Environment[3].Sample = New Sound(GUI.basepath & "/sound/Seawash, Deep.wav") Environment[3].AmpScale = 1 Environment[3].Chan = Environment[3].Sample.Play(-1) Environment[3].Chan.Volume = 0 ' Start medium seawash effect. Environment[4].Sample = New Sound(GUI.basepath & "/sound/Seawash, Medium.wav") Environment[4].AmpScale = 1 Environment[4].Chan = Environment[4].Sample.Play(-1) Environment[4].Chan.Volume = 0 ' Start shallow seawash effect. Environment[5].Sample = New Sound(GUI.basepath & "/sound/Seawash, Shallow.wav") Environment[5].AmpScale = 1 Environment[5].Chan = Environment[5].Sample.Play(-1) Environment[5].Chan.Volume = 0 ' Start rain effect. Environment[6].Sample = New Sound(GUI.basepath & "/sound/Rain.wav") Environment[6].AmpScale = 1 Environment[6].Chan = Environment[6].Sample.Play(-1) Environment[6].Chan.Volume = 0 ' Start wind effect. Environment[7].Sample = New Sound(GUI.basepath & "/sound/Wind.wav") Environment[7].AmpScale = 1 Environment[7].Chan = Environment[7].Sample.Play(-1) Environment[7].Chan.Volume = 0 ' Start arctic effect. Environment[8].Sample = New Sound(GUI.basepath & "/sound/Arctic.wav") Environment[8].AmpScale = 1 Environment[8].Chan = Environment[8].Sample.Play(-1) Environment[8].Chan.Volume = 0 End It dies at the last line, "Environment[8].Chan.Volume = 0". As I said, Arctic.wav starts playing, but setting the volume level of its channel treats the channel as a null object. Removing a different sound effect so that there are only eight instead of nine works fine. Anyone have any insight into why this is occurring? The SDL lib says it supports 32 channels, but it looks like it's just eight with a bug in the way it handles more than that. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Sun Jul 24 09:52:23 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 24 Jul 2011 09:52:23 +0200 Subject: [Gambas-user] Read and Write Null Message-ID: <4E2BCF37.7030106@...20...> good morning Benoit, this issue has kept me awake almost all the night. if i have an uninitialized collection and want it to be written to and then read from a file: Dim cCol As Collection = Null Dim hFile As File hFile = Open "~/test" For Write Create Write #hFile, cCol As Variant Close #hFile hFile = Open "~/test" For Read cCol = Read #hFile As Variant Print cCol i get segfault (in Write instruction) and figured out that it is about this line (in my rev #3944 gbx_stream.c:1116) if (TYPE_is_object(type)) type = T_OBJECT; and the switch branch for T_OBJECT which doesn't seem to expect a Null object (i think... i didn't look very closely to it) (why am i telling you this, you'll know it better) so i sat down and manually created my file without Writing Null as a datatype but as a string: Write #hFile, "\x0f\x00", 2 and thought that it will at least now succeed but i get an error about typemismatch (wanted standard type got Null instead). Read also seems not to expect the Null (there is no T_NULL branch in STREAM_read_type's switch) shouldn't it be possible to at least read that Null as it is a standard type? regards, tobi From gambas at ...1... Sun Jul 24 11:14:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 11:14:29 +0200 Subject: [Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once In-Reply-To: <4E2BCD35.7020609@...1887...> References: <4E2BCD35.7020609@...1887...> Message-ID: <201107241114.29996.gambas@...1...> > I can play eight sounds simultaneously, adjusting their volumes as > needed, but when I try to set the volume of the channel of the ninth > sound I receive an error saying that the channel is null (even though > the ninth sound actually starts playing at a volume of 1). > ... Sorry, it's my fault. I never noticed that the SDL_mixer used only eight channels by default. I will fix that and tell you. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 24 11:17:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 11:17:42 +0200 Subject: [Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once In-Reply-To: <201107241114.29996.gambas@...1...> References: <4E2BCD35.7020609@...1887...> <201107241114.29996.gambas@...1...> Message-ID: <201107241117.42989.gambas@...1...> > > I can play eight sounds simultaneously, adjusting their volumes as > > needed, but when I try to set the volume of the channel of the ninth > > sound I receive an error saying that the channel is null (even though > > the ninth sound actually starts playing at a volume of 1). > > ... > > Sorry, it's my fault. I never noticed that the SDL_mixer used only eight > channels by default. I will fix that and tell you. > > Regards, No, it's not my fault. I just forgot how that component works. You must define the Channels.Count property to the number of channels you need : it is eight by default, and can grow up to 32 (this is an arbitrary limit, tell me if more is needed). Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 24 11:46:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 11:46:31 +0200 Subject: [Gambas-user] Read and Write Null In-Reply-To: <4E2BCF37.7030106@...20...> References: <4E2BCF37.7030106@...20...> Message-ID: <201107241146.31663.gambas@...1...> > good morning Benoit, > this issue has kept me awake almost all the night. > if i have an uninitialized collection and want it to be written to and > then read from a file: > > Dim cCol As Collection = Null > Dim hFile As File > > hFile = Open "~/test" For Write Create > Write #hFile, cCol As Variant > Close #hFile > hFile = Open "~/test" For Read > cCol = Read #hFile As Variant > Print cCol > > i get segfault (in Write instruction) and figured out that it is about > this line (in my rev #3944 gbx_stream.c:1116) > if (TYPE_is_object(type)) type = T_OBJECT; > and the switch branch for T_OBJECT which doesn't seem to expect a Null > object (i think... i didn't look very closely to it) > (why am i telling you this, you'll know it better) > > so i sat down and manually created my file without Writing Null as a > datatype but as a string: > Write #hFile, "\x0f\x00", 2 > > and thought that it will at least now succeed but i get an error about > typemismatch (wanted standard type got Null instead). Read also seems > not to expect the Null (there is no T_NULL branch in STREAM_read_type's > switch) > > shouldn't it be possible to at least read that Null as it is a standard > type? > > regards, > tobi > Hi, The bug should be fixed in revision #3946. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Sun Jul 24 11:50:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 24 Jul 2011 05:50:37 -0400 Subject: [Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once In-Reply-To: <201107241117.42989.gambas@...1...> References: <4E2BCD35.7020609@...1887...> <201107241114.29996.gambas@...1...> <201107241117.42989.gambas@...1...> Message-ID: <4E2BEAED.9080109@...1887...> On 07/24/2011 05:17 AM, Beno?t Minisini wrote: >>> I can play eight sounds simultaneously, adjusting their volumes as >>> needed, but when I try to set the volume of the channel of the ninth >>> sound I receive an error saying that the channel is null (even though >>> the ninth sound actually starts playing at a volume of 1). >>> ... >> Sorry, it's my fault. I never noticed that the SDL_mixer used only eight >> channels by default. I will fix that and tell you. >> >> Regards, > No, it's not my fault. I just forgot how that component works. > > You must define the Channels.Count property to the number of channels you need > : it is eight by default, and can grow up to 32 (this is an arbitrary limit, > tell me if more is needed). > > Regards, > Awesome news. I'm glad 32 is arbitrary, also. I have: ' General declarations. Public Struct Effect ' Structure containing an individual sound effect's data. Sample As Sound ' Waveform data (file). Chan As Channel ' Default channel to play on. AmpCurrent As Single ' Current amplitude. AmpTarget As Single ' Target amplitude. AmpScale As Single ' Target amplitude multiplier. End Struct Public Environment[16] As Struct Effect ' Environmental sound effects. Public Sub Initialize() ' Start basic environmental sound effects. Channels.Count = 32 ' Start deep water effect. Environment[0].Sample = New Sound(GUI.basepath & "/sound/Ocean.wav") Environment[0].AmpScale = 1 Environment[0].Chan = Environment[0].Sample.Play(-1) Environment[0].Chan.Volume = 0 ' Start medium water effect. Environment[1].Sample = New Sound(GUI.basepath & "/sound/River.wav") Environment[1].AmpScale = 1 Environment[1].Chan = Environment[1].Sample.Play(-1) Environment[1].Chan.Volume = 0 ' Etc., etc., etc... End Sub It's like it doesn't listen to the Channels property. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Sun Jul 24 12:16:57 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 24 Jul 2011 12:16:57 +0200 Subject: [Gambas-user] Read and Write Null In-Reply-To: <201107241146.31663.gambas@...1...> References: <4E2BCF37.7030106@...20...> <201107241146.31663.gambas@...1...> Message-ID: <4E2BF119.9040201@...20...> On 24.07.2011 11:46, Beno?t Minisini wrote: >> good morning Benoit, >> this issue has kept me awake almost all the night. >> if i have an uninitialized collection and want it to be written to and >> then read from a file: >> >> Dim cCol As Collection = Null >> Dim hFile As File >> >> hFile = Open "~/test" For Write Create >> Write #hFile, cCol As Variant >> Close #hFile >> hFile = Open "~/test" For Read >> cCol = Read #hFile As Variant >> Print cCol >> >> i get segfault (in Write instruction) and figured out that it is about >> this line (in my rev #3944 gbx_stream.c:1116) >> if (TYPE_is_object(type)) type = T_OBJECT; >> and the switch branch for T_OBJECT which doesn't seem to expect a Null >> object (i think... i didn't look very closely to it) >> (why am i telling you this, you'll know it better) >> >> so i sat down and manually created my file without Writing Null as a >> datatype but as a string: >> Write #hFile, "\x0f\x00", 2 >> >> and thought that it will at least now succeed but i get an error about >> typemismatch (wanted standard type got Null instead). Read also seems >> not to expect the Null (there is no T_NULL branch in STREAM_read_type's >> switch) >> >> shouldn't it be possible to at least read that Null as it is a standard >> type? >> >> regards, >> tobi >> > Hi, > > The bug should be fixed in revision #3946. > > Regards, > yes, everything's fine now. regards, tobi From gambas at ...1... Sun Jul 24 14:57:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 14:57:47 +0200 Subject: [Gambas-user] =?utf-8?q?gb3=3A_gb=2Esdl=2Esound_disallows_more_th?= =?utf-8?q?an_8=09sounds/channels_at_once?= In-Reply-To: <4E2BEAED.9080109@...1887...> References: <4E2BCD35.7020609@...1887...> <201107241117.42989.gambas@...1...> <4E2BEAED.9080109@...1887...> Message-ID: <201107241457.47483.gambas@...1...> > > Awesome news. I'm glad 32 is arbitrary, also. I have: > > ' General declarations. > Public Struct Effect ' Structure containing an individual sound > effect's data. > Sample As Sound ' Waveform data (file). > Chan As Channel ' Default channel to play on. > AmpCurrent As Single ' Current amplitude. > AmpTarget As Single ' Target amplitude. > AmpScale As Single ' Target amplitude multiplier. > End Struct > Public Environment[16] As Struct Effect ' Environmental sound effects. > > Public Sub Initialize() > > ' Start basic environmental sound effects. > > Channels.Count = 32 > Sorry, I didn't notice that line. Mmm... I don't know: That value is directly sent to the SDL_mixer library, so it should work! -- Beno?t Minisini From gambas at ...1... Sun Jul 24 16:43:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 16:43:43 +0200 Subject: [Gambas-user] =?utf-8?q?gb3=3A_gb=2Esdl=2Esound_disallows_more_th?= =?utf-8?q?an_8=09sounds/channels_at_once?= In-Reply-To: <4E2BEAED.9080109@...1887...> References: <4E2BCD35.7020609@...1887...> <201107241117.42989.gambas@...1...> <4E2BEAED.9080109@...1887...> Message-ID: <201107241643.43473.gambas@...1...> > > ' General declarations. > Public Struct Effect ' Structure containing an individual sound > effect's data. > Sample As Sound ' Waveform data (file). > Chan As Channel ' Default channel to play on. > AmpCurrent As Single ' Current amplitude. > AmpTarget As Single ' Target amplitude. > AmpScale As Single ' Target amplitude multiplier. > End Struct > Public Environment[16] As Struct Effect ' Environmental sound effects. > > Public Sub Initialize() > > ' Start basic environmental sound effects. > > Channels.Count = 32 > Can you print the value of Channels.Count after having set it? Anyway it's strange : you say that the 9th sound starts playing (so it has a channel), but the Play() method returns no channel ! Otherwise, in revision #3947, I added support for fade in and fade out while playing sound: ...Sample.Play(-1, 1.5) ' Fade in during 1500 milliseconds. ..Chan.Stop(4) ' Fade out during 4000 milliseconds. Maybe you will find some use for that. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 24 16:48:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Jul 2011 16:48:41 +0200 Subject: [Gambas-user] =?utf-8?q?gb3=3A_gb=2Esdl=2Esound_disallows_more_th?= =?utf-8?q?an_8=09sounds/channels_at_once?= In-Reply-To: <201107241643.43473.gambas@...1...> References: <4E2BCD35.7020609@...1887...> <4E2BEAED.9080109@...1887...> <201107241643.43473.gambas@...1...> Message-ID: <201107241648.41452.gambas@...1...> > > Can you print the value of Channels.Count after having set it? > > Anyway it's strange : you say that the 9th sound starts playing (so it has > a channel), but the Play() method returns no channel ! > OK, by just writing the previous sentence, I found the bug. It should be fixed in revision #3948. Moreover, the maximum possible number of channels is now 64. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Sun Jul 24 22:46:42 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 24 Jul 2011 16:46:42 -0400 Subject: [Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once In-Reply-To: <201107241648.41452.gambas@...1...> References: <4E2BCD35.7020609@...1887...> <4E2BEAED.9080109@...1887...> <201107241643.43473.gambas@...1...> <201107241648.41452.gambas@...1...> Message-ID: <4E2C84B2.2080607@...1887...> On 07/24/2011 10:48 AM, Beno?t Minisini wrote: >> Can you print the value of Channels.Count after having set it? >> >> Anyway it's strange : you say that the 9th sound starts playing (so it has >> a channel), but the Play() method returns no channel ! >> > OK, by just writing the previous sentence, I found the bug. It should be fixed > in revision #3948. > > Moreover, the maximum possible number of channels is now 64. Awesome, it works great now. Thanks so much as always, and for the additional functionality (fading). -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Tue Jul 26 10:54:53 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 26 Jul 2011 11:54:53 +0300 Subject: [Gambas-user] Multiline RegExp Message-ID: <1311670493.4568.9.camel@...2493...> i have a multiline text (a text with emails) in a TextArea and i want RegExp to return the list of emails. How to do this? i use ---------------- Private sRegExp As Regexp Public Sub Form_Open() Me.Center End Public Sub btnMatch_Click() If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 2) If sRegExp.Offset = -1 Then Return txtResults.Text = sRegExp.Text End ---------------- and txtPattern.Text=(?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b but i get only one result, the first one -- Regards, Demosthenes Koptsis. From austinium at ...43... Tue Jul 26 14:26:33 2011 From: austinium at ...43... (vikram) Date: Tue, 26 Jul 2011 05:26:33 -0700 (PDT) Subject: [Gambas-user] Inbuilt function to check if a string contains a valid number Message-ID: <1311683193.37273.YahooMailNeo@...2512...> Hi, Is there an inbuilt function in Gambas 2 (2.21) to check if a string contains a valid number? Thanks, Vikram Nair From gambas at ...1... Tue Jul 26 14:31:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 26 Jul 2011 14:31:39 +0200 Subject: [Gambas-user] Inbuilt function to check if a string contains a valid number In-Reply-To: <1311683193.37273.YahooMailNeo@...2512...> References: <1311683193.37273.YahooMailNeo@...2512...> Message-ID: <201107261431.39964.gambas@...1...> > Hi, > > Is there an inbuilt function in Gambas 2 (2.21) to check if a string > contains a valid number? > > > Thanks, > Vikram Nair No, but you can do that: DIM MyNumber AS Float TRY MyNumber = Val(MyString) IF ERROR THEN PRINT "Not a valid number" In Gambas3, IsNumber() does what you want. But not in Gambas 2, beware! -- Beno?t Minisini From bbruen at ...2308... Wed Jul 27 00:34:22 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 27 Jul 2011 08:04:22 +0930 Subject: [Gambas-user] Multiline RegExp In-Reply-To: <1311670493.4568.9.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> Message-ID: <4E2F40EE.9080804@...2308...> On 26/07/11 18:24, Demosthenes Koptsis wrote: > i have a multiline text (a text with emails) in a TextArea > and i want RegExp to return the list of emails. > > How to do this? > > i use > > ---------------- > Private sRegExp As Regexp > > Public Sub Form_Open() > > Me.Center > > End > > Public Sub btnMatch_Click() > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 2) > > If sRegExp.Offset = -1 Then Return > > txtResults.Text = sRegExp.Text > > End > > ---------------- > > and txtPattern.Text=(?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > but i get only one result, the first one > > regexp only (ever) works on a line by line basis From ihaywood at ...1979... Wed Jul 27 04:45:44 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 27 Jul 2011 12:45:44 +1000 Subject: [Gambas-user] Multiline RegExp In-Reply-To: <4E2F40EE.9080804@...2308...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> Message-ID: On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > regexp only (ever) works on a line by line basis by default yes, but: http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall this makes the . cover newlines, so a regexp can span multiple lines in the string. Ian From demosthenesk at ...626... Wed Jul 27 09:34:04 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 27 Jul 2011 10:34:04 +0300 Subject: [Gambas-user] Multiline RegExp In-Reply-To: References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> Message-ID: <1311752044.24532.11.camel@...2493...> i used also Multiline http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 and DotAll http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 with this code ------------------------- ' Gambas class file Private sRegExp As Regexp Public Sub Form_Open() Me.Center End Public Sub btnMatch_Click() txtResults.Clear If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) If sRegExp.Offset = -1 Then Return txtResults.Text = sRegExp.Text End ------------------------- 1) The Subject of RegExp is: Here is an email dimos at ...146... and text continues Here is an email kostas at ...146... and text continues Here is an email petros at ...146... and text continues Here is an email paul at ...146... and text continues 2) The Pattern i use is: (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b 3) The result is only one email: dimos at ...146... and not the rest of them. 4) if i convert this pattern to grep syntax in terminal, grep gives all 4 emails. i want to implement a grep like funtcion with Gambas3 Thanks! On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > regexp only (ever) works on a line by line basis > by default yes, but: > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > this makes the . cover newlines, so a regexp can span multiple lines > in the string. > > Ian > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From Gambas at ...1950... Wed Jul 27 12:10:00 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 27 Jul 2011 12:10:00 +0200 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311752044.24532.11.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> Message-ID: <1311761400.23331.104.camel@...2150...> I hope you realise that the work you're doing may result in you infringing Apple's patent: U.S. Patent No. 5,946,647 on a "system and method for performing an action on a structure in computer-generated data" (in its complaint, Apple provides examples such as the recognition of "phone numbers, post-office addresses and dates" and the ability to perform "related actions with that data"; one example is that "the system may receive data that includes a phone number, highlight it for a user, and then, in response to a user's interaction with the highlighted text, offer the user the choice of making a phone call to the number") This brings home to me just how broken the patent system is! I hope more and more of us programmers start to realise it and do whatever we can to fight against it. I refused to submit anything for patenting at my last employer, despite their continued efforts to bribe and encourage us to patent anything and everything that could be remotely considered patentable. If you were to make your program commercially available, and offered the user the possibility to (for example) send a mail to one of the addresses you identified in the textarea, you would (according to Apple) by guilty of patent infringement. No matter that you've done all the hard work yourself, that you haven't been near any of Apple's code for doing this... [Sorry to interrupt with this slightly off-topic rant!] Kind regards, Caveat On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > i used also Multiline > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > and DotAll > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > with this code > > ------------------------- > ' Gambas class file > > Private sRegExp As Regexp > > Public Sub Form_Open() > > Me.Center > > End > > Public Sub btnMatch_Click() > > txtResults.Clear > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > If sRegExp.Offset = -1 Then Return > > txtResults.Text = sRegExp.Text > > End > ------------------------- > > 1) The Subject of RegExp is: > > Here is an email dimos at ...146... and text continues > Here is an email kostas at ...146... and text continues > Here is an email petros at ...146... and text continues > Here is an email paul at ...146... and text continues > > 2) The Pattern i use is: > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > 3) The result is only one email: > dimos at ...146... > > and not the rest of them. > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > 4 emails. i want to implement a grep like funtcion with Gambas3 > > Thanks! > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > regexp only (ever) works on a line by line basis > > by default yes, but: > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > this makes the . cover newlines, so a regexp can span multiple lines > > in the string. > > > > Ian > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Wed Jul 27 12:13:37 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 27 Jul 2011 20:13:37 +1000 Subject: [Gambas-user] Multiline RegExp In-Reply-To: <1311752044.24532.11.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> Message-ID: On Wed, Jul 27, 2011 at 5:34 PM, Demosthenes Koptsis wrote: > 2) The Pattern i use is: > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > 3) The result is only one email: > dimos at ...146... > > and not the rest of them. as you are only calling regexp once, you will only get one result, you need to set up a While..Wend loop to go through and find one, then use Right$(-(Len(sRegExp.Text)+sRegexp.Offset)) to grab the reminder of the string as search that, until the search fails. This is inefficient (as a new string is created for each search). Benoit, is it possible for Regexp.Exec to have an offset parameter, this would allow more efficient searching loops. It would then be possible to write an iterator to grab all occurances of a regexp, and make it 'easy' like in Ruby/Perl. Ian From demosthenesk at ...626... Wed Jul 27 12:48:54 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 27 Jul 2011 13:48:54 +0300 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311761400.23331.104.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311761400.23331.104.camel@...2150...> Message-ID: <1311763734.31171.7.camel@...2493...> sorry but i dont understand where is the patent problem. There are many regexp which "recognize data" such emails. So i think here is not the problem. See for example http://regexlib.com/Search.aspx?k=email&c=-1&m=-1&ps=20 If you mean the @yahoo.com emails this is an example. i can change it like user1 at ...2625... user2 at ...2625... user3 at ...2625... user4 at ...2625... Is it ok now? On Wed, 2011-07-27 at 12:10 +0200, Caveat wrote: > I hope you realise that the work you're doing may result in you > infringing Apple's patent: > > U.S. Patent No. 5,946,647 on a "system and method for performing an > action on a structure in computer-generated data" (in its complaint, > Apple provides examples such as the recognition of "phone numbers, > post-office addresses and dates" and the ability to perform "related > actions with that data"; one example is that "the system may receive > data that includes a phone number, highlight it for a user, and then, in > response to a user's interaction with the highlighted text, offer the > user the choice of making a phone call to the number") > > This brings home to me just how broken the patent system is! > I hope more and more of us programmers start to realise it and do > whatever we can to fight against it. I refused to submit anything for > patenting at my last employer, despite their continued efforts to bribe > and encourage us to patent anything and everything that could be > remotely considered patentable. > > If you were to make your program commercially available, and offered the > user the possibility to (for example) send a mail to one of the > addresses you identified in the textarea, you would (according to Apple) > by guilty of patent infringement. No matter that you've done all the > hard work yourself, that you haven't been near any of Apple's code for > doing this... > > [Sorry to interrupt with this slightly off-topic rant!] > > Kind regards, > Caveat > > > On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > > i used also Multiline > > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > > > and DotAll > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > > > with this code > > > > ------------------------- > > ' Gambas class file > > > > Private sRegExp As Regexp > > > > Public Sub Form_Open() > > > > Me.Center > > > > End > > > > Public Sub btnMatch_Click() > > > > txtResults.Clear > > > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > > > If sRegExp.Offset = -1 Then Return > > > > txtResults.Text = sRegExp.Text > > > > End > > ------------------------- > > > > 1) The Subject of RegExp is: > > > > Here is an email dimos at ...146... and text continues > > Here is an email kostas at ...146... and text continues > > Here is an email petros at ...146... and text continues > > Here is an email paul at ...146... and text continues > > > > 2) The Pattern i use is: > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > 3) The result is only one email: > > dimos at ...146... > > > > and not the rest of them. > > > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > > 4 emails. i want to implement a grep like funtcion with Gambas3 > > > > Thanks! > > > > > > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > > regexp only (ever) works on a line by line basis > > > by default yes, but: > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > > > this makes the . cover newlines, so a regexp can span multiple lines > > > in the string. > > > > > > Ian > > > > > > ------------------------------------------------------------------------------ > > > Got Input? Slashdot Needs You. > > > Take our quick survey online. Come on, we don't ask for help often. > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > http://p.sf.net/sfu/slashdot-survey > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Jul 27 12:53:47 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 27 Jul 2011 13:53:47 +0300 Subject: [Gambas-user] Multiline RegExp In-Reply-To: References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> Message-ID: <1311764027.31171.9.camel@...2493...> Thanks Ian! It would be more easy the RegExp to return an Array of results like grep returns all the matches of multiline text. On Wed, 2011-07-27 at 20:13 +1000, Ian Haywood wrote: > On Wed, Jul 27, 2011 at 5:34 PM, Demosthenes Koptsis > wrote: > > > 2) The Pattern i use is: > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > 3) The result is only one email: > > dimos at ...146... > > > > and not the rest of them. > as you are only calling regexp once, you will only get one result, you > need to set up a While..Wend loop > to go through and find one, then use > Right$(-(Len(sRegExp.Text)+sRegexp.Offset)) to grab the reminder > of the string as search that, until the search fails. > > This is inefficient (as a new string is created for each search). > Benoit, is it possible for Regexp.Exec to have an offset parameter, > this would allow more > efficient searching loops. > It would then be possible to write an iterator to grab all occurances > of a regexp, and make it 'easy' like in Ruby/Perl. > > Ian > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From Gambas at ...1950... Wed Jul 27 13:08:03 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 27 Jul 2011 13:08:03 +0200 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311763734.31171.7.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311761400.23331.104.camel@...2150...> <1311763734.31171.7.camel@...2493...> Message-ID: <1311764883.1885.2.camel@...2150...> There is no problem in your code, nor in the mail addresses you show as examples, I was merely trying to point out a problem in the patent system itself. It seems as if Apple has manged to patent the "novel idea" of recognising stuff (phone numbers, email addresses, web urls) in data, high-lighting it, and allowing a user to interact with it and perform some action on it. As you quite rightly point out, it's not exactly a new idea to go thru a chunk of data and pick out interesting patterns, nor to allow actions on those recognised patterns (just look at any modern email client). All I wanted to do was to point out just how silly the software patents are becoming and that more and more the bleedin' obvious is somehow getting recognised as a valid patent... ...and if you were to sell your program... what would you do if Apple's lawyers came knocking on your door asking for money? :-/ Kind regards, Caveat On Wed, 2011-07-27 at 13:48 +0300, Demosthenes Koptsis wrote: > sorry but i dont understand where is the patent problem. > > There are many regexp which "recognize data" such emails. > So i think here is not the problem. > See for example > http://regexlib.com/Search.aspx?k=email&c=-1&m=-1&ps=20 > > > If you mean the @yahoo.com emails this is an example. > > i can change it like > user1 at ...2625... > user2 at ...2625... > user3 at ...2625... > user4 at ...2625... > > Is it ok now? > > On Wed, 2011-07-27 at 12:10 +0200, Caveat wrote: > > I hope you realise that the work you're doing may result in you > > infringing Apple's patent: > > > > U.S. Patent No. 5,946,647 on a "system and method for performing an > > action on a structure in computer-generated data" (in its complaint, > > Apple provides examples such as the recognition of "phone numbers, > > post-office addresses and dates" and the ability to perform "related > > actions with that data"; one example is that "the system may receive > > data that includes a phone number, highlight it for a user, and then, in > > response to a user's interaction with the highlighted text, offer the > > user the choice of making a phone call to the number") > > > > This brings home to me just how broken the patent system is! > > I hope more and more of us programmers start to realise it and do > > whatever we can to fight against it. I refused to submit anything for > > patenting at my last employer, despite their continued efforts to bribe > > and encourage us to patent anything and everything that could be > > remotely considered patentable. > > > > If you were to make your program commercially available, and offered the > > user the possibility to (for example) send a mail to one of the > > addresses you identified in the textarea, you would (according to Apple) > > by guilty of patent infringement. No matter that you've done all the > > hard work yourself, that you haven't been near any of Apple's code for > > doing this... > > > > [Sorry to interrupt with this slightly off-topic rant!] > > > > Kind regards, > > Caveat > > > > > > On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > > > i used also Multiline > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > > > > > and DotAll > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > > > > > with this code > > > > > > ------------------------- > > > ' Gambas class file > > > > > > Private sRegExp As Regexp > > > > > > Public Sub Form_Open() > > > > > > Me.Center > > > > > > End > > > > > > Public Sub btnMatch_Click() > > > > > > txtResults.Clear > > > > > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > > > > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > > > > > If sRegExp.Offset = -1 Then Return > > > > > > txtResults.Text = sRegExp.Text > > > > > > End > > > ------------------------- > > > > > > 1) The Subject of RegExp is: > > > > > > Here is an email dimos at ...146... and text continues > > > Here is an email kostas at ...146... and text continues > > > Here is an email petros at ...146... and text continues > > > Here is an email paul at ...146... and text continues > > > > > > 2) The Pattern i use is: > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > > > 3) The result is only one email: > > > dimos at ...146... > > > > > > and not the rest of them. > > > > > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > > > 4 emails. i want to implement a grep like funtcion with Gambas3 > > > > > > Thanks! > > > > > > > > > > > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > > > regexp only (ever) works on a line by line basis > > > > by default yes, but: > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > > > > > this makes the . cover newlines, so a regexp can span multiple lines > > > > in the string. > > > > > > > > Ian > > > > > > > > ------------------------------------------------------------------------------ > > > > Got Input? Slashdot Needs You. > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > http://p.sf.net/sfu/slashdot-survey > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Wed Jul 27 13:19:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 27 Jul 2011 14:19:08 +0300 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311764883.1885.2.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311761400.23331.104.camel@...2150...> <1311763734.31171.7.camel@...2493...> <1311764883.1885.2.camel@...2150...> Message-ID: <1311765548.31971.1.camel@...2493...> ok. But as you say, Apple's lawyers can knock the door of anyone who uses regular expressions. Is this true? On Wed, 2011-07-27 at 13:08 +0200, Caveat wrote: > There is no problem in your code, nor in the mail addresses you show as > examples, I was merely trying to point out a problem in the patent > system itself. > > It seems as if Apple has manged to patent the "novel idea" of > recognising stuff (phone numbers, email addresses, web urls) in data, > high-lighting it, and allowing a user to interact with it and perform > some action on it. > > As you quite rightly point out, it's not exactly a new idea to go thru a > chunk of data and pick out interesting patterns, nor to allow actions on > those recognised patterns (just look at any modern email client). > > All I wanted to do was to point out just how silly the software patents > are becoming and that more and more the bleedin' obvious is somehow > getting recognised as a valid patent... > > ...and if you were to sell your program... what would you do if Apple's > lawyers came knocking on your door asking for money? :-/ > > Kind regards, > Caveat > > On Wed, 2011-07-27 at 13:48 +0300, Demosthenes Koptsis wrote: > > sorry but i dont understand where is the patent problem. > > > > There are many regexp which "recognize data" such emails. > > So i think here is not the problem. > > See for example > > http://regexlib.com/Search.aspx?k=email&c=-1&m=-1&ps=20 > > > > > > If you mean the @yahoo.com emails this is an example. > > > > i can change it like > > user1 at ...2625... > > user2 at ...2625... > > user3 at ...2625... > > user4 at ...2625... > > > > Is it ok now? > > > > On Wed, 2011-07-27 at 12:10 +0200, Caveat wrote: > > > I hope you realise that the work you're doing may result in you > > > infringing Apple's patent: > > > > > > U.S. Patent No. 5,946,647 on a "system and method for performing an > > > action on a structure in computer-generated data" (in its complaint, > > > Apple provides examples such as the recognition of "phone numbers, > > > post-office addresses and dates" and the ability to perform "related > > > actions with that data"; one example is that "the system may receive > > > data that includes a phone number, highlight it for a user, and then, in > > > response to a user's interaction with the highlighted text, offer the > > > user the choice of making a phone call to the number") > > > > > > This brings home to me just how broken the patent system is! > > > I hope more and more of us programmers start to realise it and do > > > whatever we can to fight against it. I refused to submit anything for > > > patenting at my last employer, despite their continued efforts to bribe > > > and encourage us to patent anything and everything that could be > > > remotely considered patentable. > > > > > > If you were to make your program commercially available, and offered the > > > user the possibility to (for example) send a mail to one of the > > > addresses you identified in the textarea, you would (according to Apple) > > > by guilty of patent infringement. No matter that you've done all the > > > hard work yourself, that you haven't been near any of Apple's code for > > > doing this... > > > > > > [Sorry to interrupt with this slightly off-topic rant!] > > > > > > Kind regards, > > > Caveat > > > > > > > > > On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > > > > i used also Multiline > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > > > > > > > and DotAll > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > > > > > > > with this code > > > > > > > > ------------------------- > > > > ' Gambas class file > > > > > > > > Private sRegExp As Regexp > > > > > > > > Public Sub Form_Open() > > > > > > > > Me.Center > > > > > > > > End > > > > > > > > Public Sub btnMatch_Click() > > > > > > > > txtResults.Clear > > > > > > > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > > > > > > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > > > > > > > If sRegExp.Offset = -1 Then Return > > > > > > > > txtResults.Text = sRegExp.Text > > > > > > > > End > > > > ------------------------- > > > > > > > > 1) The Subject of RegExp is: > > > > > > > > Here is an email dimos at ...146... and text continues > > > > Here is an email kostas at ...146... and text continues > > > > Here is an email petros at ...146... and text continues > > > > Here is an email paul at ...146... and text continues > > > > > > > > 2) The Pattern i use is: > > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > > > > > 3) The result is only one email: > > > > dimos at ...146... > > > > > > > > and not the rest of them. > > > > > > > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > > > > 4 emails. i want to implement a grep like funtcion with Gambas3 > > > > > > > > Thanks! > > > > > > > > > > > > > > > > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > > > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > > > > regexp only (ever) works on a line by line basis > > > > > by default yes, but: > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > > > > > > > this makes the . cover newlines, so a regexp can span multiple lines > > > > > in the string. > > > > > > > > > > Ian > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Got Input? Slashdot Needs You. > > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > > http://p.sf.net/sfu/slashdot-survey > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Got Input? Slashdot Needs You. > > > Take our quick survey online. Come on, we don't ask for help often. > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > http://p.sf.net/sfu/slashdot-survey > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From Gambas at ...1950... Wed Jul 27 13:45:15 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 27 Jul 2011 13:45:15 +0200 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311765548.31971.1.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311761400.23331.104.camel@...2150...> <1311763734.31171.7.camel@...2493...> <1311764883.1885.2.camel@...2150...> <1311765548.31971.1.camel@...2493...> Message-ID: <1311767115.1885.21.camel@...2150...> No, as far as I know they haven't managed (yet! lol) to patent the use of regular expressions. You need to read the text of the patent or my summary here: > recognising stuff (phone numbers, email addresses, web urls) in data, > > high-lighting it, and allowing a user to interact with it and perform > > some action on it. So I hope you can see it doesn't patent the use of regular expressions, and in fact you wouldn't even need to use regular expressions to infringe on the patent. But if you were to make a commercial product that looked through some data, picked out the email addresses (whether it uses regular expressions or not to achieve that is irrelevant), high-lighted them and allowed the user to perform some action on them... you *could* (in the eyes of Apple's lawyers) be infringing on their patent and get pursued legally through the courts. This is the scary state of the (IMHO) fundamentally broken software patent system that now exists. As a small developer, I know I could never afford to take on Apple's lawyers and that probably goes for most of us who develop software for a hobby and perhaps sometimes to sell. I'm not picking on you particularly, I just happened to notice that what you were describing sounded very much like the system Apple has described in its patent claim against HTC (which Apple currently appear to be winning!). You can see here for more details: http://fosspatents.blogspot.com/2011/07/itc-judge-finds-htc-in-infringement-of.html Kind regards, Caveat On Wed, 2011-07-27 at 14:19 +0300, Demosthenes Koptsis wrote: > ok. > > But as you say, Apple's lawyers can knock the door of anyone who uses > regular expressions. > > Is this true? > > On Wed, 2011-07-27 at 13:08 +0200, Caveat wrote: > > There is no problem in your code, nor in the mail addresses you show as > > examples, I was merely trying to point out a problem in the patent > > system itself. > > > > It seems as if Apple has manged to patent the "novel idea" of > > recognising stuff (phone numbers, email addresses, web urls) in data, > > high-lighting it, and allowing a user to interact with it and perform > > some action on it. > > > > As you quite rightly point out, it's not exactly a new idea to go thru a > > chunk of data and pick out interesting patterns, nor to allow actions on > > those recognised patterns (just look at any modern email client). > > > > All I wanted to do was to point out just how silly the software patents > > are becoming and that more and more the bleedin' obvious is somehow > > getting recognised as a valid patent... > > > > ...and if you were to sell your program... what would you do if Apple's > > lawyers came knocking on your door asking for money? :-/ > > > > Kind regards, > > Caveat > > > > On Wed, 2011-07-27 at 13:48 +0300, Demosthenes Koptsis wrote: > > > sorry but i dont understand where is the patent problem. > > > > > > There are many regexp which "recognize data" such emails. > > > So i think here is not the problem. > > > See for example > > > http://regexlib.com/Search.aspx?k=email&c=-1&m=-1&ps=20 > > > > > > > > > If you mean the @yahoo.com emails this is an example. > > > > > > i can change it like > > > user1 at ...2625... > > > user2 at ...2625... > > > user3 at ...2625... > > > user4 at ...2625... > > > > > > Is it ok now? > > > > > > On Wed, 2011-07-27 at 12:10 +0200, Caveat wrote: > > > > I hope you realise that the work you're doing may result in you > > > > infringing Apple's patent: > > > > > > > > U.S. Patent No. 5,946,647 on a "system and method for performing an > > > > action on a structure in computer-generated data" (in its complaint, > > > > Apple provides examples such as the recognition of "phone numbers, > > > > post-office addresses and dates" and the ability to perform "related > > > > actions with that data"; one example is that "the system may receive > > > > data that includes a phone number, highlight it for a user, and then, in > > > > response to a user's interaction with the highlighted text, offer the > > > > user the choice of making a phone call to the number") > > > > > > > > This brings home to me just how broken the patent system is! > > > > I hope more and more of us programmers start to realise it and do > > > > whatever we can to fight against it. I refused to submit anything for > > > > patenting at my last employer, despite their continued efforts to bribe > > > > and encourage us to patent anything and everything that could be > > > > remotely considered patentable. > > > > > > > > If you were to make your program commercially available, and offered the > > > > user the possibility to (for example) send a mail to one of the > > > > addresses you identified in the textarea, you would (according to Apple) > > > > by guilty of patent infringement. No matter that you've done all the > > > > hard work yourself, that you haven't been near any of Apple's code for > > > > doing this... > > > > > > > > [Sorry to interrupt with this slightly off-topic rant!] > > > > > > > > Kind regards, > > > > Caveat > > > > > > > > > > > > On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > > > > > i used also Multiline > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > > > > > > > > > and DotAll > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > > > > > > > > > with this code > > > > > > > > > > ------------------------- > > > > > ' Gambas class file > > > > > > > > > > Private sRegExp As Regexp > > > > > > > > > > Public Sub Form_Open() > > > > > > > > > > Me.Center > > > > > > > > > > End > > > > > > > > > > Public Sub btnMatch_Click() > > > > > > > > > > txtResults.Clear > > > > > > > > > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > > > > > > > > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > > > > > > > > > If sRegExp.Offset = -1 Then Return > > > > > > > > > > txtResults.Text = sRegExp.Text > > > > > > > > > > End > > > > > ------------------------- > > > > > > > > > > 1) The Subject of RegExp is: > > > > > > > > > > Here is an email dimos at ...146... and text continues > > > > > Here is an email kostas at ...146... and text continues > > > > > Here is an email petros at ...146... and text continues > > > > > Here is an email paul at ...146... and text continues > > > > > > > > > > 2) The Pattern i use is: > > > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > > > > > > > 3) The result is only one email: > > > > > dimos at ...146... > > > > > > > > > > and not the rest of them. > > > > > > > > > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > > > > > 4 emails. i want to implement a grep like funtcion with Gambas3 > > > > > > > > > > Thanks! > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > > > > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > > > > > regexp only (ever) works on a line by line basis > > > > > > by default yes, but: > > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > > > > > > > > > this makes the . cover newlines, so a regexp can span multiple lines > > > > > > in the string. > > > > > > > > > > > > Ian > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Got Input? Slashdot Needs You. > > > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > > > http://p.sf.net/sfu/slashdot-survey > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Got Input? Slashdot Needs You. > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > http://p.sf.net/sfu/slashdot-survey > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Wed Jul 27 14:09:46 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 27 Jul 2011 15:09:46 +0300 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311767115.1885.21.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311761400.23331.104.camel@...2150...> <1311763734.31171.7.camel@...2493...> <1311764883.1885.2.camel@...2150...> <1311765548.31971.1.camel@...2493...> <1311767115.1885.21.camel@...2150...> Message-ID: <1311768586.9260.12.camel@...2494...> Ahhhhh.... i see ! The regular expression and the usage of grep command does this. The grep command colorize with red the results. Also if the text is multiline returns in color only the matches of regexp. i bring here, in Gambas, the output style of grep command not for the colorize part but for the capability to return matches from a multiline subject. Also i read the patent from Google Patents http://www.google.com/patents/about?id=aFEWAAAAEBAJ&dq=U.S.+Patent +No.+5,946,647 and there it says that the data is between a server and a client machine and some other details. So i think there is no problem for colorize the result of regexp with grep or other tool. Except, if there is another patent for colorize results. i dont know. While, searching in Google patents i found some patents for regular expressions like the piped regexp which is patented! http://www.google.com/patents/about?id=hevCAAAAEBAJ&dq=regular +expression also there are some other patents for regexp, search Google patents to see. On Wed, 2011-07-27 at 13:45 +0200, Caveat wrote: > No, as far as I know they haven't managed (yet! lol) to patent the use > of regular expressions. > > You need to read the text of the patent or my summary here: > > > recognising stuff (phone numbers, email addresses, web urls) in data, > > > high-lighting it, and allowing a user to interact with it and perform > > > some action on it. > > So I hope you can see it doesn't patent the use of regular expressions, > and in fact you wouldn't even need to use regular expressions to > infringe on the patent. > > But if you were to make a commercial product that looked through some > data, picked out the email addresses (whether it uses regular > expressions or not to achieve that is irrelevant), high-lighted them and > allowed the user to perform some action on them... you *could* (in the > eyes of Apple's lawyers) be infringing on their patent and get pursued > legally through the courts. > > This is the scary state of the (IMHO) fundamentally broken software > patent system that now exists. As a small developer, I know I could > never afford to take on Apple's lawyers and that probably goes for most > of us who develop software for a hobby and perhaps sometimes to sell. > > I'm not picking on you particularly, I just happened to notice that what > you were describing sounded very much like the system Apple has > described in its patent claim against HTC (which Apple currently appear > to be winning!). You can see here for more details: > http://fosspatents.blogspot.com/2011/07/itc-judge-finds-htc-in-infringement-of.html > > Kind regards, > Caveat > > > On Wed, 2011-07-27 at 14:19 +0300, Demosthenes Koptsis wrote: > > ok. > > > > But as you say, Apple's lawyers can knock the door of anyone who uses > > regular expressions. > > > > Is this true? > > > > On Wed, 2011-07-27 at 13:08 +0200, Caveat wrote: > > > There is no problem in your code, nor in the mail addresses you show as > > > examples, I was merely trying to point out a problem in the patent > > > system itself. > > > > > > It seems as if Apple has manged to patent the "novel idea" of > > > recognising stuff (phone numbers, email addresses, web urls) in data, > > > high-lighting it, and allowing a user to interact with it and perform > > > some action on it. > > > > > > As you quite rightly point out, it's not exactly a new idea to go thru a > > > chunk of data and pick out interesting patterns, nor to allow actions on > > > those recognised patterns (just look at any modern email client). > > > > > > All I wanted to do was to point out just how silly the software patents > > > are becoming and that more and more the bleedin' obvious is somehow > > > getting recognised as a valid patent... > > > > > > ...and if you were to sell your program... what would you do if Apple's > > > lawyers came knocking on your door asking for money? :-/ > > > > > > Kind regards, > > > Caveat > > > > > > On Wed, 2011-07-27 at 13:48 +0300, Demosthenes Koptsis wrote: > > > > sorry but i dont understand where is the patent problem. > > > > > > > > There are many regexp which "recognize data" such emails. > > > > So i think here is not the problem. > > > > See for example > > > > http://regexlib.com/Search.aspx?k=email&c=-1&m=-1&ps=20 > > > > > > > > > > > > If you mean the @yahoo.com emails this is an example. > > > > > > > > i can change it like > > > > user1 at ...2625... > > > > user2 at ...2625... > > > > user3 at ...2625... > > > > user4 at ...2625... > > > > > > > > Is it ok now? > > > > > > > > On Wed, 2011-07-27 at 12:10 +0200, Caveat wrote: > > > > > I hope you realise that the work you're doing may result in you > > > > > infringing Apple's patent: > > > > > > > > > > U.S. Patent No. 5,946,647 on a "system and method for performing an > > > > > action on a structure in computer-generated data" (in its complaint, > > > > > Apple provides examples such as the recognition of "phone numbers, > > > > > post-office addresses and dates" and the ability to perform "related > > > > > actions with that data"; one example is that "the system may receive > > > > > data that includes a phone number, highlight it for a user, and then, in > > > > > response to a user's interaction with the highlighted text, offer the > > > > > user the choice of making a phone call to the number") > > > > > > > > > > This brings home to me just how broken the patent system is! > > > > > I hope more and more of us programmers start to realise it and do > > > > > whatever we can to fight against it. I refused to submit anything for > > > > > patenting at my last employer, despite their continued efforts to bribe > > > > > and encourage us to patent anything and everything that could be > > > > > remotely considered patentable. > > > > > > > > > > If you were to make your program commercially available, and offered the > > > > > user the possibility to (for example) send a mail to one of the > > > > > addresses you identified in the textarea, you would (according to Apple) > > > > > by guilty of patent infringement. No matter that you've done all the > > > > > hard work yourself, that you haven't been near any of Apple's code for > > > > > doing this... > > > > > > > > > > [Sorry to interrupt with this slightly off-topic rant!] > > > > > > > > > > Kind regards, > > > > > Caveat > > > > > > > > > > > > > > > On Wed, 2011-07-27 at 10:34 +0300, Demosthenes Koptsis wrote: > > > > > > i used also Multiline > > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/multiline?v3 > > > > > > > > > > > > and DotAll > > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall?v3 > > > > > > > > > > > > with this code > > > > > > > > > > > > ------------------------- > > > > > > ' Gambas class file > > > > > > > > > > > > Private sRegExp As Regexp > > > > > > > > > > > > Public Sub Form_Open() > > > > > > > > > > > > Me.Center > > > > > > > > > > > > End > > > > > > > > > > > > Public Sub btnMatch_Click() > > > > > > > > > > > > txtResults.Clear > > > > > > > > > > > > If IsNull(txtPattern.Text) Or IsNull(txtSubject.Text) Then Return > > > > > > > > > > > > sRegExp = New Regexp(txtSubject.Text, txtPattern.Text, 4) > > > > > > > > > > > > If sRegExp.Offset = -1 Then Return > > > > > > > > > > > > txtResults.Text = sRegExp.Text > > > > > > > > > > > > End > > > > > > ------------------------- > > > > > > > > > > > > 1) The Subject of RegExp is: > > > > > > > > > > > > Here is an email dimos at ...146... and text continues > > > > > > Here is an email kostas at ...146... and text continues > > > > > > Here is an email petros at ...146... and text continues > > > > > > Here is an email paul at ...146... and text continues > > > > > > > > > > > > 2) The Pattern i use is: > > > > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > > > > > > > > > > 3) The result is only one email: > > > > > > dimos at ...146... > > > > > > > > > > > > and not the rest of them. > > > > > > > > > > > > 4) if i convert this pattern to grep syntax in terminal, grep gives all > > > > > > 4 emails. i want to implement a grep like funtcion with Gambas3 > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, 2011-07-27 at 12:45 +1000, Ian Haywood wrote: > > > > > > > On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > > > > > > > > regexp only (ever) works on a line by line basis > > > > > > > by default yes, but: > > > > > > > http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall > > > > > > > > > > > > > > this makes the . cover newlines, so a regexp can span multiple lines > > > > > > > in the string. > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > Got Input? Slashdot Needs You. > > > > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > > > > http://p.sf.net/sfu/slashdot-survey > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Got Input? Slashdot Needs You. > > > > > Take our quick survey online. Come on, we don't ask for help often. > > > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > > > http://p.sf.net/sfu/slashdot-survey > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Got Input? Slashdot Needs You. > > > Take our quick survey online. Come on, we don't ask for help often. > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > http://p.sf.net/sfu/slashdot-survey > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From sourceforge-raindog2 at ...94... Wed Jul 27 14:19:10 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Jul 2011 08:19:10 -0400 Subject: [Gambas-user] Multiline RegExp [slightly OT] In-Reply-To: <1311767115.1885.21.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <1311765548.31971.1.camel@...2493...> <1311767115.1885.21.camel@...2150...> Message-ID: <201107270819.11025.sourceforge-raindog2@...94...> On Wednesday 27 July 2011 07:45, Caveat wrote: > But if you were to make a commercial product that looked through some > data, picked out the email addresses (whether it uses regular > expressions or not to achieve that is irrelevant), high-lighted them and > allowed the user to perform some action on them... you *could* (in the > eyes of Apple's lawyers) be infringing on their patent and get pursued > legally through the courts. The very first Unix "mail" program did exactly this -- parsing the plain- text mbox file to find a pattern indicating the start of a message, listing the messages for the user and allowing the user to select one -- and predates Apple's patent by about two decades. That they were given it is sad, but if they were to try to enforce it against someone with enough money to make it worth their while, it's likely they would lose the patent. They have many others which are more dangerous, but not as easily used to subvert a technical discussion into a political one. As for the original topic, the way I used to implement a regexp that returned a list of results back in my Gambas days was to write a function to repeatedly execute the pattern against subsets of the subject string, advancing the offset after each successful match. I wrote the gb.pcre component, and if I wrote a mass-match feature in, I've forgotten it. The only lists it returned were lists of submatches, as in if you searched for /the (q\S+) (b\S+) (f\S+)/ it would return a list containing the entire match, "quick", "brown" and "fox". Rob From Gambas at ...1950... Wed Jul 27 14:53:18 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 27 Jul 2011 14:53:18 +0200 Subject: [Gambas-user] Multiline RegExp [more OT] In-Reply-To: <201107270819.11025.sourceforge-raindog2@...94...> References: <1311670493.4568.9.camel@...2493...> <1311765548.31971.1.camel@...2493...> <1311767115.1885.21.camel@...2150...> <201107270819.11025.sourceforge-raindog2@...94...> Message-ID: <1311771198.1885.45.camel@...2150...> On Wed, 2011-07-27 at 08:19 -0400, Rob wrote: > That they were given it is sad, but if they were to try to enforce it > against someone with enough money to make it worth their while, it's > likely they would lose the patent. http://fosspatents.blogspot.com/2011/07/itc-judge-finds-htc-in-infringement-of.html Right here, it seems like HTC *IS* losing the battle against Apple over this very patent! As we all appear to agree, there's an abundance of prior art, so why the heck has the initial determination gone to Apple? Kind regards, Caveat From sourceforge-raindog2 at ...94... Wed Jul 27 16:28:45 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Jul 2011 10:28:45 -0400 Subject: [Gambas-user] Multiline RegExp [more OT] In-Reply-To: <1311771198.1885.45.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <201107270819.11025.sourceforge-raindog2@...94...> <1311771198.1885.45.camel@...2150...> Message-ID: <201107271028.45052.sourceforge-raindog2@...94...> On Wednesday 27 July 2011 08:53, Caveat wrote: > Right here, it seems like HTC *IS* losing the battle against Apple over > this very patent! As we all appear to agree, there's an abundance of > prior art, so why the heck has the initial determination gone to Apple? I don't run the list, but I'd rather have non-technical discussions take place elsewhere. Rob From Gambas at ...1950... Wed Jul 27 17:33:05 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 27 Jul 2011 17:33:05 +0200 Subject: [Gambas-user] Multiline RegExp [more OT] In-Reply-To: <201107271028.45052.sourceforge-raindog2@...94...> References: <1311670493.4568.9.camel@...2493...> <201107270819.11025.sourceforge-raindog2@...94...> <1311771198.1885.45.camel@...2150...> <201107271028.45052.sourceforge-raindog2@...94...> Message-ID: <1311780785.1885.161.camel@...2150...> Last time I looked this wasn't a mailing list dedicated exclusively to technical subjects, but a mailing list for Gambas developers to share ideas and have discussions. We're the kind of people that are most likely to be at risk from the crazy software patents situation. I also added [OT] to the subject... to suggest it's Off Topic... but not so far off topic that it shouldn't be of a great deal of concern to all of us (Gambas) developers. Regards, Caveat On Wed, 2011-07-27 at 10:28 -0400, Rob wrote: > On Wednesday 27 July 2011 08:53, Caveat wrote: > > Right here, it seems like HTC *IS* losing the battle against Apple over > > this very patent! As we all appear to agree, there's an abundance of > > prior art, so why the heck has the initial determination gone to Apple? > > I don't run the list, but I'd rather have non-technical discussions take > place elsewhere. > > Rob > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Wed Jul 27 22:11:21 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 27 Jul 2011 16:11:21 -0400 Subject: [Gambas-user] Multiline RegExp [more OT] In-Reply-To: <1311780785.1885.161.camel@...2150...> References: <1311670493.4568.9.camel@...2493...> <201107270819.11025.sourceforge-raindog2@...94...> <1311771198.1885.45.camel@...2150...> <201107271028.45052.sourceforge-raindog2@...94...> <1311780785.1885.161.camel@...2150...> Message-ID: <4E3070E9.4020502@...1887...> On 07/27/2011 11:33 AM, Caveat wrote: > Last time I looked this wasn't a mailing list dedicated exclusively to > technical subjects, but a mailing list for Gambas developers to share > ideas and have discussions. We're the kind of people that are most > likely to be at risk from the crazy software patents situation. > > I also added [OT] to the subject... to suggest it's Off Topic... > but not so far off topic that it shouldn't be of a great deal of concern > to all of us (Gambas) developers. Agreed. I think any company that is against software patents should jointly write a letter to Congress stating that if software patents aren't repealed in one year they're pulling out of the US market completely. Would be interesting to see the government's reaction if Google stopped doing business here. The exploitation and abuse of software patents is getting so crazy now they even recently ran a story on NPR (National Public Radio) about it: http://www.thisamericanlife.org/radio-archives/episode/441/when-patents-attack -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ea7dfh at ...2382... Wed Jul 27 22:46:21 2011 From: ea7dfh at ...2382... (Jesus) Date: Wed, 27 Jul 2011 22:46:21 +0200 Subject: [Gambas-user] Multiline RegExp In-Reply-To: <1311764027.31171.9.camel@...2493...> References: <1311670493.4568.9.camel@...2493...> <4E2F40EE.9080804@...2308...> <1311752044.24532.11.camel@...2493...> <1311764027.31171.9.camel@...2493...> Message-ID: <4E30791D.40103@...2382...> El 27/07/11 12:53, Demosthenes Koptsis escribi?: > Thanks Ian! > > It would be more easy the RegExp to return an Array of results like grep > returns all the matches of multiline text. > > > On Wed, 2011-07-27 at 20:13 +1000, Ian Haywood wrote: >> On Wed, Jul 27, 2011 at 5:34 PM, Demosthenes Koptsis >> wrote: >> >>> 2) The Pattern i use is: >>> (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b >>> >>> 3) The result is only one email: >>> dimos at ...146... >>> >>> and not the rest of them. If I am not wrong, it would be possible by using .RegexpSubmatches virtual class. It returns an array of sub-matches against your pattern on a given subject. The only thing you must do is to enclose your entire regexp between parenthesis. By the way, I didn't test it. Regards -- Jesus From kevinfishburne at ...1887... Thu Jul 28 04:22:15 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 27 Jul 2011 22:22:15 -0400 Subject: [Gambas-user] OpenGL quaestion. In-Reply-To: References: Message-ID: <4E30C7D7.3020501@...1887...> On 06/12/2011 03:50 PM, Tomek wrote: > I've ported around 20 OpenGl tutorials already and you can find them on gambasforum.com. gambasforum.com has been moved to whiteislandsoftware.com. I found all the OpenGL examples here: http://whiteislandsoftware.com/forum/index.php?page=topicview&type=misc&id=tutorial%2Fopengl-tutorials&keep_session=1211444680 but the downloads link to zero-length files. Are these projects still available somewhere? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Thu Jul 28 18:47:53 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Jul 2011 18:47:53 +0200 Subject: [Gambas-user] OpenGL question. In-Reply-To: <4E30C7D7.3020501@...1887...> References: <4E30C7D7.3020501@...1887...> Message-ID: <1311871674.2778.7.camel@...2150...> Hi Kevin Seem to be still some tutorials available here: http://whiteislandsoftware.com/forum/index.php?page=topicview&id=tutorial%2Fopengl-tutorials Is it perhaps barfing on the session or something? I just d/l'd a few of them, so if you still have trouble give me a shout and I'll stick them up on my website for you to rip directly. Regards, Caveat On Wed, 2011-07-27 at 22:22 -0400, Kevin Fishburne wrote: > On 06/12/2011 03:50 PM, Tomek wrote: > > I've ported around 20 OpenGl tutorials already and you can find them on gambasforum.com. > > gambasforum.com has been moved to whiteislandsoftware.com. I found all > the OpenGL examples here: > > http://whiteislandsoftware.com/forum/index.php?page=topicview&type=misc&id=tutorial%2Fopengl-tutorials&keep_session=1211444680 > > > but the downloads link to zero-length files. Are these projects still > available somewhere? > From Gambas at ...1950... Thu Jul 28 18:54:10 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Jul 2011 18:54:10 +0200 Subject: [Gambas-user] OpenGL question. In-Reply-To: <1311871674.2778.7.camel@...2150...> References: <4E30C7D7.3020501@...1887...> <1311871674.2778.7.camel@...2150...> Message-ID: <1311872050.2778.8.camel@...2150...> Oh no, the projects are all there, but they come down as zero-length still. Damn! Sorry... On Thu, 2011-07-28 at 18:47 +0200, Caveat wrote: > Hi Kevin > Seem to be still some tutorials available here: > http://whiteislandsoftware.com/forum/index.php?page=topicview&id=tutorial%2Fopengl-tutorials > > Is it perhaps barfing on the session or something? > > I just d/l'd a few of them, so if you still have trouble give me a shout > and I'll stick them up on my website for you to rip directly. > > Regards, > Caveat > > On Wed, 2011-07-27 at 22:22 -0400, Kevin Fishburne wrote: > > On 06/12/2011 03:50 PM, Tomek wrote: > > > I've ported around 20 OpenGl tutorials already and you can find them on gambasforum.com. > > > > gambasforum.com has been moved to whiteislandsoftware.com. I found all > > the OpenGL examples here: > > > > http://whiteislandsoftware.com/forum/index.php?page=topicview&type=misc&id=tutorial%2Fopengl-tutorials&keep_session=1211444680 > > > > > > but the downloads link to zero-length files. Are these projects still > > available somewhere? > > > From math.eber at ...221... Thu Jul 28 21:26:15 2011 From: math.eber at ...221... (Matti) Date: Thu, 28 Jul 2011 21:26:15 +0200 Subject: [Gambas-user] another make error Message-ID: <4E31B7D7.3030008@...221...> I updated from SUSE 11.2 to 11.4, and had to start from zero again (Gambas3, svn, qt4). 'configure' ends with the message: || || THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.gtk || which is ok for me. 'make' terminates with the following errors in gb.db.odbc: Making all in gb.db.odbc make[2]: Entering directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make all-recursive make[3]: Entering directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' Making all in src make[4]: Entering directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.h:27:0, from main.c:52: ../gambas.h:55:0: warning: "EXPORT" redefined /usr/include/iodbcunix.h:97:0: note: this is the location of the previous definition main.c: In function ?table_init?: main.c:1575:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in this function) main.c:1575:26: note: each undeclared identifier is reported only once for each function it appears in main.c:1578:8: error: ?SQLColumns_SQL_DATA_TYPE? undeclared (first use in this function) main.c:1586:8: error: ?SQLColumns_COLUMN_SIZE? undeclared (first use in this function) main.c: In function ?table_index?: main.c:1693:8: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in this function) main.c: In function ?table_exist?: main.c:1865:25: error: ?SQLTables_TABLE_NAME? undeclared (first use in this function) main.c:1867:25: error: ?SQLTables_TABLE_TYPE? undeclared (first use in this function) main.c:1869:25: error: ?SQLTables_REMARKS? undeclared (first use in this function) main.c: In function ?table_list?: main.c:1950:25: error: ?SQLTables_TABLE_NAME? undeclared (first use in this function) main.c:1952:25: error: ?SQLTables_TABLE_TYPE? undeclared (first use in this function) main.c:1954:25: error: ?SQLTables_REMARKS? undeclared (first use in this function) main.c: In function ?field_exist?: main.c:2346:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in this function) main.c: In function ?field_list?: main.c:2434:8: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in this function) main.c: In function ?field_info?: main.c:2549:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in this function) main.c:2554:4: error: ?SQLColumns_SQL_DATA_TYPE? undeclared (first use in this function) main.c:2555:4: error: ?SQLColumns_COLUMN_SIZE? undeclared (first use in this function) make[4]: *** [main.lo] Fehler 1 make[4]: Leaving directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/Platte2/Downloads/gambas3/3952/trunk' make: *** [all] Fehler 2 Any ideas what to do now? Btw: Installing the required packages for Gambas is really annoying. It took me two evenings and a lot of 'reconf-all' and 'configure' to find out what was missing and how to install it. Has someone of you found a way to automate the installation of the requirements? Regards Matti From kevinfishburne at ...1887... Thu Jul 28 22:37:26 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 28 Jul 2011 16:37:26 -0400 Subject: [Gambas-user] OpenGL question. In-Reply-To: <1311872050.2778.8.camel@...2150...> References: <4E30C7D7.3020501@...1887...> <1311871674.2778.7.camel@...2150...> <1311872050.2778.8.camel@...2150...> Message-ID: <4E31C886.20202@...1887...> On 07/28/2011 12:54 PM, Caveat wrote: > Oh no, the projects are all there, but they come down as zero-length > still. > > Damn! Sorry... > Heh heh, no problem. I guess when the forum database was transferred to the new domain it got f-ed up. Too bad for me, as I can't find these examples anywhere. I'm currently using examples from random other languages, which isn't ideal but better than nothing. OpenGL's kinda crazy. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Fri Jul 29 01:30:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 29 Jul 2011 01:30:01 +0200 Subject: [Gambas-user] another make error In-Reply-To: <4E31B7D7.3030008@...221...> References: <4E31B7D7.3030008@...221...> Message-ID: <201107290130.01444.gambas@...1...> > I updated from SUSE 11.2 to 11.4, and had to start from zero again > (Gambas3, svn, qt4). > > 'configure' ends with the message: > || THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.gtk > > which is ok for me. > > 'make' terminates with the following errors in gb.db.odbc: > Making all in gb.db.odbc > make[2]: Entering directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make all-recursive > make[3]: Entering directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' Making all in src > make[4]: Entering directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc/src' /bin/sh ../libtool > --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD > -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from main.h:27:0, > from main.c:52: > ../gambas.h:55:0: warning: "EXPORT" redefined > /usr/include/iodbcunix.h:97:0: note: this is the location of the previous > definition main.c: In function ?table_init?: > main.c:1575:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in > this function) > main.c:1575:26: note: each undeclared identifier is reported only once for > each function it appears in > main.c:1578:8: error: ?SQLColumns_SQL_DATA_TYPE? undeclared (first use in > this function) > main.c:1586:8: error: ?SQLColumns_COLUMN_SIZE? undeclared (first use in > this function) > main.c: In function ?table_index?: > main.c:1693:8: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in > this function) > main.c: In function ?table_exist?: > main.c:1865:25: error: ?SQLTables_TABLE_NAME? undeclared (first use in this > function) > main.c:1867:25: error: ?SQLTables_TABLE_TYPE? undeclared (first use in this > function) > main.c:1869:25: error: ?SQLTables_REMARKS? undeclared (first use in this > function) main.c: In function ?table_list?: > main.c:1950:25: error: ?SQLTables_TABLE_NAME? undeclared (first use in this > function) > main.c:1952:25: error: ?SQLTables_TABLE_TYPE? undeclared (first use in this > function) > main.c:1954:25: error: ?SQLTables_REMARKS? undeclared (first use in this > function) main.c: In function ?field_exist?: > main.c:2346:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in > this function) > main.c: In function ?field_list?: > main.c:2434:8: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in > this function) > main.c: In function ?field_info?: > main.c:2549:26: error: ?SQLColumns_COLUMN_NAME? undeclared (first use in > this function) > main.c:2554:4: error: ?SQLColumns_SQL_DATA_TYPE? undeclared (first use in > this function) > main.c:2555:4: error: ?SQLColumns_COLUMN_SIZE? undeclared (first use in > this function) > make[4]: *** [main.lo] Fehler 1 > make[4]: Leaving directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc/src' make[3]: *** > [all-recursive] Fehler 1 > make[3]: Leaving directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make[2]: *** [all] > Fehler 2 > make[2]: Leaving directory > `/Platte2/Downloads/gambas3/3952/trunk/gb.db.odbc' make[1]: *** > [all-recursive] Fehler 1 > make[1]: Leaving directory `/Platte2/Downloads/gambas3/3952/trunk' > make: *** [all] Fehler 2 > > Any ideas what to do now? > > Btw: Installing the required packages for Gambas is really annoying. It > took me two evenings and a lot of 'reconf-all' and 'configure' to find out > what was missing and how to install it. > Has someone of you found a way to automate the installation of the > requirements? > > Regards > Matti > Can you send me the contents of /usr/include/sqlext.h ? -- Beno?t Minisini From kevinfishburne at ...1887... Fri Jul 29 05:12:03 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 28 Jul 2011 23:12:03 -0400 Subject: [Gambas-user] gb3: gb.opengl, how to bind a texture Message-ID: <4E322503.3000605@...1887...> I'm using gb.sdl and gb.opengl. I load an image into RAM like this: Public tTest As Image tTest = Image.Load("test.png") and want to upload it to video memory with this: Gl.BindTexture(Gl.GL_TEXTURE_2D, id) How do I obtain an ID (id) from the image loaded in RAM? From what I've read, you need to load the image as an SDL surface, then use a property of that surface to obtain the "handle" which is then passed to OpenGL via BindTexture. I don't think the current SDL implementation supports creating surfaces, and other than a pointer (tTest.Data) there appears to be no property that returns the number required byBindTexture. So far the OpenGl tutorials I've been reading are pretty straightforward, but I can't get past this. tommyline, if you're out there please hook me up with your example apps which are dead on whiteislandsoftware.com. :/ -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From math.eber at ...221... Fri Jul 29 07:25:28 2011 From: math.eber at ...221... (Matti) Date: Fri, 29 Jul 2011 07:25:28 +0200 Subject: [Gambas-user] another make error In-Reply-To: <201107290130.01444.gambas@...1...> References: <4E31B7D7.3030008@...221...> <201107290130.01444.gambas@...1...> Message-ID: <4E324448.2070502@...221...> Here it is. Am 29.07.2011 01:30, schrieb Beno?t Minisini: > > Can you send me the contents of /usr/include/sqlext.h ? > -------------- next part -------------- A non-text attachment was scrubbed... Name: sqlext.h Type: text/x-chdr Size: 70705 bytes Desc: not available URL: From and.bertini at ...626... Fri Jul 29 10:09:51 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Fri, 29 Jul 2011 10:09:51 +0200 Subject: [Gambas-user] Mime types Message-ID: Actually g3 does not support all the mime types' formats. text/plain ..yes text/html...yes i need info about these files: .zip office files libre office files thx Andrea BERTINI Rome-Italy From and.bertini at ...626... Fri Jul 29 10:12:53 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Fri, 29 Jul 2011 10:12:53 +0200 Subject: [Gambas-user] Code writing Message-ID: I use g3. is there the solution to write code of a single command on few lines? In vb i can write in this way: function (..........) code.......................... _ code Andrea BERTINI Rome-Italy From and.bertini at ...626... Fri Jul 29 13:59:49 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Fri, 29 Jul 2011 13:59:49 +0200 Subject: [Gambas-user] Future email ehnaced control Message-ID: We can send email but not to receive. Do you plan to enhance actual control? Thx Andrea BERTINI Rome-Italy From fabianfloresvadell at ...626... Fri Jul 29 21:43:26 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Fri, 29 Jul 2011 16:43:26 -0300 Subject: [Gambas-user] possible bug Message-ID: Hi everybody. I get the following message error: "This application has raised an unexpected error and must abort. [6] Type mismatch: wanted FEditor, got FForm instead. CComponent.MustScan.1109" >From the Gambas Editor seems obvious to me when I want to write the code in the attached project. Someone could check it? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -------------- next part -------------- A non-text attachment was scrubbed... Name: TestFormInheritsFromAnotherForm.tar.gz Type: application/x-gzip Size: 5216 bytes Desc: not available URL: From fabianfloresvadell at ...626... Fri Jul 29 21:45:42 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Fri, 29 Jul 2011 16:45:42 -0300 Subject: [Gambas-user] Mime types In-Reply-To: References: Message-ID: 2011/7/29 Andrea Bertini : > Actually g3 does not support all the mime types' formats. > > text/plain ..yes > text/html...yes > > i need info about these files: > .zip > office files > libre office files > > thx I think than you needs to use the File command -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From jussi.lahtinen at ...626... Fri Jul 29 21:51:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 29 Jul 2011 22:51:20 +0300 Subject: [Gambas-user] possible bug In-Reply-To: References: Message-ID: Confirmed with Gambas 3 rev 3952 @ Ubuntu 11.04 64bit. Jussi 2011/7/29 Fabi?n Flores Vadell > Hi everybody. > > I get the following message error: > > > "This application has raised an unexpected error and must abort. > > [6] Type mismatch: wanted FEditor, got FForm instead. > > CComponent.MustScan.1109" > > > >From the Gambas Editor seems obvious to me > > > when I want to write the code in the attached project. > > Someone could check it? > > -- > Fabi?n Flores Vadell > www.comoprogramarcongambas.blogspot.com > www.speedbooksargentina.blogspot.com > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Fri Jul 29 23:31:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 29 Jul 2011 23:31:04 +0200 Subject: [Gambas-user] another make error In-Reply-To: <4E324448.2070502@...221...> References: <4E31B7D7.3030008@...221...> <201107290130.01444.gambas@...1...> <4E324448.2070502@...221...> Message-ID: <201107292331.04757.gambas@...1...> > Here it is. > > Am 29.07.2011 01:30, schrieb Beno?t Minisini: > > Can you send me the contents of /usr/include/sqlext.h ? Mmm. Your sqlext.h is completely different from mine. Are there different ODBC libraries on Linux? -- Beno?t Minisini From kevinfishburne at ...1887... Fri Jul 29 23:37:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 29 Jul 2011 17:37:12 -0400 Subject: [Gambas-user] gb3 OpenGL example applications Message-ID: <4E332808.9070705@...1887...> Caveat was kind enough to provide me with a link to the OpenGL examples. I went through them all and converted them to gb3, cleaned up the code and corrected some bugs. They all work now in gb3 except for one, which I deleted. You can find them here: http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From fabianfloresvadell at ...626... Sat Jul 30 01:19:07 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Fri, 29 Jul 2011 20:19:07 -0300 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: <4E332808.9070705@...1887...> References: <4E332808.9070705@...1887...> Message-ID: 2011/7/29 Kevin Fishburne : > Caveat was kind enough to provide me with a link to the OpenGL examples. > I went through them all and converted them to gb3, cleaned up the code > and corrected some bugs. They all work now in gb3 except for one, which > I deleted. You can find them here: > > http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz Very nice Kevin, and so useful of course. I found that the project 19_ParticleEngine give an error: 88- colors[p - 1, i] = Val(rgb) I replace that line with: colors[p - 1, i] = Val(Replace(rgb, ".", ",")) because decimal sign in my system is "," -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sat Jul 30 01:20:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 01:20:25 +0200 Subject: [Gambas-user] Mime types In-Reply-To: References: Message-ID: <201107300120.25226.gambas@...1...> > Actually g3 does not support all the mime types' formats. > > text/plain ..yes > text/html...yes > > i need info about these files: > .zip > office files > libre office files > > thx > > Andrea BERTINI > Rome-Italy Hi, I added support for any mime type and any charset in revision #3954. Can you check that and tell me if it works for you? Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 30 01:22:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 01:22:48 +0200 Subject: [Gambas-user] Future email ehnaced control In-Reply-To: References: Message-ID: <201107300122.48051.gambas@...1...> > We can send email but not to receive. Do you plan to enhance actual > control? > > Thx > > > Andrea BERTINI > Rome-Italy You mean a POP3 component plus a MIME messages component ? Something to be done for sure. It can even be written in Gambas I think. But some routines must be written in C (base64...) so that the mail contents can be decoded efficiently. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 30 01:26:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 01:26:51 +0200 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: References: <4E332808.9070705@...1887...> Message-ID: <201107300126.51965.gambas@...1...> > 2011/7/29 Kevin Fishburne : > > Caveat was kind enough to provide me with a link to the OpenGL examples. > > I went through them all and converted them to gb3, cleaned up the code > > and corrected some bugs. They all work now in gb3 except for one, which > > I deleted. You can find them here: > > > > http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz > > Very nice Kevin, and so useful of course. > > I found that the project 19_ParticleEngine give an error: > > 88- colors[p - 1, i] = Val(rgb) > > I replace that line with: > > colors[p - 1, i] = Val(Replace(rgb, ".", ",")) > > because decimal sign in my system is "," No, you must write: colors[p - 1, i] = CFloat(Trim(rgb)) You cannot decide the localization of the system where a program runs! -- Beno?t Minisini From gambas at ...1... Sat Jul 30 01:29:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 01:29:32 +0200 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: <201107300126.51965.gambas@...1...> References: <4E332808.9070705@...1887...> <201107300126.51965.gambas@...1...> Message-ID: <201107300129.32258.gambas@...1...> > > 2011/7/29 Kevin Fishburne : > > > Caveat was kind enough to provide me with a link to the OpenGL > > > examples. I went through them all and converted them to gb3, cleaned > > > up the code and corrected some bugs. They all work now in gb3 except > > > for one, which I deleted. You can find them here: > > > > > > http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz > > > > Very nice Kevin, and so useful of course. ...and yes, very good idea. I will try to merge all these little projects into a big Gambas OpenGL example. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 30 01:29:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 01:29:38 +0200 Subject: [Gambas-user] possible bug In-Reply-To: References: Message-ID: <201107300129.38548.gambas@...1...> > Hi everybody. > > I get the following message error: > > > "This application has raised an unexpected error and must abort. > > [6] Type mismatch: wanted FEditor, got FForm instead. > > CComponent.MustScan.1109" > > >From the Gambas Editor seems obvious to me > > when I want to write the code in the attached project. > > Someone could check it? It should be fixed in revision #3954. -- Beno?t Minisini From kevinfishburne at ...1887... Sat Jul 30 01:38:40 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 29 Jul 2011 19:38:40 -0400 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: <201107300129.32258.gambas@...1...> References: <4E332808.9070705@...1887...> <201107300126.51965.gambas@...1...> <201107300129.32258.gambas@...1...> Message-ID: <4E334480.2010706@...1887...> On 07/29/2011 07:29 PM, Beno?t Minisini wrote: >>> 2011/7/29 Kevin Fishburne: >>>> Caveat was kind enough to provide me with a link to the OpenGL >>>> examples. I went through them all and converted them to gb3, cleaned >>>> up the code and corrected some bugs. They all work now in gb3 except >>>> for one, which I deleted. You can find them here: >>>> >>>> http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz >>> Very nice Kevin, and so useful of course. > ...and yes, very good idea. I will try to merge all these little projects into > a big Gambas OpenGL example. > > Regards, > Sweet, thanks everyone. Glad I could be helpful for once since I ask so many questions on here. :) I'll fix the line in 19_ParticleEngine so it uses "colors[p - 1, i] = CFloat(Trim(rgb))" and put the new archive up. I just figured out how to load an image, map it to a quad and control how it's rendered. The adrenaline I'm feeling anticipating the increase in frame rate of my game is incredible! Ahhhh. Sometimes programming is awesome. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Jul 30 01:41:55 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 29 Jul 2011 19:41:55 -0400 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: <4E334480.2010706@...1887...> References: <4E332808.9070705@...1887...> <201107300126.51965.gambas@...1...> <201107300129.32258.gambas@...1...> <4E334480.2010706@...1887...> Message-ID: <4E334543.90707@...1887...> On 07/29/2011 07:38 PM, Kevin Fishburne wrote: > Sweet, thanks everyone. Glad I could be helpful for once since I ask so > many questions on here. :) I'll fix the line in 19_ParticleEngine so it > uses "colors[p - 1, i] = CFloat(Trim(rgb))" and put the new archive up. Fixed the line, tested the application and updated the archive on the web site. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Jul 30 06:19:41 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Jul 2011 00:19:41 -0400 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture Message-ID: <4E33865D.50503@...1887...> I've been researching this for hours and nothing I try works. The image used for the texture has an alpha channel, but it is displayed as black instead of transparent. I'm starting to think that the line: Gl.TexImage2D(t1) isn't passing the presence of an alpha channel to OpenGL, but that's just a guess. Normally you specify the image format there, but those parameters aren't supported yet in the gb3 implementation. The project is attached. You can move the little wizard around with the ASDW keys and rotate with the QE keys. Any help appreciated...I'm going crazy and am calling it quits for the night! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_opengl_texture.tar.gz Type: application/x-gzip Size: 14914 bytes Desc: not available URL: From math.eber at ...221... Sat Jul 30 13:22:16 2011 From: math.eber at ...221... (Matti) Date: Sat, 30 Jul 2011 13:22:16 +0200 Subject: [Gambas-user] another make error In-Reply-To: <201107292331.04757.gambas@...1...> References: <4E31B7D7.3030008@...221...> <201107290130.01444.gambas@...1...> <4E324448.2070502@...221...> <201107292331.04757.gambas@...1...> Message-ID: <4E33E968.1080504@...221...> Maybe there are different versions, maybe it was my fault. I had a package 'libiodbc-devel' installed and replaced it by 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. Instead, I have an error about CDial_moc.cpp now. Will see what I can do... Am 29.07.2011 23:31, schrieb Beno?t Minisini: >> Here it is. >> >> Am 29.07.2011 01:30, schrieb Beno?t Minisini: >>> Can you send me the contents of /usr/include/sqlext.h ? > > Mmm. Your sqlext.h is completely different from mine. Are there different ODBC > libraries on Linux? > From gambas at ...1... Sat Jul 30 13:41:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 13:41:51 +0200 Subject: [Gambas-user] another make error In-Reply-To: <4E33E968.1080504@...221...> References: <4E31B7D7.3030008@...221...> <201107292331.04757.gambas@...1...> <4E33E968.1080504@...221...> Message-ID: <201107301341.51594.gambas@...1...> > Maybe there are different versions, maybe it was my fault. > I had a package 'libiodbc-devel' installed and replaced it by > 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. > How could two different libraries have the two same non-compatible include files? Pfff... > Instead, I have an error about CDial_moc.cpp now. > Will see what I can do... > "make clean" to clean up the compilation before doing a "make" again? -- Beno?t Minisini From math.eber at ...221... Sat Jul 30 15:21:02 2011 From: math.eber at ...221... (Matti) Date: Sat, 30 Jul 2011 15:21:02 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 Message-ID: <4E34053E.1060608@...221...> Installing the requirements, I run from one trouble into another, it's horrible. Right now, 'make' complains about a missing file '-ljscore'. I found a mail from Paolo in this list, but the link to his "Extended" repo of 11.4 doesn't work. Then I downloaded libqt4-4.7.3-8.1.i586.rpm, but this won't install because of a wrong version of libstdc++.so.6. Downloaded libstdc++46-4.6.1_20110701-2.10.i586.rpm, but this is in conflict with something else, and so on... Has anyone of you fixed the '-ljscore' problem and can give me a hint? Thanks Matti From and.bertini at ...626... Sat Jul 30 16:36:07 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 30 Jul 2011 16:36:07 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 In-Reply-To: References: Message-ID: yes, of course Andrea Bertini In data 30 luglio 2011 alle ore 06:19:50, ha scritto: > 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..." From and.bertini at ...626... Sat Jul 30 16:39:12 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 30 Jul 2011 16:39:12 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 In-Reply-To: References: Message-ID: fantastic, i will wait for this new component. Look in gambas-it.org for component grid.box by milio, ciao Andrea Bertini In data 30 luglio 2011 alle ore 06:19:50, ha scritto: > Hi, > I added support for any mime type and any charset in revision #3954. > Can you check that and tell me if it works for you? > Regards, > From and.bertini at ...626... Sat Jul 30 16:53:03 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 30 Jul 2011 16:53:03 +0200 Subject: [Gambas-user] Possible bug in g3 ide Message-ID: I can report a bug g3: in some cases if you close the program and reopen the program, some controls (buttons, panels) are missing from the form, changing their size and location. Andrea BERTINI Rome-Italy From gambas.fr at ...626... Sat Jul 30 17:46:55 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 30 Jul 2011 17:46:55 +0200 Subject: [Gambas-user] Future email ehnaced control In-Reply-To: <201107300122.48051.gambas@...1...> References: <201107300122.48051.gambas@...1...> Message-ID: Le 30 juillet 2011 01:22, Beno?t Minisini a ?crit : >> We can send email but not to receive. Do you plan to enhance actual >> control? >> >> Thx >> >> >> Andrea BERTINI >> Rome-Italy > > You mean a POP3 component plus a MIME messages component ? Something to be > done for sure. > > It can even be written in Gambas I think. But some routines must be written in > C (base64...) so that the mail contents can be decoded efficiently. in the past i've used the gb.xml routine for base64 > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Got Input? ? Slashdot Needs You. > Take our quick survey online. ?Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Jul 30 18:15:00 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 30 Jul 2011 18:15:00 +0200 Subject: [Gambas-user] Code writing In-Reply-To: References: Message-ID: 2011/7/29 Andrea Bertini : > I use g3. is there the solution to write code of a single command on few > lines? > > In vb i can write in this way: > > function (..........) > code.......................... _ > ? ? ? ? code yes you can break a line after a symbol, a ", a comma function toto(titi as string, tata as integer, toto as float) as integer > > Andrea BERTINI > Rome-Italy > ------------------------------------------------------------------------------ > Got Input? ? Slashdot Needs You. > Take our quick survey online. ?Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From lordheavym at ...626... Sat Jul 30 18:57:08 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 30 Jul 2011 18:57:08 +0200 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <4E33865D.50503@...1887...> References: <4E33865D.50503@...1887...> Message-ID: <1541455.I7YhzizDA3@...2592...> Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : > I've been researching this for hours and nothing I try works. The image > used for the texture has an alpha channel, but it is displayed as black > instead of transparent. I'm starting to think that the line: > > Gl.TexImage2D(t1) > > isn't passing the presence of an alpha channel to OpenGL, but that's > just a guess. Normally you specify the image format there, but those > parameters aren't supported yet in the gb3 implementation. > > The project is attached. You can move the little wizard around with the > ASDW keys and rotate with the QE keys. Any help appreciated...I'm going > crazy and am calling it quits for the night This is what i do in the sdl component to get alpha blending: glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); So it should be in gambas3 code: Gl.Enable(Gl.GL_BLEND) Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) ++ From jussi.lahtinen at ...626... Sat Jul 30 19:43:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 30 Jul 2011 20:43:11 +0300 Subject: [Gambas-user] Possible bug in g3 ide In-Reply-To: References: Message-ID: Operating system? Revision? How to reproduce this bug? Can you attach project to demonstrate this? Jussi On Sat, Jul 30, 2011 at 17:53, Andrea Bertini wrote: > I can report a bug g3: in some cases if you close the program and reopen > the > program, some controls (buttons, panels) are missing from the form, > changing their > size and location. > > > Andrea BERTINI > Rome-Italy > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sat Jul 30 21:07:28 2011 From: ea7dfh at ...2382... (Jesus) Date: Sat, 30 Jul 2011 21:07:28 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E34053E.1060608@...221...> References: <4E34053E.1060608@...221...> Message-ID: <4E345670.3080905@...2382...> Sorry for the noise, but it is just the reason why I've dropped openSuse definitely some years ago... I'm far more comfortable with debian based distros. Yeah, I know it doesn't help you at all, sorry but I can't resist! Good luck, dude -- Jesus Guardon El 30/07/11 15:21, Matti escribi?: > Installing the requirements, I run from one trouble into another, it's horrible. > > Right now, 'make' complains about a missing file '-ljscore'. > > I found a mail from Paolo in this list, but the link to his "Extended" repo of > 11.4 doesn't work. > Then I downloaded libqt4-4.7.3-8.1.i586.rpm, but this won't install because of a > wrong version of libstdc++.so.6. Downloaded > libstdc++46-4.6.1_20110701-2.10.i586.rpm, but this is in conflict with something > else, and so on... > > Has anyone of you fixed the '-ljscore' problem and can give me a hint? > > Thanks > Matti > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Sat Jul 30 22:26:59 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Jul 2011 16:26:59 -0400 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <1541455.I7YhzizDA3@...2592...> References: <4E33865D.50503@...1887...> <1541455.I7YhzizDA3@...2592...> Message-ID: <4E346913.9090209@...1887...> On 07/30/2011 12:57 PM, Laurent Carlier wrote: > Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : >> I've been researching this for hours and nothing I try works. The image >> used for the texture has an alpha channel, but it is displayed as black >> instead of transparent. I'm starting to think that the line: >> >> Gl.TexImage2D(t1) >> >> isn't passing the presence of an alpha channel to OpenGL, but that's >> just a guess. Normally you specify the image format there, but those >> parameters aren't supported yet in the gb3 implementation. >> >> The project is attached. You can move the little wizard around with the >> ASDW keys and rotate with the QE keys. Any help appreciated...I'm going >> crazy and am calling it quits for the night > This is what i do in the sdl component to get alpha blending: > > glEnable(GL_BLEND); > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); > > So it should be in gambas3 code: > > Gl.Enable(Gl.GL_BLEND) > Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) Hi Laurent. That's the same conclusion I came to from my research, however it doesn't make any difference. I can set the alpha level of the entire texture, but the texture won't use the alpha channel of the original image. The attached project shows clearly what is happening. The light-blue background should show around the wizard, not a black square. Could it have something to do with the texture being rendered at a z depth or 0? Maybe it needs another texture behind it and not just a colored background. I'm using an orthogonal projection matrix if that makes a difference, and depth is disabled. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_opengl_texture.tar.gz Type: application/x-gzip Size: 14914 bytes Desc: not available URL: From gambas at ...1... Sat Jul 30 23:44:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Jul 2011 23:44:07 +0200 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <1541455.I7YhzizDA3@...2592...> References: <4E33865D.50503@...1887...> <1541455.I7YhzizDA3@...2592...> Message-ID: <201107302344.07349.gambas@...1...> > Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : > > I've been researching this for hours and nothing I try works. The image > > used for the texture has an alpha channel, but it is displayed as black > > instead of transparent. I'm starting to think that the line: > > > > Gl.TexImage2D(t1) > > > > isn't passing the presence of an alpha channel to OpenGL, but that's > > just a guess. Normally you specify the image format there, but those > > parameters aren't supported yet in the gb3 implementation. > > > > The project is attached. You can move the little wizard around with the > > ASDW keys and rotate with the QE keys. Any help appreciated...I'm going > > crazy and am calling it quits for the night > > This is what i do in the sdl component to get alpha blending: > > glEnable(GL_BLEND); > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); > > So it should be in gambas3 code: > > Gl.Enable(Gl.GL_BLEND) > Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) > > ++ > If, in GltextureMapping.c:238: glTexImage2D(GL_TEXTURE_2D, VARGOPT(Level, 0), 3, image->width, image->height, VARGOPT(Border, 0), format, GL_UNSIGNED_BYTE, image->data); I replace the "3" by "4", as it is in line 225, I get the transparency. According to the documentation, this number is the number of color components in the texture, which should be 4 for RGBA. I suggest that this number should be 3 if the image format is RGB or BGR, and 4 if the image format is RGBA, RGBX, BGRA, tec. Another point. I opened the file GLUtextureImage.c (searching for GL.TexImage2D), and I noticed that GLUBUILD1DMIPMAPS use IMAGE_get to read its image argument (which does error checking), but not GLUBUILD2DMIPMAPS, which should lead to possible segfaults... Laurent, I let you modify the code (if I'm not wrong) :-) -- Beno?t Minisini From fabianfloresvadell at ...626... Sun Jul 31 00:18:51 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 30 Jul 2011 19:18:51 -0300 Subject: [Gambas-user] gb3 OpenGL example applications In-Reply-To: <201107300126.51965.gambas@...1...> References: <4E332808.9070705@...1887...> <201107300126.51965.gambas@...1...> Message-ID: 2011/7/29 Beno?t Minisini : >> 2011/7/29 Kevin Fishburne : >> > Caveat was kind enough to provide me with a link to the OpenGL examples. >> > I went through them all and converted them to gb3, cleaned up the code >> > and corrected some bugs. They all work now in gb3 except for one, which >> > I deleted. You can find them here: >> > >> > http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz >> >> Very nice Kevin, and so useful of course. >> >> I found that the project 19_ParticleEngine give an error: >> >> 88- ?colors[p - 1, i] = Val(rgb) >> >> I replace that line with: >> >> colors[p - 1, i] = Val(Replace(rgb, ".", ",")) >> >> because decimal sign in my system is "," > > No, you must write: > > ? ? ? ?colors[p - 1, i] = CFloat(Trim(rgb)) > > You cannot decide the localization of the system where a program runs! > Of course, you are right. I just took the first idea came to my mind, so that I could execute the example. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From fabianfloresvadell at ...626... Sun Jul 31 00:23:24 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 30 Jul 2011 19:23:24 -0300 Subject: [Gambas-user] a observer in a form can't catch an event from other class In-Reply-To: References: <201106292219.17303.gambas@...1...> Message-ID: 2011/7/2 Fabien Bodard : >> ?Some suggestion? ?How would be possible implement the MVC pattern in >> Gambas? (The controller is the part that I'm not figured how to do) >> > > hum well in fact the engine will return an array structure for the > game plate and users status... then the viewer deal with these info to > display it. > > you need a client/server concept as the view can be really different > and the libs not compatibles. For that you can use gb.dbus, or simply > a socket.. Thanks Fabien. Now I figured how to do that I want, just polymorfism and Client/server. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From and.bertini at ...626... Sun Jul 31 09:11:00 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 31 Jul 2011 09:11:00 +0200 Subject: [Gambas-user] Possible bug in g3 ide In-Reply-To: References: Message-ID: In data 30 luglio 2011 alle ore 22:27:07, ha scritto: > Re: Possible bug in g3 ide the use gambas3 rc1, now install the svn. the bug has appeared 3 or 4 times. I do not understand how it happened. ab -- Creato con il rivoluzionario client email di Opera: http://www.opera.com/mail/ From kevinfishburne at ...1887... Sun Jul 31 09:42:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 31 Jul 2011 03:42:44 -0400 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <201107302344.07349.gambas@...1...> References: <4E33865D.50503@...1887...> <1541455.I7YhzizDA3@...2592...> <201107302344.07349.gambas@...1...> Message-ID: <4E350774.2060502@...1887...> On 07/30/2011 05:44 PM, Beno?t Minisini wrote: >> Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : >>> I've been researching this for hours and nothing I try works. The image >>> used for the texture has an alpha channel, but it is displayed as black >>> instead of transparent. I'm starting to think that the line: >>> >>> Gl.TexImage2D(t1) >>> >>> isn't passing the presence of an alpha channel to OpenGL, but that's >>> just a guess. Normally you specify the image format there, but those >>> parameters aren't supported yet in the gb3 implementation. >>> >>> The project is attached. You can move the little wizard around with the >>> ASDW keys and rotate with the QE keys. Any help appreciated...I'm going >>> crazy and am calling it quits for the night >> >> This is what i do in the sdl component to get alpha blending: >> >> glEnable(GL_BLEND); >> glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); >> >> So it should be in gambas3 code: >> >> Gl.Enable(Gl.GL_BLEND) >> Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) >> >> ++ >> > > If, in GltextureMapping.c:238: > > glTexImage2D(GL_TEXTURE_2D, VARGOPT(Level, 0), 3, image->width, > image->height, VARGOPT(Border, 0), format, GL_UNSIGNED_BYTE, > image->data); > > I replace the "3" by "4", as it is in line 225, I get the transparency. > > According to the documentation, this number is the number of color components > in the texture, which should be 4 for RGBA. > > I suggest that this number should be 3 if the image format is RGB or BGR, and > 4 if the image format is RGBA, RGBX, BGRA, tec. > > Another point. I opened the file GLUtextureImage.c (searching for > GL.TexImage2D), and I noticed that GLUBUILD1DMIPMAPS use IMAGE_get to read its > image argument (which does error checking), but not GLUBUILD2DMIPMAPS, which > should lead to possible segfaults... Interesting observations Beno?t. I did get a segfault using Glu.Build2DMipmaps(), though I corrected it by moving the call. Was a strange error among many, which I'm still trying to correct. Mostly I think it's my faulty logic. Tomek, who is having some trouble mailing the mailing list lately, helped me get the alpha channel working correctly. I don't understand the logic, but enabling the gb.opengl.glu component and adding the line "Glu.Build2DMipmaps(t1)" to the end of the texture setup code enabled the alpha channel. The final code looks like this: ? Set up texture. Gl.BindTexture(Gl.GL_TEXTURE_2D, textures[0]) Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MIN_FILTER, Gl.GL_LINEAR) Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MAG_FILTER, Gl.GL_LINEAR) Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_S, Gl.GL_CLAMP) Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_T, Gl.GL_CLAMP) Gl.TexImage2D(t1) Glu.Build2DMipmaps(t1) No idea why the segfault occurred, but am glad I could work around it. I attached my revised example project. I hope it can be included with the others in the OpenGL example compilation you mentioned. I added the appropriate comments at the beginning of the project, and further commented important lines throughout so it would be easy to understand. Enabling the alpha channel on a simple OpenGL 2D "blit" is a common requirement of many games. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_opengl_texture_with_alpha_channel.tar.gz Type: application/x-gzip Size: 15525 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Jul 31 13:28:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 31 Jul 2011 14:28:09 +0300 Subject: [Gambas-user] Possible bug in g3 ide In-Reply-To: References: Message-ID: Does it always happen with same project? Can you take screenshot of it? I haven't see it happen in any Ubuntu, what is your operating system? Debian? Arch Linux? OpenSUSE? Red Hat? Or..? Do your project use GTK+ or Qt? Jussi On Sun, Jul 31, 2011 at 10:11, Andrea Bertini wrote: > In data 30 luglio 2011 alle ore 22:27:07, > ha scritto: > > > Re: Possible bug in g3 ide > > the use gambas3 rc1, now install the svn. the bug has appeared 3 or 4 > times. I do not understand how it happened. > > ab > > > -- > Creato con il rivoluzionario client email di Opera: > http://www.opera.com/mail/ > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From karl.reinl at ...9... Sun Jul 31 14:43:36 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 31 Jul 2011 14:43:36 +0200 Subject: [Gambas-user] TextEdit, and missing Link event Message-ID: <1312116216.7907.19.camel@...40...> Salut, did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks here, I move my project from gb2 to gb3. I used a TextEdit with very simple HTML and a href in, and the Link event to open it in the browser. Now gb3 TextEdit don't show my very simple HTML any more (test only) und has no Link event (the Link event was never in the documentation, even in gb2) The TextLabel shows the simple HTML like it should be, but I don't find no Link event. gambas3 rev 3956 Mandriva 2010.2 qt4 only (gtk not tested) -- Amicalement Charlie From and.bertini at ...626... Sun Jul 31 21:32:44 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 31 Jul 2011 21:32:44 +0200 Subject: [Gambas-user] Code writing (Fabien Bodard) Message-ID: thx fabien Andrea BERTINI Rome-Italy 2011/7/30 > 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: another make error (Matti) > 2. Re: another make error (Beno?t Minisini) > 3. gb3 requirements on openSUSE 11.4 (Matti) > 4. Re: Gambas-user Digest, Vol 62, Issue 49 (Andrea Bertini) > 5. Re: Gambas-user Digest, Vol 62, Issue 49 (Andrea Bertini) > 6. Possible bug in g3 ide (Andrea Bertini) > 7. Re: Future email ehnaced control (Fabien Bodard) > 8. Re: Code writing (Fabien Bodard) > 9. Re: gb3: gb.opengl will not render alpha channel of 2D > texture (Laurent Carlier) > > > ---------- Messaggio inoltrato ---------- > From: Matti > To: gambas-user at lists.sourceforge.net > Date: Sat, 30 Jul 2011 13:22:16 +0200 > Subject: Re: [Gambas-user] another make error > Maybe there are different versions, maybe it was my fault. > I had a package 'libiodbc-devel' installed and replaced it by > 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. > > Instead, I have an error about CDial_moc.cpp now. > Will see what I can do... > > > Am 29.07.2011 23:31, schrieb Beno?t Minisini: > >> Here it is. >>> >>> Am 29.07.2011 01:30, schrieb Beno?t Minisini: >>> >>>> Can you send me the contents of /usr/include/sqlext.h ? >>>> >>> >> Mmm. Your sqlext.h is completely different from mine. Are there different >> ODBC >> libraries on Linux? >> >> > > > > ---------- Messaggio inoltrato ---------- > From: "Beno?t Minisini" > To: mailing list for gambas users > Date: Sat, 30 Jul 2011 13:41:51 +0200 > Subject: Re: [Gambas-user] another make error > > Maybe there are different versions, maybe it was my fault. > > I had a package 'libiodbc-devel' installed and replaced it by > > 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. > > > > How could two different libraries have the two same non-compatible include > files? Pfff... > > > Instead, I have an error about CDial_moc.cpp now. > > Will see what I can do... > > > > "make clean" to clean up the compilation before doing a "make" again? > > -- > Beno?t Minisini > > > > > ---------- Messaggio inoltrato ---------- > From: Matti > To: mailing list for gambas users > Date: Sat, 30 Jul 2011 15:21:02 +0200 > Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 > Installing the requirements, I run from one trouble into another, it's > horrible. > > Right now, 'make' complains about a missing file '-ljscore'. > > I found a mail from Paolo in this list, but the link to his "Extended" repo > of 11.4 doesn't work. > Then I downloaded libqt4-4.7.3-8.1.i586.rpm, but this won't install because > of a wrong version of libstdc++.so.6. Downloaded > libstdc++46-4.6.1_20110701-2.**10.i586.rpm, but this is in conflict with > something else, and so on... > > Has anyone of you fixed the '-ljscore' problem and can give me a hint? > > Thanks > Matti > > > > > ---------- Messaggio inoltrato ---------- > From: "Andrea Bertini" > To: gambas-user at lists.sourceforge.net > Date: Sat, 30 Jul 2011 16:36:07 +0200 > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 > yes, of course > > Andrea Bertini > > In data 30 luglio 2011 alle ore 06:19:50, sourceforge.net > ha scritto: > > Send Gambas-user mailing list submissions to >> gambas-user at ...720...**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 ...1048...**sourceforge.net >> >> You can reach the person managing the list at >> gambas-user-owner at ...1048...**sourceforge.net >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Gambas-user digest..." >> > > > > > > > ---------- Messaggio inoltrato ---------- > From: "Andrea Bertini" > To: gambas-user at lists.sourceforge.net > Date: Sat, 30 Jul 2011 16:39:12 +0200 > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 > fantastic, i will wait for this new component. Look in gambas-it.org for > component grid.box by milio, ciao > > Andrea Bertini > > In data 30 luglio 2011 alle ore 06:19:50, sourceforge.net > ha scritto: > > Hi, >> I added support for any mime type and any charset in revision #3954. >> Can you check that and tell me if it works for you? >> Regards, >> >> > > > > > > ---------- Messaggio inoltrato ---------- > From: Andrea Bertini > To: gambas-user at lists.sourceforge.net > Date: Sat, 30 Jul 2011 16:53:03 +0200 > Subject: [Gambas-user] Possible bug in g3 ide > I can report a bug g3: in some cases if you close the program and reopen > the > program, some controls (buttons, panels) are missing from the form, > changing their > size and location. > > > Andrea BERTINI > Rome-Italy > > > > ---------- Messaggio inoltrato ---------- > From: Fabien Bodard > To: mailing list for gambas users > Date: Sat, 30 Jul 2011 17:46:55 +0200 > Subject: Re: [Gambas-user] Future email ehnaced control > Le 30 juillet 2011 01:22, Beno?t Minisini > a ?crit : > >> We can send email but not to receive. Do you plan to enhance actual > >> control? > >> > >> Thx > >> > >> > >> Andrea BERTINI > >> Rome-Italy > > > > You mean a POP3 component plus a MIME messages component ? Something to > be > > done for sure. > > > > It can even be written in Gambas I think. But some routines must be > written in > > C (base64...) so that the mail contents can be decoded efficiently. > > in the past i've used the gb.xml routine for base64 > > > Regards, > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > > > ---------- Messaggio inoltrato ---------- > From: Fabien Bodard > To: mailing list for gambas users > Date: Sat, 30 Jul 2011 18:15:00 +0200 > Subject: Re: [Gambas-user] Code writing > 2011/7/29 Andrea Bertini : > > I use g3. is there the solution to write code of a single command on few > > lines? > > > > In vb i can write in this way: > > > > function (..........) > > code.......................... _ > > code > > yes you can break a line after a symbol, a ", a comma > > function toto(titi as string, > tata as integer, > toto as float) as integer > > > > > > > > > > Andrea BERTINI > > Rome-Italy > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > > > ---------- Messaggio inoltrato ---------- > From: Laurent Carlier > To: mailing list for gambas users > Date: Sat, 30 Jul 2011 18:57:08 +0200 > Subject: Re: [Gambas-user] gb3: gb.opengl will not render alpha channel of > 2D texture > Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : > > I've been researching this for hours and nothing I try works. The image > > used for the texture has an alpha channel, but it is displayed as black > > instead of transparent. I'm starting to think that the line: > > > > Gl.TexImage2D(t1) > > > > isn't passing the presence of an alpha channel to OpenGL, but that's > > just a guess. Normally you specify the image format there, but those > > parameters aren't supported yet in the gb3 implementation. > > > > The project is attached. You can move the little wizard around with the > > ASDW keys and rotate with the QE keys. Any help appreciated...I'm going > > crazy and am calling it quits for the night > > This is what i do in the sdl component to get alpha blending: > > glEnable(GL_BLEND); > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); > > So it should be in gambas3 code: > > Gl.Enable(Gl.GL_BLEND) > Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) > > ++ > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From math.eber at ...221... Sun Jul 31 22:02:24 2011 From: math.eber at ...221... (Matti) Date: Sun, 31 Jul 2011 22:02:24 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E345670.3080905@...2382...> References: <4E34053E.1060608@...221...> <4E345670.3080905@...2382...> Message-ID: <4E35B4D0.4030303@...221...> Well, I thought about changing to another distro anyway, for some other reasons. The only thing is that I am used to SUSE for years now... Maybe Ubuntu 11.04? Can someone confirm that gb3 can be compiled there without significant problems? Or maybe another distribution is better? Any recommendations? Thanks Matti Am 30.07.2011 21:07, schrieb Jesus: > Sorry for the noise, but it is just the reason why I've dropped openSuse > definitely some years ago... > > I'm far more comfortable with debian based distros. Yeah, I know it > doesn't help you at all, sorry but I can't resist! > > Good luck, dude > > From kevinfishburne at ...1887... Sun Jul 31 22:41:32 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 31 Jul 2011 16:41:32 -0400 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E35B4D0.4030303@...221...> References: <4E34053E.1060608@...221...> <4E345670.3080905@...2382...> <4E35B4D0.4030303@...221...> Message-ID: <4E35BDFC.2050005@...1887...> On 07/31/2011 04:02 PM, Matti wrote: > Well, I thought about changing to another distro anyway, for some other reasons. > The only thing is that I am used to SUSE for years now... > Maybe Ubuntu 11.04? > Can someone confirm that gb3 can be compiled there without significant problems? > Or maybe another distribution is better? > > Any recommendations? I'm using Debian Wheezy/Testing now, though I used to use Ubuntu. It's a little rough around the edges but works for me. I've heard and seen good things from Fedora, and looks pretty slick the times I've installed it on customers' computers. I tried Linux Mint and found it to be a bit of a hack-job, so I don't recommend it. Ubuntu 11.04 is using Unity, which is a really weird/goofy way to interact with the desktop and lacks any customization. It has a "classic mode" that you can switch to from the login screen, but I heard they're removing it in 11.10, forcing people to use Unity. That's why I dumped it. Ubuntu 10.10 is pretty solid however, and the only reason I wouldn't recommend using it is because eventually it will be no longer supported and you'll have to upgrade and use Unity. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From munix9 at ...1601... Sun Jul 31 22:58:21 2011 From: munix9 at ...1601... (=?ISO-8859-1?Q?Paolo_Pant=F2?=) Date: Sun, 31 Jul 2011 22:58:21 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E35B4D0.4030303@...221...> References: <4E34053E.1060608@...221...> <4E345670.3080905@...2382...> <4E35B4D0.4030303@...221...> Message-ID: <4E35C1ED.5050100@...1601...> hi, the obs repo has been reorganized, you can find gambas3 for openSUSE 11.4 under https://build.opensuse.org/project/show?project=home%3Amunix9 for a standard (updated) openSUSE 11.4 installation please try the default repo "openSUSE_11.4" (nothing Extended, no Factory, no Tumbleweed). ciao paolo Am 31.07.2011 22:02, schrieb Matti: > Well, I thought about changing to another distro anyway, for some other reasons. > The only thing is that I am used to SUSE for years now... > Maybe Ubuntu 11.04? > Can someone confirm that gb3 can be compiled there without significant problems? > Or maybe another distribution is better? > > Any recommendations? > Thanks > Matti > > Am 30.07.2011 21:07, schrieb Jesus: >> Sorry for the noise, but it is just the reason why I've dropped openSuse >> definitely some years ago... >> >> I'm far more comfortable with debian based distros. Yeah, I know it >> doesn't help you at all, sorry but I can't resist! >> >> Good luck, dude >> >> > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From and.bertini at ...626... Sun Jul 31 23:21:30 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 31 Jul 2011 23:21:30 +0200 Subject: [Gambas-user] Possible bug in g3 ide Message-ID: OS: Ubuntu Natty Gambas3: RC1 Project: with QT Bug: detected in different works. Last procedure before bug: save the project and all the forms When bug compares: it compares after opening a project Andrea BERTINI Rome-Italy Il giorno 31 luglio 2011 22:58, ha scritto: > 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: Possible bug in g3 ide (Jussi Lahtinen) > 2. TextEdit, and missing Link event (Karl Reinl) > 3. Re: Code writing (Fabien Bodard) (Andrea Bertini) > 4. Re: gb3 requirements on openSUSE 11.4 (Matti) > 5. Re: gb3 requirements on openSUSE 11.4 (Kevin Fishburne) > 6. Re: gb3 requirements on openSUSE 11.4 (Paolo Pant?) > > > ---------- Messaggio inoltrato ---------- > From: Jussi Lahtinen > To: mailing list for gambas users > Date: Sun, 31 Jul 2011 14:28:09 +0300 > Subject: Re: [Gambas-user] Possible bug in g3 ide > Does it always happen with same project? > Can you take screenshot of it? > I haven't see it happen in any Ubuntu, what is your operating system? > Debian? Arch Linux? OpenSUSE? Red Hat? Or..? > Do your project use GTK+ or Qt? > > Jussi > > > On Sun, Jul 31, 2011 at 10:11, Andrea Bertini > wrote: > > > In data 30 luglio 2011 alle ore 22:27:07, > > ha scritto: > > > > > Re: Possible bug in g3 ide > > > > the use gambas3 rc1, now install the svn. the bug has appeared 3 or 4 > > times. I do not understand how it happened. > > > > ab > > > > > > -- > > Creato con il rivoluzionario client email di Opera: > > http://www.opera.com/mail/ > > > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ---------- Messaggio inoltrato ---------- > From: Karl Reinl > To: mailing list for gambas users > Date: Sun, 31 Jul 2011 14:43:36 +0200 > Subject: [Gambas-user] TextEdit, and missing Link event > Salut, > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks here, > I move my project from gb2 to gb3. > I used a TextEdit with very simple HTML and a href in, and the Link > event to open it in the browser. > Now gb3 TextEdit don't show my very simple HTML any more (test only) und > has no Link event (the Link event was never in the documentation, even > in gb2) > > The TextLabel shows the simple HTML like it should be, but I don't find > no Link event. > > gambas3 rev 3956 > Mandriva 2010.2 > qt4 only (gtk not tested) > > > > -- > Amicalement > Charlie > > > > > > ---------- Messaggio inoltrato ---------- > From: Andrea Bertini > To: gambas-user at lists.sourceforge.net > Date: Sun, 31 Jul 2011 21:32:44 +0200 > Subject: Re: [Gambas-user] Code writing (Fabien Bodard) > thx fabien > > Andrea BERTINI > Rome-Italy > > > > > > 2011/7/30 > > > 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: another make error (Matti) > > 2. Re: another make error (Beno?t Minisini) > > 3. gb3 requirements on openSUSE 11.4 (Matti) > > 4. Re: Gambas-user Digest, Vol 62, Issue 49 (Andrea Bertini) > > 5. Re: Gambas-user Digest, Vol 62, Issue 49 (Andrea Bertini) > > 6. Possible bug in g3 ide (Andrea Bertini) > > 7. Re: Future email ehnaced control (Fabien Bodard) > > 8. Re: Code writing (Fabien Bodard) > > 9. Re: gb3: gb.opengl will not render alpha channel of 2D > > texture (Laurent Carlier) > > > > > > ---------- Messaggio inoltrato ---------- > > From: Matti > > To: gambas-user at lists.sourceforge.net > > Date: Sat, 30 Jul 2011 13:22:16 +0200 > > Subject: Re: [Gambas-user] another make error > > Maybe there are different versions, maybe it was my fault. > > I had a package 'libiodbc-devel' installed and replaced it by > > 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. > > > > Instead, I have an error about CDial_moc.cpp now. > > Will see what I can do... > > > > > > Am 29.07.2011 23:31, schrieb Beno?t Minisini: > > > >> Here it is. > >>> > >>> Am 29.07.2011 01:30, schrieb Beno?t Minisini: > >>> > >>>> Can you send me the contents of /usr/include/sqlext.h ? > >>>> > >>> > >> Mmm. Your sqlext.h is completely different from mine. Are there > different > >> ODBC > >> libraries on Linux? > >> > >> > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: "Beno?t Minisini" > > To: mailing list for gambas users > > Date: Sat, 30 Jul 2011 13:41:51 +0200 > > Subject: Re: [Gambas-user] another make error > > > Maybe there are different versions, maybe it was my fault. > > > I had a package 'libiodbc-devel' installed and replaced it by > > > 'unixODBC-devel'. Now, 'make' doesn't complain about ODBC anymore. > > > > > > > How could two different libraries have the two same non-compatible > include > > files? Pfff... > > > > > Instead, I have an error about CDial_moc.cpp now. > > > Will see what I can do... > > > > > > > "make clean" to clean up the compilation before doing a "make" again? > > > > -- > > Beno?t Minisini > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: Matti > > To: mailing list for gambas users > > Date: Sat, 30 Jul 2011 15:21:02 +0200 > > Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 > > Installing the requirements, I run from one trouble into another, it's > > horrible. > > > > Right now, 'make' complains about a missing file '-ljscore'. > > > > I found a mail from Paolo in this list, but the link to his "Extended" > repo > > of 11.4 doesn't work. > > Then I downloaded libqt4-4.7.3-8.1.i586.rpm, but this won't install > because > > of a wrong version of libstdc++.so.6. Downloaded > > libstdc++46-4.6.1_20110701-2.**10.i586.rpm, but this is in conflict with > > something else, and so on... > > > > Has anyone of you fixed the '-ljscore' problem and can give me a hint? > > > > Thanks > > Matti > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: "Andrea Bertini" > > To: gambas-user at lists.sourceforge.net > > Date: Sat, 30 Jul 2011 16:36:07 +0200 > > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 > > yes, of course > > > > Andrea Bertini > > > > In data 30 luglio 2011 alle ore 06:19:50, > sourceforge.net > ha scritto: > > > > Send Gambas-user mailing list submissions to > >> gambas-user at ...720...**net< > gambas-user at lists.sourceforge.net> > >> > >> To subscribe or unsubscribe via the World Wide Web, visit > >> https://lists.sourceforge.net/**lists/listinfo/gambas-user< > https://lists.sourceforge.net/lists/listinfo/gambas-user> > >> or, via email, send a message with subject or body 'help' to > >> gambas-user-request at ...1048...**sourceforge.net< > gambas-user-request at lists.sourceforge.net> > >> > >> You can reach the person managing the list at > >> gambas-user-owner at ...1048...**sourceforge.net< > 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..." > >> > > > > > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: "Andrea Bertini" > > To: gambas-user at lists.sourceforge.net > > Date: Sat, 30 Jul 2011 16:39:12 +0200 > > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 62, Issue 49 > > fantastic, i will wait for this new component. Look in gambas-it.org for > > component grid.box by milio, ciao > > > > Andrea Bertini > > > > In data 30 luglio 2011 alle ore 06:19:50, > sourceforge.net > ha scritto: > > > > Hi, > >> I added support for any mime type and any charset in revision #3954. > >> Can you check that and tell me if it works for you? > >> Regards, > >> > >> > > > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: Andrea Bertini > > To: gambas-user at lists.sourceforge.net > > Date: Sat, 30 Jul 2011 16:53:03 +0200 > > Subject: [Gambas-user] Possible bug in g3 ide > > I can report a bug g3: in some cases if you close the program and reopen > > the > > program, some controls (buttons, panels) are missing from the form, > > changing their > > size and location. > > > > > > Andrea BERTINI > > Rome-Italy > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: Fabien Bodard > > To: mailing list for gambas users > > Date: Sat, 30 Jul 2011 17:46:55 +0200 > > Subject: Re: [Gambas-user] Future email ehnaced control > > Le 30 juillet 2011 01:22, Beno?t Minisini > > a ?crit : > > >> We can send email but not to receive. Do you plan to enhance actual > > >> control? > > >> > > >> Thx > > >> > > >> > > >> Andrea BERTINI > > >> Rome-Italy > > > > > > You mean a POP3 component plus a MIME messages component ? Something to > > be > > > done for sure. > > > > > > It can even be written in Gambas I think. But some routines must be > > written in > > > C (base64...) so that the mail contents can be decoded efficiently. > > > > in the past i've used the gb.xml routine for base64 > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > > > > ------------------------------------------------------------------------------ > > > Got Input? Slashdot Needs You. > > > Take our quick survey online. Come on, we don't ask for help often. > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > http://p.sf.net/sfu/slashdot-survey > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > Fabien Bodard > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: Fabien Bodard > > To: mailing list for gambas users > > Date: Sat, 30 Jul 2011 18:15:00 +0200 > > Subject: Re: [Gambas-user] Code writing > > 2011/7/29 Andrea Bertini : > > > I use g3. is there the solution to write code of a single command on > few > > > lines? > > > > > > In vb i can write in this way: > > > > > > function (..........) > > > code.......................... _ > > > code > > > > yes you can break a line after a symbol, a ", a comma > > > > function toto(titi as string, > > tata as integer, > > toto as float) as integer > > > > > > > > > > > > > > > > > > Andrea BERTINI > > > Rome-Italy > > > > > > ------------------------------------------------------------------------------ > > > Got Input? Slashdot Needs You. > > > Take our quick survey online. Come on, we don't ask for help often. > > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > > http://p.sf.net/sfu/slashdot-survey > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > Fabien Bodard > > > > > > > > > > ---------- Messaggio inoltrato ---------- > > From: Laurent Carlier > > To: mailing list for gambas users > > Date: Sat, 30 Jul 2011 18:57:08 +0200 > > Subject: Re: [Gambas-user] gb3: gb.opengl will not render alpha channel > of > > 2D texture > > Le Samedi 30 Juillet 2011 00:19:41, Kevin Fishburne a ?crit : > > > I've been researching this for hours and nothing I try works. The image > > > used for the texture has an alpha channel, but it is displayed as black > > > instead of transparent. I'm starting to think that the line: > > > > > > Gl.TexImage2D(t1) > > > > > > isn't passing the presence of an alpha channel to OpenGL, but that's > > > just a guess. Normally you specify the image format there, but those > > > parameters aren't supported yet in the gb3 implementation. > > > > > > The project is attached. You can move the little wizard around with the > > > ASDW keys and rotate with the QE keys. Any help appreciated...I'm going > > > crazy and am calling it quits for the night > > > > This is what i do in the sdl component to get alpha blending: > > > > glEnable(GL_BLEND); > > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); > > > > So it should be in gambas3 code: > > > > Gl.Enable(Gl.GL_BLEND) > > Gl.BlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) > > > > ++ > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ---------- Messaggio inoltrato ---------- > From: Matti > To: gambas-user at lists.sourceforge.net > Date: Sun, 31 Jul 2011 22:02:24 +0200 > Subject: Re: [Gambas-user] gb3 requirements on openSUSE 11.4 > Well, I thought about changing to another distro anyway, for some other > reasons. > The only thing is that I am used to SUSE for years now... > Maybe Ubuntu 11.04? > Can someone confirm that gb3 can be compiled there without significant > problems? > Or maybe another distribution is better? > > Any recommendations? > Thanks > Matti > > Am 30.07.2011 21:07, schrieb Jesus: > >> Sorry for the noise, but it is just the reason why I've dropped openSuse >> definitely some years ago... >> >> I'm far more comfortable with debian based distros. Yeah, I know it >> doesn't help you at all, sorry but I can't resist! >> >> Good luck, dude >> >> >> > > > > ---------- Messaggio inoltrato ---------- > From: Kevin Fishburne > To: gambas-user at lists.sourceforge.net > Date: Sun, 31 Jul 2011 16:41:32 -0400 > Subject: Re: [Gambas-user] gb3 requirements on openSUSE 11.4 > On 07/31/2011 04:02 PM, Matti wrote: > >> Well, I thought about changing to another distro anyway, for some other >> reasons. >> The only thing is that I am used to SUSE for years now... >> Maybe Ubuntu 11.04? >> Can someone confirm that gb3 can be compiled there without significant >> problems? >> Or maybe another distribution is better? >> >> Any recommendations? >> > > I'm using Debian Wheezy/Testing now, though I used to use Ubuntu. It's a > little rough around the edges but works for me. I've heard and seen good > things from Fedora, and looks pretty slick the times I've installed it on > customers' computers. I tried Linux Mint and found it to be a bit of a > hack-job, so I don't recommend it. > > Ubuntu 11.04 is using Unity, which is a really weird/goofy way to interact > with the desktop and lacks any customization. It has a "classic mode" that > you can switch to from the login screen, but I heard they're removing it in > 11.10, forcing people to use Unity. That's why I dumped it. Ubuntu 10.10 is > pretty solid however, and the only reason I wouldn't recommend using it is > because eventually it will be no longer supported and you'll have to upgrade > and use Unity. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > > > ---------- Messaggio inoltrato ---------- > From: "Paolo Pant?" > To: gambas-user at lists.sourceforge.net > Date: Sun, 31 Jul 2011 22:58:21 +0200 > Subject: Re: [Gambas-user] gb3 requirements on openSUSE 11.4 > > hi, > > the obs repo has been reorganized, you can find gambas3 for openSUSE > 11.4 under https://build.opensuse.org/project/show?project=home%3Amunix9 > > for a standard (updated) openSUSE 11.4 installation please try the > default repo "openSUSE_11.4" (nothing Extended, no Factory, no Tumbleweed). > > ciao > paolo > > > Am 31.07.2011 22:02, schrieb Matti: > > Well, I thought about changing to another distro anyway, for some other > reasons. > > The only thing is that I am used to SUSE for years now... > > Maybe Ubuntu 11.04? > > Can someone confirm that gb3 can be compiled there without significant > problems? > > Or maybe another distribution is better? > > > > Any recommendations? > > Thanks > > Matti > > > > Am 30.07.2011 21:07, schrieb Jesus: > >> Sorry for the noise, but it is just the reason why I've dropped openSuse > >> definitely some years ago... > >> > >> I'm far more comfortable with debian based distros. Yeah, I know it > >> doesn't help you at all, sorry but I can't resist! > >> > >> Good luck, dude > >> > >> > > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Sun Jul 31 23:50:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 31 Jul 2011 23:50:31 +0200 Subject: [Gambas-user] Possible bug in g3 ide In-Reply-To: References: Message-ID: <201107312350.31142.gambas@...1...> > OS: Ubuntu Natty > Gambas3: RC1 > Project: with QT > Bug: detected in different works. Last procedure before bug: save the > project and all the forms > When bug compares: it compares after opening a project > > > Andrea BERTINI > Rome-Italy > Please a send a project that has that bug, and please explain exactly what to do to reproduce it. Thanks in advance. Regards, -- Beno?t Minisini