From gambas at ...1... Sun Jun 1 00:10:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jun 2008 00:10:06 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <483E807C.9080805@...1740...> References: <483E807C.9080805@...1740...> Message-ID: <200806010010.06801.gambas@...1...> On jeudi 29 mai 2008, Ron wrote: > Hi, > > Hereby a request to add a flagfield, apply a bugfix or correct working > logic to smtpclient to be able to sent really plaintext messages with it. > > A plaintext message should look like this: for example: > --- cut --- > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > BODY > --- cut --- > > But if you sent simple textbody with smtpclient it results in this: > The content-type is first set to multipart/mixed, and later to text/plain. > > --- cut --- > Mime-Version: 1.0 > Content-Type: multipart/mixed; > boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" > Content-Transfer-Encoding: 7bit > Message-Id: <20080529094221.876B542B6 at ...1915...> > Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) > > This is a MIME multipart message. Your mail reader isn't MIME capable. > You might not be able to read parts or all of this message. > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > Content-Type: text/plain; name="MIME part #0"; charset="utf-8" > Content-Transfer-Encoding: quoted-printable > > BODY=0D > - Powered by Lighthouse V0.0.63 -=0D > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- > > --- cut --- > > I want to be able to sent command per e-mail to my aibo, but it doesn't > grok these, just really plaintext, non multiparted ones. > > Gambas 2.6.0 > > Thanks, > Ron. > The mail sent by gb.net.smtp is perfectly correct. The problem is in your mail client that does no support MIME... Anyway, maybe I could detect this specific case and not use multipart message. But if your mail client does not understand MIME, I wonder what he will do with UTF-8... -- Benoit Minisini From gambas at ...1... Sun Jun 1 00:15:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jun 2008 00:15:57 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200805291009.51509.sourceforge-raindog2@...94...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> Message-ID: <200806010015.57293.gambas@...1...> On jeudi 29 mai 2008, Rob wrote: > On Thursday 29 May 2008 09:32, Leonardo Miliani wrote: > > Benoit said me that he based the smtp component on an old library > > with less functions.. so until he has the time to rewrite it there > > are no many solutions to get that component working. > > If what you want to send is a really plain plaintext message, I would > personally just connect to the SMTP server directly and do something > like: > > print #mysocket, "HELO localhost" > print #mysocket, "MAIL FROM:" > print #mysocket, "RCPT TO:" > print #mysocket, "DATA" > print #mysocket, "From: " > print #mysocket, "To: " > print #mysocket, "Date: " & format(now, "ddd, dd mmmm yyyy " & _ > "hh:nn:ss -0500" ' change -0500 to be your own timezone > ' because i don't remember how to get the timezone in gambas > print #mysocket, "Subject: " & subject > print #mysocket, "" > print #mysocket, bodytext > print #mysocket, "." > > Rob > Well, then do not send messages in any other language than english, and/or outside of US! :-) To get the timezone, you may do that: PRINT Frac(CFloat(Date(Now))) * 24 -- Benoit Minisini From leemcpherson at ...626... Sun Jun 1 01:06:16 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sat, 31 May 2008 19:06:16 -0400 Subject: [Gambas-user] Bluetooth in Gambas In-Reply-To: <200806010015.57293.gambas@...1...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> Message-ID: <4841D9E8.7090501@...626...> This is not exactly a Gambas question, but I thought someone would be able to point me in the right direction. I'm trying to make a Bluetooth handsfree app with Gambas. I've already gotten the serial interface established so that I can dial calls and download the phonebook from my cell phone within Gambas. I'm using Ubuntu (hardy) and to create the serial connection, I'm using the command line program rfcomm. (I had to put this program in the sudoers file so that I didn't have to use sudo every time I wanted to run it.) Here's the problem... I haven't been able to find any good documentation to establish the 2-way audio link to the cell phone with Bluetooth. Other online tutorials explain how to use btsco (an outdated app) to connect to Bluetooth headsets, but that doesn't seem to be working for me. I've come across an idea to have linux emulate a bluetooth headset so that the phone can find it, but I haven't discovered how to do that. Ultimately, I just want to use standard speakers and a mic connected to the computer to talk over bluetooth. Does anyone have ideas? I'd be extremely grateful! (if anyone has questions about how I've done what I have so far, I'd be glad to answer them.) -Lee From sourceforge-raindog2 at ...94... Sun Jun 1 04:33:21 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 31 May 2008 22:33:21 -0400 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200806010015.57293.gambas@...1...> References: <483E807C.9080805@...1740...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> Message-ID: <200805312233.21579.sourceforge-raindog2@...94...> On Saturday 31 May 2008 18:15, Benoit Minisini wrote: > Well, then do not send messages in any other language than english, > and/or outside of US! :-) He was sending commands to his Aibo.... I don't think it cares ;) Rob From ron at ...1740... Sun Jun 1 10:16:44 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 10:16:44 +0200 Subject: [Gambas-user] Bluetooth in Gambas In-Reply-To: <4841D9E8.7090501@...626...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> <4841D9E8.7090501@...626...> Message-ID: <48425AEC.4070104@...1740...> Lee McPherson schreef: > This is not exactly a Gambas question, but I thought someone would be > able to point me in the right direction. > > I'm trying to make a Bluetooth handsfree app with Gambas. I've already > gotten the serial interface established so that I can dial calls and > download the phonebook from my cell phone within Gambas. I'm using > Ubuntu (hardy) and to create the serial connection, I'm using the > command line program rfcomm. (I had to put this program in the sudoers > file so that I didn't have to use sudo every time I wanted to run it.) > > Here's the problem... I haven't been able to find any good documentation > to establish the 2-way audio link to the cell phone with Bluetooth. > Other online tutorials explain how to use btsco (an outdated app) to > connect to Bluetooth headsets, but that doesn't seem to be working for > me. I've come across an idea to have linux emulate a bluetooth headset > so that the phone can find it, but I haven't discovered how to do that. > Ultimately, I just want to use standard speakers and a mic connected to > the computer to talk over bluetooth. > > Does anyone have ideas? I'd be extremely grateful! (if anyone has > questions about how I've done what I have so far, I'd be glad to answer > them.) > > -Lee > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jun 1 12:16:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jun 2008 12:16:08 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200805312233.21579.sourceforge-raindog2@...94...> References: <483E807C.9080805@...1740...> <200806010015.57293.gambas@...1...> <200805312233.21579.sourceforge-raindog2@...94...> Message-ID: <200806011216.08588.gambas@...1...> On dimanche 01 juin 2008, Rob wrote: > On Saturday 31 May 2008 18:15, Benoit Minisini wrote: > > Well, then do not send messages in any other language than english, > > and/or outside of US! :-) > > He was sending commands to his Aibo.... I don't think it cares ;) > > Rob > What is an "Aibo"? -- Benoit Minisini From ron at ...1740... Sun Jun 1 12:47:26 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 12:47:26 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200806011216.08588.gambas@...1...> References: <483E807C.9080805@...1740...> <200806010015.57293.gambas@...1...> <200805312233.21579.sourceforge-raindog2@...94...> <200806011216.08588.gambas@...1...> Message-ID: <48427E3E.2060903@...1740...> Benoit Minisini schreef: > On dimanche 01 juin 2008, Rob wrote: > >> On Saturday 31 May 2008 18:15, Benoit Minisini wrote: >> >>> Well, then do not send messages in any other language than english, >>> and/or outside of US! :-) >>> >> He was sending commands to his Aibo.... I don't think it cares ;) >> >> Rob >> >> > > What is an "Aibo"? > > A very nice robotdog made (once upon a time) by Sony. http://en.wikipedia.org/wiki/AIBO It becomes more of a collectors item, so you can hardly call it a toy if you look at the price you have to pay to get one these days. Regards, Ron From ron at ...1740... Sun Jun 1 12:51:18 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 12:51:18 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200806010010.06801.gambas@...1...> References: <483E807C.9080805@...1740...> <200806010010.06801.gambas@...1...> Message-ID: <48427F26.4040106@...1740...> Benoit Minisini schreef: > On jeudi 29 mai 2008, Ron wrote: > >> Hi, >> >> Hereby a request to add a flagfield, apply a bugfix or correct working >> logic to smtpclient to be able to sent really plaintext messages with it. >> >> A plaintext message should look like this: for example: >> --- cut --- >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> Content-Transfer-Encoding: 7bit >> >> BODY >> --- cut --- >> >> But if you sent simple textbody with smtpclient it results in this: >> The content-type is first set to multipart/mixed, and later to text/plain. >> >> --- cut --- >> Mime-Version: 1.0 >> Content-Type: multipart/mixed; >> boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" >> Content-Transfer-Encoding: 7bit >> Message-Id: <20080529094221.876B542B6 at ...1915...> >> Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) >> >> This is a MIME multipart message. Your mail reader isn't MIME capable. >> You might not be able to read parts or all of this message. >> >> >> >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 >> Content-Type: text/plain; name="MIME part #0"; charset="utf-8" >> Content-Transfer-Encoding: quoted-printable >> >> BODY=0D >> - Powered by Lighthouse V0.0.63 -=0D >> >> >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- >> >> --- cut --- >> >> I want to be able to sent command per e-mail to my aibo, but it doesn't >> grok these, just really plaintext, non multiparted ones. >> >> Gambas 2.6.0 >> >> Thanks, >> Ron. >> >> > > The mail sent by gb.net.smtp is perfectly correct. The problem is in your mail > client that does no support MIME... > > Anyway, maybe I could detect this specific case and not use multipart message. > > But if your mail client does not understand MIME, I wonder what he will do > with UTF-8... > > If you sent an email with thunderbird as plaintext, you get no mime entries in it (see first example above) so I thought that was the correct format. But a plaintext message with mime is still no html format, so you are right about gb.net.smtp sending in a official correct format. I can live with that. ;-) The workaround with sending the message by using a socket to port 25, is giving me problems, the connection gets dropped, my postfix is a bit to picky I think. Regards, Ron. From ron at ...1740... Sun Jun 1 13:08:34 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 13:08:34 +0200 Subject: [Gambas-user] two gui questions Message-ID: <48428332.4010102@...1740...> Hi, 1) I have a small form with some textboxes and 2 checkboxes, and a btnSave being disabled by default at showtime. If I set one of the two chkBoxes to TRUE inside form_open() the btnSave gets enabled, why? Since no one clicked in it yet, is this correct behaviour? Loading text into the textboxes doesn't trigger this, so it's inconsistent to begin with. This code underneath: PUBLIC SUB Form_Open() txtName.Text = Main.sAIBOName txtIPAddress.Text = Main.sAIBOIPAddress txtEmailAddress.text = Main.sAIBOEmailAddress txtPollTime.text = Main.sAIBOPollTime chkDebug.Value = FALSE chkEnable.Value = TRUE END PUBLIC SUB btnSave_Click() END PUBLIC SUB btnCancel_Click() ME.close END PUBLIC SUB txtName_KeyPress() btnSave.Enabled = TRUE END PUBLIC SUB txtIPAddress_KeyPress() btnSave.Enabled = TRUE END PUBLIC SUB txtEmailAddress_KeyPress() btnSave.Enabled = TRUE END PUBLIC SUB txtPollTime_KeyPress() btnSave.Enabled = TRUE END PUBLIC SUB chkEnable_Click() btnSave.Enabled = TRUE END PUBLIC SUB chkDebug_Click() btnSave.Enabled = TRUE END 2) When I have a Textbox to display my log entries, how can I keep the cursor set to the last line (the bottom one) I now have this code, which counts the lines added and set .Line to it, but it there another, better way to do this? If not, maybe an idea for builtin function by setting .Lines to -1 or something like that? PUBLIC iLogLines AS Integer PUBLIC FUNCTION WriteLog(sText AS String, OPTIONAL sStrip AS Boolean) IF NOT sStrip THEN sText &= "\n" FMain.txtWindow.Text &= sText FMain.txtWindow.Line = iLogLines - 1 iLogLines += 1 END Gambas 2.6 Thanks for your time! regards, Ron. From ron at ...1740... Sun Jun 1 14:20:49 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 14:20:49 +0200 Subject: [Gambas-user] gambas errors when closing a lot of editor windows after each other Message-ID: <48429421.9090002@...1740...> My current project is becoming bigger and bigger, and after some programming, alot of forms and module windows are opened (40 or so ), when i try to close them all by clicking repeatently on the circle with the x in it, i sometime get an error. (see attachment) after this gambas closes. Maybe this is caused by the fact that some modules/classes are renamed/deleted in the meantime while the ide still had a copy open, and failed when it tried to update or save it? gambas 2.6 Regards, Ron. -------------- next part -------------- A non-text attachment was scrubbed... Name: error.JPG Type: image/jpeg Size: 17905 bytes Desc: not available URL: From gambas at ...1... Sun Jun 1 14:26:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jun 2008 14:26:30 +0200 Subject: [Gambas-user] gambas errors when closing a lot of editor windows after each other In-Reply-To: <48429421.9090002@...1740...> References: <48429421.9090002@...1740...> Message-ID: <200806011426.30475.gambas@...1...> On dimanche 01 juin 2008, Ron wrote: > My current project is becoming bigger and bigger, and after some > programming, alot of forms and module windows are opened (40 or so ), > when i try to close them all by clicking repeatently on the circle with > the x in it, i sometime get an error. (see attachment) after this gambas > closes. > > Maybe this is caused by the fact that some modules/classes are > renamed/deleted in the meantime while the ide still had a copy open, and > failed when it tried to update or save it? > > gambas 2.6 > > Regards, > Ron. When do you get the error exactly? -- Benoit Minisini From gambas at ...1... Sun Jun 1 14:27:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jun 2008 14:27:26 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <17570006.post@...1379...> References: <17570006.post@...1379...> Message-ID: <200806011427.26720.gambas@...1...> On samedi 31 mai 2008, tsakaji30 wrote: > Hello again, another question: i wanted to pack an application that i have > made in gambas2 but when i try to use the option "Make instalation package" > (there is in the tools bar), i complete the assistant (i have deb-helper > installed) but it don't generate a .deb, only a .tar.gz (with the program > and the source code). > > Is this option not implemented yet in Gambas 2-2.5.0? > > Thanks for your answers ;) Can you send the log of the packager? It is written if the textbox of the wizard final step. -- Benoit Minisini From ron at ...1740... Sun Jun 1 14:38:41 2008 From: ron at ...1740... (Ron) Date: Sun, 01 Jun 2008 14:38:41 +0200 Subject: [Gambas-user] gambas errors when closing a lot of editor windows after each other In-Reply-To: <200806011426.30475.gambas@...1...> References: <48429421.9090002@...1740...> <200806011426.30475.gambas@...1...> Message-ID: <48429851.3070504@...1740...> Benoit Minisini schreef: > On dimanche 01 juin 2008, Ron wrote: > >> My current project is becoming bigger and bigger, and after some >> programming, alot of forms and module windows are opened (40 or so ), >> when i try to close them all by clicking repeatently on the circle with >> the x in it, i sometime get an error. (see attachment) after this gambas >> closes. >> >> Maybe this is caused by the fact that some modules/classes are >> renamed/deleted in the meantime while the ide still had a copy open, and >> failed when it tried to update or save it? >> >> gambas 2.6 >> >> Regards, >> Ron. >> > > When do you get the error exactly? > During closing of the +40 windows by clicking the circled X on the right hand corner 50 times , couldn't see which module is was closing at that time, after restart of gambas i could close the rest without errors. Just now I saw there is a menu item and shortkey to do just that ;) Regards, Ron. From sourceforge-raindog2 at ...94... Sun Jun 1 15:30:58 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 1 Jun 2008 09:30:58 -0400 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <48427F26.4040106@...1740...> References: <483E807C.9080805@...1740...> <200806010010.06801.gambas@...1...> <48427F26.4040106@...1740...> Message-ID: <200806010930.58461.sourceforge-raindog2@...94...> On Sunday 01 June 2008 06:51, Ron wrote: > The workaround with sending the message by using a socket to port > 25, is giving me problems, the connection gets dropped, my postfix > is a bit to picky I think. It's been a while since I forged emails by telnetting to port 25, so I probably steered you slightly wrong with the protocol commands. Also, some mailers require "\r\n" instead of just "\n" at the end of lines, so that might have an effect as well. Rob From rospolosco at ...152... Mon Jun 2 09:35:15 2008 From: rospolosco at ...152... (rospolosco at ...152...) Date: Mon, 2 Jun 2008 09:35:15 +0200 Subject: [Gambas-user] please, need help with gb.option Message-ID: <200806020935.16118.rospolosco@...152...> [Second request] Please, could someone provide a little code to show me how to use gb.option component. I need an example application that accepts options "-a -b -c" and print their arguments. I mean: example.gambas -a test -b foo -c bar result on console: "-a" argument is "test" "-b" argument is "foo" "-c" argument is "bar" Then, I would like to know if with gb.option an option could take multiple args. i.e: -a foo bar -b test I googled a lot and searched in the Gambas documentation, but I can't find any example. Thanks. Regards, Stefano From m0e.lnx at ...626... Mon Jun 2 13:39:46 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 2 Jun 2008 06:39:46 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> Message-ID: <1f1e8c1b0806020439w702125a7n9e25e66122acb6f5@...627...> Anyone have any idea on this issue? On Thu, May 29, 2008 at 2:28 PM, M0E Lnx wrote: > I'm running 2 applications here... a Host and a Client. > Some of you may already be familiar with this thing, since I had lots > of problems getting the embedder to work.... but now that it's > working, I have another problem > > The first form loads right into the embedder... all the objects work, > focus problem is gone and all... but here is the problem > > I've got more than one form on the client (embedded) application > If I try to switch forms, the host application simply hangs and the > client goes invisible > > Should I be using a special method to switch forms in this case? > Normally, I'd have a button with this on it's click event > > FMain.hide > FrmNext.Show > > Well, that is causing the above described problem... > Can anyone suggest anything better? > > Thanks in advance > From sourceforge-raindog2 at ...94... Mon Jun 2 14:55:56 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 2 Jun 2008 08:55:56 -0400 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806020439w702125a7n9e25e66122acb6f5@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806020439w702125a7n9e25e66122acb6f5@...627...> Message-ID: <200806020855.56466.sourceforge-raindog2@...94...> On Monday 02 June 2008 07:39, M0E Lnx wrote: > Anyone have any idea on this issue? Try reversing the show and the hide lines? It shouldn't make a difference, but then, your program shouldn't be hanging after the hide anyway. Have you tried putting a STOP before the two lines and stepping through to see which one it's hanging on? It's kind of hard to diagnose without the whole project, and I understand that would be hard to post since it's client/server. Rob From pvera at ...729... Mon Jun 2 15:34:06 2008 From: pvera at ...729... (Pablo Vera) Date: Mon, 02 Jun 2008 08:34:06 -0500 Subject: [Gambas-user] Bluetooth in Gambas In-Reply-To: <48425AEC.4070104@...1740...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> <4841D9E8.7090501@...626...> <48425AEC.4070104@...1740...> Message-ID: <4843F6CE.8010102@...729...> I know very little about bluetooth, but I was able to connect a Motorola S9 headset, a Palm Tungsten T5 and a cell phone to my laptop using Gutsy. What I could gather from these experiences is that devices identify themselves and they say what type of device they are or what services they provide. The headset identified itself as an audio and handsfree device, the palm as a computer and the cell phone provided lots of services, for example: Dial Up Networking and others. So, in order for your idea to work, you need that the computer's bluetooth adapter provides the service of an audio device or headset and of a handsfree. In bluetooth talk, this are known as a "Headset Profile" and a "Handsfree Profile". Without these, your cell phone won't be able to use your computer as a handsfree, because it won't recognize it as that. And how do you do that ?, I think that all this is done in the driver level. You would need to configure your bluetooth driver to provide these services. Now all this is pure theory, because I really don't know if this is possible. In Ubuntu, the bluetooth driver can provide these services: Network Access Point, Serial Device (used by some cell phones), Audio Gateway (to connect to a headset), Dial Up Networking (to accept incoming connections) and maybe more, but these are the ones I am sure of. I hope this helps. Pablo _____________________________________________________________________ Ron wrote: > Lee McPherson schreef: > >> This is not exactly a Gambas question, but I thought someone would be >> able to point me in the right direction. >> >> I'm trying to make a Bluetooth handsfree app with Gambas. I've already >> gotten the serial interface established so that I can dial calls and >> download the phonebook from my cell phone within Gambas. I'm using >> Ubuntu (hardy) and to create the serial connection, I'm using the >> command line program rfcomm. (I had to put this program in the sudoers >> file so that I didn't have to use sudo every time I wanted to run it.) >> >> Here's the problem... I haven't been able to find any good documentation >> to establish the 2-way audio link to the cell phone with Bluetooth. >> Other online tutorials explain how to use btsco (an outdated app) to >> connect to Bluetooth headsets, but that doesn't seem to be working for >> me. I've come across an idea to have linux emulate a bluetooth headset >> so that the phone can find it, but I haven't discovered how to do that. >> Ultimately, I just want to use standard speakers and a mic connected to >> the computer to talk over bluetooth. >> >> Does anyone have ideas? I'd be extremely grateful! (if anyone has >> questions about how I've done what I have so far, I'd be glad to answer >> them.) >> >> -Lee >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From steven at ...1545... Mon Jun 2 15:44:41 2008 From: steven at ...1545... (Steven Drinnan) Date: Mon, 02 Jun 2008 21:44:41 +0800 Subject: [Gambas-user] Bluetooth in Gambas In-Reply-To: <48425AEC.4070104@...1740...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> <4841D9E8.7090501@...626...> <48425AEC.4070104@...1740...> Message-ID: <1212414281.3453.11.camel@...1857...> Bluetooth Audio is available with ALSA bluez-utils-alsa Just edit the file .asoundrc put it in your home folder you need to add pcm.bluetooth { type bluetooth device "00:0C:78:40:B8:01" //this is the id of the phone if you used rfcomm just use the same ID. profile "auto" } restart your computer. You need bluez-utils-alsa. Then you can use alsa to activate the device. I have used it in skype, audacious and mplayer. How that can be used in gambas maybe some else can jump in here. I hope that helps. On Sun, 2008-06-01 at 10:16 +0200, Ron wrote: > Lee McPherson schreef: > > This is not exactly a Gambas question, but I thought someone would be > > able to point me in the right direction. > > > > I'm trying to make a Bluetooth handsfree app with Gambas. I've already > > gotten the serial interface established so that I can dial calls and > > download the phonebook from my cell phone within Gambas. I'm using > > Ubuntu (hardy) and to create the serial connection, I'm using the > > command line program rfcomm. (I had to put this program in the sudoers > > file so that I didn't have to use sudo every time I wanted to run it.) > > > > Here's the problem... I haven't been able to find any good documentation > > to establish the 2-way audio link to the cell phone with Bluetooth. > > Other online tutorials explain how to use btsco (an outdated app) to > > connect to Bluetooth headsets, but that doesn't seem to be working for > > me. I've come across an idea to have linux emulate a bluetooth headset > > so that the phone can find it, but I haven't discovered how to do that. > > Ultimately, I just want to use standard speakers and a mic connected to > > the computer to talk over bluetooth. > > > > Does anyone have ideas? I'd be extremely grateful! (if anyone has > > questions about how I've done what I have so far, I'd be glad to answer > > them.) > > > > -Lee > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abom at ...1919... Mon Jun 2 18:25:20 2008 From: abom at ...1919... (abom at ...1919...) Date: Mon, 02 Jun 2008 19:25:20 +0300 Subject: [Gambas-user] =?utf-8?q?using_gambas_as_a_scripting_language_=3F?= Message-ID: hello everybody , i want to use gambas as a scripting language like ruby for example i have do what was said in the documentaion : #!/usr/bin/env gbs2 ' This script returns the memory really used by the system, the cache and swap being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) then saving it as file.gambas , runnign it ./file.gambas but it gives me : root at ...1920...:/home/abom# chmod +x ./gb.gambas root at ...1920...:/home/abom# ./gb.gambas /usr/bin/env: gbs2: No such file or director any help ^^ ?! From ariefbayu at ...626... Mon Jun 2 19:07:36 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 3 Jun 2008 00:07:36 +0700 Subject: [Gambas-user] using gambas as a scripting language ? In-Reply-To: References: Message-ID: <976ad9050806021007g1ff5395eoc5ebc31f7dcea57d@...627...> On 6/2/08, abom at ...1919... wrote: > > then saving it as file.gambas , runnign it ./file.gambas > > but it gives me : > > > root at ...1920...:/home/abom# chmod +x ./gb.gambas > root at ...1920...:/home/abom# ./gb.gambas > /usr/bin/env: gbs2: No such file or director > > > any help ^^ ?! Try finding where gbs2 is: $whereis gbs2 in my box there isn't any gbs2 because I only use gambas3 devel, so whereis gbs3 return: silent at ...1792...:/tmp$ whereis gbs3 gbs3: /usr/local/bin/gbs3 /usr/local/bin/gbs3.gambas and change your env information based on that: #!/usr/bin/env /usr/local/bin/gbs3 << change it to where your gbs2 is. someone have a better answer as I'm not really good in shell scripting? -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From jaap_cramer at ...67... Mon Jun 2 19:39:31 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 02 Jun 2008 19:39:31 +0200 Subject: [Gambas-user] using gambas as a scripting language ? In-Reply-To: <976ad9050806021007g1ff5395eoc5ebc31f7dcea57d@...627...> References: <976ad9050806021007g1ff5395eoc5ebc31f7dcea57d@...627...> Message-ID: I thought you should use a SUB main() ?PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) END SUB On Tue, 2008-06-03 at 00:07 +0700, Arief Bayu Purwanto wrote: > On 6/2/08, abom at ...1919... wrote: > > > > then saving it as file.gambas , runnign it ./file.gambas > > > > but it gives me : > > > > > > root at ...1920...:/home/abom# chmod +x ./gb.gambas > > root at ...1920...:/home/abom# ./gb.gambas > > /usr/bin/env: gbs2: No such file or director > > > > > > any help ^^ ?! > > > Try finding where gbs2 is: > $whereis gbs2 > in my box there isn't any gbs2 because I only use gambas3 devel, so whereis > gbs3 return: > silent at ...1792...:/tmp$ whereis gbs3 > gbs3: /usr/local/bin/gbs3 /usr/local/bin/gbs3.gambas > > and change your env information based on that: > > #!/usr/bin/env /usr/local/bin/gbs3 << change it to where your gbs2 is. > > someone have a better answer as I'm not really good in shell scripting? > > > > From gambas at ...1... Mon Jun 2 20:07:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jun 2008 20:07:43 +0200 Subject: [Gambas-user] please, need help with gb.option In-Reply-To: <200806020935.16118.rospolosco@...152...> References: <200806020935.16118.rospolosco@...152...> Message-ID: <200806022007.43097.gambas@...1...> On lundi 02 juin 2008, rospolosco at ...152... wrote: > [Second request] > > Please, could someone provide a little code to show me > how to use gb.option component. > I need an example application that accepts options > "-a -b -c" and print their arguments. I mean: > > example.gambas -a test -b foo -c bar > > result on console: > > "-a" argument is "test" > "-b" argument is "foo" > "-c" argument is "bar" > > Then, I would like to know if with gb.option an option > could take multiple args. i.e: -a foo bar -b test > > I googled a lot and searched in the Gambas documentation, > but I can't find any example. Thanks. > > Regards, > > Stefano > The component was made by Chintan Rao, and I never used it myself. Search in the developer mailing-list archive for his posts, you will find some information about the component. Regards, -- Benoit Minisini From gambas at ...1... Mon Jun 2 20:10:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jun 2008 20:10:02 +0200 Subject: [Gambas-user] using gambas as a scripting language ? In-Reply-To: References: Message-ID: <200806022010.02302.gambas@...1...> On lundi 02 juin 2008, abom at ...1919... wrote: > hello everybody , > i want to use gambas as a scripting language like ruby for example > i have do what was said in the documentaion : > > > #!/usr/bin/env gbs2 > > ' This script returns the memory really used by the system, the cache and > swap being excluded. > > FUNCTION GetUsedMemory() AS Integer > > DIM sRes AS String > DIM aRes AS String[] > DIM cVal AS NEW Collection > DIM sVal AS String > > EXEC ["cat", "/proc/meminfo"] TO sRes > > FOR EACH sVal IN Split(sRes, "\n", "", TRUE) > aRes = Split(sVal, " ", "", TRUE) > cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) > NEXT > > RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + > cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached > > END > > PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) > > > > then saving it as file.gambas , runnign it ./file.gambas > > but it gives me : > > > root at ...1920...:/home/abom# chmod +x ./gb.gambas > root at ...1920...:/home/abom# ./gb.gambas > /usr/bin/env: gbs2: No such file or director > > > any help ^^ ?! > This is a requirement for a Gambas installation: gbx2 and gbs2 must be in the PATH, otherwise executables and scripts will not work. Or maybe gbs2 was not installed? Please give more information about what you did to install Gambas. Regards, -- Benoit Minisini From rospolosco at ...152... Mon Jun 2 20:22:23 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 2 Jun 2008 20:22:23 +0200 Subject: [Gambas-user] please, need help with gb.option In-Reply-To: <200806022007.43097.gambas@...1...> References: <200806020935.16118.rospolosco@...152...> <200806022007.43097.gambas@...1...> Message-ID: <200806022022.23987.rospolosco@...152...> Il Monday 02 June 2008 20:07:43 Benoit Minisini ha scritto: > On lundi 02 juin 2008, rospolosco at ...152... wrote: > > [Second request] > > > > Please, could someone provide a little code to show me > > how to use gb.option component. > > I need an example application that accepts options > > "-a -b -c" and print their arguments. I mean: > > > > example.gambas -a test -b foo -c bar > > > > result on console: > > > > "-a" argument is "test" > > "-b" argument is "foo" > > "-c" argument is "bar" > > > > Then, I would like to know if with gb.option an option > > could take multiple args. i.e: -a foo bar -b test > > > > I googled a lot and searched in the Gambas documentation, > > but I can't find any example. Thanks. > > > > Regards, > > > > Stefano > > The component was made by Chintan Rao, and I never used it myself. Search > in the developer mailing-list archive for his posts, you will find some > information about the component. > > Regards, Ok, thanks Benoit. Also, I will try to contact him. Ciao, Stefano From wspinto at ...1405... Mon Jun 2 21:09:58 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Mon, 02 Jun 2008 16:09:58 -0300 Subject: [Gambas-user] EXTERN questions??? In-Reply-To: References: Message-ID: <1212433798.484445866448d@...1540...> Hi Benoit Minisini! I'm programing in gambas2.6 and when i create my module pop3 above: ' Gambas module file EXTERN pop3_connect(zServer AS String, nPort AS Integer) AS Integer IN "libpop3" EXTERN pop3_login(zUsername AS String, zPassword AS String) AS Integer IN "libpop3" EXTERN pop3_getmailcount() AS Integer IN "libpop3" EXTERN pop3_getmailsize(nMessageNo AS Integer) AS Integer IN "libpop3" EXTERN pop3_getmailsizelist() AS Integer IN "libpop3" EXTERN pop3_getmail(nMessageNo AS Integer, nMessageSize AS Integer) AS Variant[] IN "libpop3" EXTERN pop3_deletemail(nMessageNo AS Integer) AS Integer IN "libpop3" EXTERN pop3_disconnect() AS Integer IN "libpop3" EXTERN pop3_set_timeout(nTimeout AS Long) AS Integer IN "libpop3" PUBLIC FUNCTION pop3Connect(sServer AS String, OPTIONAL iPort AS Integer = 110) AS Integer RETURN pop3_connect(sServer, iPort) END Show this message: Cannot find dinamyc library 'libpop3.so" ... my /usr/local/lib directory: > ls -lar * drwxr-xr-x 3 root root 4096 2008-03-06 04:04 site_ruby drwxrwsr-x 3 root staff 4096 2008-04-21 13:10 python2.5 drwxr-xr-x 2 root root 4096 2008-06-02 10:02 pkgconfig -rwxr-xr-x 1 root root 19544 2008-06-02 15:19 libpop3.so.0.0.0 lrwxrwxrwx 1 root root 16 2008-06-02 15:30 libpop3.so.0 -> libpop3.so.0.0.0 lrwxrwxrwx 1 root root 16 2008-06-02 15:30 libpop3.so -> libpop3.so.0.0.0 -rwxr-xr-x 1 root root 701 2008-06-02 15:33 libpop3.la -rwxr-xr-x 1 root root 626499 2008-06-02 10:02 libml.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libml.so.1 -> libml.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libml.so -> libml.so.1.0.0 -rwxr-xr-x 1 root root 814 2008-06-02 10:02 libml.la -rwxr-xr-x 1 root root 470285 2008-06-02 10:02 libhighgui.so.1.0.0 lrwxrwxrwx 1 root root 19 2008-06-02 10:02 libhighgui.so.1 -> libhighgui.so.1.0.0 lrwxrwxrwx 1 root root 19 2008-06-02 10:02 libhighgui.so -> libhighgui.so.1.0.0 -rwxr-xr-x 1 root root 1306 2008-06-02 10:02 libhighgui.la -rwxr-xr-x 1 root root 2619544 2008-06-02 10:02 libcxcore.so.1.0.0 lrwxrwxrwx 1 root root 18 2008-06-02 10:02 libcxcore.so.1 -> libcxcore.so.1.0.0 lrwxrwxrwx 1 root root 18 2008-06-02 10:02 libcxcore.so -> libcxcore.so.1.0.0 -rwxr-xr-x 1 root root 810 2008-06-02 10:02 libcxcore.la -rwxr-xr-x 1 root root 2025837 2008-06-02 10:02 libcv.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libcv.so.1 -> libcv.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libcv.so -> libcv.so.1.0.0 -rwxr-xr-x 1 root root 814 2008-06-02 10:02 libcv.la -rw-r--r-- 1 root root 382676 2008-06-02 10:02 libcvhaartraining.a -rwxr-xr-x 1 root root 1956055 2008-06-02 10:02 libcvaux.so.1.0.0 lrwxrwxrwx 1 root root 17 2008-06-02 10:02 libcvaux.so.1 -> libcvaux.so.1.0.0 lrwxrwxrwx 1 root root 17 2008-06-02 10:02 libcvaux.so -> libcvaux.so.1.0.0 -rwxr-xr-x 1 root root 856 2008-06-02 10:02 libcvaux.la drwxr-xr-x 2 root root 12288 2008-06-02 15:29 gambas2 drwxr-xr-x 11 root root 4096 2008-06-02 11:42 .. drwxr-xr-x 6 root root 4096 2008-06-02 15:33 . Any ideia??? Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From wspinto at ...1405... Mon Jun 2 21:09:34 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Mon, 02 Jun 2008 16:09:34 -0300 Subject: [Gambas-user] Gambas-user Digest, Vol 25, Issue 2 In-Reply-To: References: Message-ID: <1212433774.4844456eab897@...1540...> Hi Benoit Minisini! I'm programing in gambas2.6 and when i create my module pop3 above: ' Gambas module file EXTERN pop3_connect(zServer AS String, nPort AS Integer) AS Integer IN "libpop3" EXTERN pop3_login(zUsername AS String, zPassword AS String) AS Integer IN "libpop3" EXTERN pop3_getmailcount() AS Integer IN "libpop3" EXTERN pop3_getmailsize(nMessageNo AS Integer) AS Integer IN "libpop3" EXTERN pop3_getmailsizelist() AS Integer IN "libpop3" EXTERN pop3_getmail(nMessageNo AS Integer, nMessageSize AS Integer) AS Variant[] IN "libpop3" EXTERN pop3_deletemail(nMessageNo AS Integer) AS Integer IN "libpop3" EXTERN pop3_disconnect() AS Integer IN "libpop3" EXTERN pop3_set_timeout(nTimeout AS Long) AS Integer IN "libpop3" PUBLIC FUNCTION pop3Connect(sServer AS String, OPTIONAL iPort AS Integer = 110) AS Integer RETURN pop3_connect(sServer, iPort) END Show this message: Cannot find dinamyc library 'libpop3.so" ... my /usr/local/lib directory: > ls -lar * drwxr-xr-x 3 root root 4096 2008-03-06 04:04 site_ruby drwxrwsr-x 3 root staff 4096 2008-04-21 13:10 python2.5 drwxr-xr-x 2 root root 4096 2008-06-02 10:02 pkgconfig -rwxr-xr-x 1 root root 19544 2008-06-02 15:19 libpop3.so.0.0.0 lrwxrwxrwx 1 root root 16 2008-06-02 15:30 libpop3.so.0 -> libpop3.so.0.0.0 lrwxrwxrwx 1 root root 16 2008-06-02 15:30 libpop3.so -> libpop3.so.0.0.0 -rwxr-xr-x 1 root root 701 2008-06-02 15:33 libpop3.la -rwxr-xr-x 1 root root 626499 2008-06-02 10:02 libml.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libml.so.1 -> libml.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libml.so -> libml.so.1.0.0 -rwxr-xr-x 1 root root 814 2008-06-02 10:02 libml.la -rwxr-xr-x 1 root root 470285 2008-06-02 10:02 libhighgui.so.1.0.0 lrwxrwxrwx 1 root root 19 2008-06-02 10:02 libhighgui.so.1 -> libhighgui.so.1.0.0 lrwxrwxrwx 1 root root 19 2008-06-02 10:02 libhighgui.so -> libhighgui.so.1.0.0 -rwxr-xr-x 1 root root 1306 2008-06-02 10:02 libhighgui.la -rwxr-xr-x 1 root root 2619544 2008-06-02 10:02 libcxcore.so.1.0.0 lrwxrwxrwx 1 root root 18 2008-06-02 10:02 libcxcore.so.1 -> libcxcore.so.1.0.0 lrwxrwxrwx 1 root root 18 2008-06-02 10:02 libcxcore.so -> libcxcore.so.1.0.0 -rwxr-xr-x 1 root root 810 2008-06-02 10:02 libcxcore.la -rwxr-xr-x 1 root root 2025837 2008-06-02 10:02 libcv.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libcv.so.1 -> libcv.so.1.0.0 lrwxrwxrwx 1 root root 14 2008-06-02 10:02 libcv.so -> libcv.so.1.0.0 -rwxr-xr-x 1 root root 814 2008-06-02 10:02 libcv.la -rw-r--r-- 1 root root 382676 2008-06-02 10:02 libcvhaartraining.a -rwxr-xr-x 1 root root 1956055 2008-06-02 10:02 libcvaux.so.1.0.0 lrwxrwxrwx 1 root root 17 2008-06-02 10:02 libcvaux.so.1 -> libcvaux.so.1.0.0 lrwxrwxrwx 1 root root 17 2008-06-02 10:02 libcvaux.so -> libcvaux.so.1.0.0 -rwxr-xr-x 1 root root 856 2008-06-02 10:02 libcvaux.la drwxr-xr-x 2 root root 12288 2008-06-02 15:29 gambas2 drwxr-xr-x 11 root root 4096 2008-06-02 11:42 .. drwxr-xr-x 6 root root 4096 2008-06-02 15:33 . Any ideia??? Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From al_ur30 at ...67... Tue Jun 3 05:33:04 2008 From: al_ur30 at ...67... (Alejandro Uribe) Date: Mon, 2 Jun 2008 23:33:04 -0400 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <200806011427.26720.gambas@...1...> References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> Message-ID: Here is the log, i note a problem in the line "dpkg-buildpackage: fallo: debian/rules build gave error exit status 2", but i don't know why this error appears. Creando paquete para Ubuntu. Creando el directorio de construcci?n. Creando archivo de escritorio... Se est?n debianizando los fuentes. Creando paquete... dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion dpkg-buildpackage: Versi?n fuente 0.0-1 dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y Alejandro Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. dpkg-buildpackage: arquitectura de anfitri?n i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dpkg-source: construyendo gambas-t1-algoritmoconmutacion en gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 dpkg-source: construyendo gambas-t1-algoritmoconmutacion en gambas-t1-algoritmoconmutacion_0.0-1.diff.gz dpkg-source: construyendo gambas-t1-algoritmoconmutacion en gambas-t1-algoritmoconmutacion_0.0-1.dsc dpkg-source: aviso: ignorando borrado del arachivo src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas dpkg-source: aviso: ignorando borrado del directorio src/T1_AlgoritmoConmutacion/.gambas dh_testdir debian/rules build touch build-stamp /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion gbc: project file not found: /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project make: *** [build-stamp] Error 1 dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 Guardando archivo CHANGELOG. Los paquetes han sido creados con ?xito. I hope you can determine what's the problem here. Thanks again! > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Sun, 1 Jun 2008 14:27:26 +0200 > Subject: Re: [Gambas-user] Make instalation package don't work > > On samedi 31 mai 2008, tsakaji30 wrote: > > Hello again, another question: i wanted to pack an application that i have > > made in gambas2 but when i try to use the option "Make instalation package" > > (there is in the tools bar), i complete the assistant (i have deb-helper > > installed) but it don't generate a .deb, only a .tar.gz (with the program > > and the source code). > > > > Is this option not implemented yet in Gambas 2-2.5.0? > > > > Thanks for your answers ;) > > Can you send the log of the packager? It is written if the textbox of the > wizard final step. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From al_ur30 at ...67... Tue Jun 3 05:40:19 2008 From: al_ur30 at ...67... (tsakaji30) Date: Mon, 2 Jun 2008 20:40:19 -0700 (PDT) Subject: [Gambas-user] Gambas runtime? Message-ID: <17615475.post@...1379...> My question is if exists posibility of execute a gambas program in another PC without need of installing it? Just like a runtime package or something else, i have read some post about that but i still don't know, i have to pack a runtime? Or can I use a generic package? -- View this message in context: http://www.nabble.com/Gambas-runtime--tp17615475p17615475.html Sent from the gambas-user mailing list archive at Nabble.com. From al_ur30 at ...67... Tue Jun 3 05:45:25 2008 From: al_ur30 at ...67... (tsakaji30) Date: Mon, 2 Jun 2008 20:45:25 -0700 (PDT) Subject: [Gambas-user] VB Tabindex propertry? Message-ID: <17615517.post@...1379...> I have a problem right now. I am making a database management program for the library in my university and I have some forms with very much textboxes. I wanted to use the "tabindex" property (existent in VB), but i couldn't find it! I have organized the Hierarchy, but I have no response! I mean, I press the tab key and nothing happens (no control in the form got the focus). Thanks! -- View this message in context: http://www.nabble.com/VB-Tabindex-propertry--tp17615517p17615517.html Sent from the gambas-user mailing list archive at Nabble.com. From jredrejo at ...626... Tue Jun 3 10:16:52 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Tue, 3 Jun 2008 10:16:52 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> Message-ID: <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> The problem is that your project name begins with "gambas". Somewhere in the packaging code it removes "gambas" from the project name,so it does not found it: ... dpkg-source: construyendo gambas-t1-algoritmoconmutacion en gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz ... /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion .. It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but the compiler looks for T1-AlgoritmoConmutacion, not gambas-T1-AlgoritmoConmutacion. Try changing your project name. But before doing so, please, try creating a rpm package and tell us if it works right, to know if this is a problem of the debian packaging or a problem of the common routines for all the packaging projects. It would make easier debugging the problem. Regards. Jos? L. 2008/6/3 Alejandro Uribe : > > Here is the log, i note a problem in the line "dpkg-buildpackage: fallo: > debian/rules build gave error exit status 2", but i don't know why this > error appears. > > Creando paquete para Ubuntu. > Creando el directorio de construcci?n. > Creando archivo de escritorio... > Se est?n debianizando los fuentes. > Creando paquete... > dpkg-buildpackage: set CPPFLAGS to default value: > dpkg-buildpackage: set CFLAGS to default value: -g -O2 > dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > dpkg-buildpackage: set FFLAGS to default value: -g -O2 > dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions > dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion > dpkg-buildpackage: Versi?n fuente 0.0-1 > dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y Alejandro > Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. < > sakura_bb30 at ...67..., al_ur30 at ...67...> > dpkg-buildpackage: arquitectura de anfitri?n i386 > debian/rules clean > dh_testdir > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > gambas-t1-algoritmoconmutacion_0.0-1.diff.gz > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > gambas-t1-algoritmoconmutacion_0.0-1.dsc > dpkg-source: aviso: ignorando borrado del arachivo > src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas > dpkg-source: aviso: ignorando borrado del directorio > src/T1_AlgoritmoConmutacion/.gambas > dh_testdir > debian/rules build > touch build-stamp > /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > gbc: project file not found: > /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project > make: *** [build-stamp] Error 1 > dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 > Guardando archivo CHANGELOG. > Los paquetes han sido creados con ?xito. > > I hope you can determine what's the problem here. > > Thanks again! > > > From: gambas at ...1... > > To: gambas-user at lists.sourceforge.net > > Date: Sun, 1 Jun 2008 14:27:26 +0200 > > Subject: Re: [Gambas-user] Make instalation package don't work > > > > On samedi 31 mai 2008, tsakaji30 wrote: > > > Hello again, another question: i wanted to pack an application that i > have > > > made in gambas2 but when i try to use the option "Make instalation > package" > > > (there is in the tools bar), i complete the assistant (i have > deb-helper > > > installed) but it don't generate a .deb, only a .tar.gz (with the > program > > > and the source code). > > > > > > Is this option not implemented yet in Gambas 2-2.5.0? > > > > > > Thanks for your answers ;) > > > > Can you send the log of the packager? It is written if the textbox of the > > wizard final step. > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now! > http://www.live.com/getstarted.aspx > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Tue Jun 3 10:32:48 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 10:32:48 +0200 Subject: [Gambas-user] Gambas runtime? In-Reply-To: <17615475.post@...1379...> References: <17615475.post@...1379...> Message-ID: <200806031032.48733.rospolosco@...152...> Il Tuesday 03 June 2008 05:40:19 tsakaji30 ha scritto: > My question is if exists posibility of execute a gambas program in another > PC without need of installing it? Just like a runtime package or something > else, i have read some post about that but i still don't know, i have to > pack a runtime? Or can I use a generic package? No. If you want to run a Gambas program, Gambas must be installed. It's the same thing as Java, python etc etc Maybe one day GNU/linux distributors will open their eyes and will install Gambas as a default package, just like python. Stefano From rospolosco at ...152... Tue Jun 3 10:46:12 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 10:46:12 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> References: <17570006.post@...1379...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> Message-ID: <200806031046.13139.rospolosco@...152...> Il Tuesday 03 June 2008 10:16:52 Jos? Luis Redrejo ha scritto: > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but the > compiler looks for T1-AlgoritmoConmutacion, not > gambas-T1-AlgoritmoConmutacion. > > Try changing your project name. But before doing so, please, try creating a > rpm package and tell us if it works right, ?to know if this is a problem of > the debian packaging or a problem of the common routines for all the > packaging projects. It would make easier debugging the problem. > > Regards. > Jos? L. Just an info to help debugging. I made a project gambas-testapp and then I create a Slackware installation package with *no* problem. Then I create a Mandriva RPM package with *no* problem. Stefano, Bye. From rospolosco at ...152... Tue Jun 3 10:48:57 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 10:48:57 +0200 Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <17615517.post@...1379...> References: <17615517.post@...1379...> Message-ID: <200806031048.58020.rospolosco@...152...> Il Tuesday 03 June 2008 05:45:25 tsakaji30 ha scritto: > I have a problem right now. I am making a database management program for > the library in my university and I have some forms with very much > textboxes. I wanted to use the "tabindex" property (existent in VB), but i > couldn't find it! I have organized the Hierarchy, but I have no response! I > mean, I press the tab key and nothing happens (no control in the form got > the focus). > > Thanks! I've never programmed using VB. What do you exactly need when you press the Tab key? Stefano From gambas at ...1... Tue Jun 3 11:08:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jun 2008 11:08:42 +0200 Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <17615517.post@...1379...> References: <17615517.post@...1379...> Message-ID: <200806031108.42751.gambas@...1...> On mardi 03 juin 2008, tsakaji30 wrote: > I have a problem right now. I am making a database management program for > the library in my university and I have some forms with very much > textboxes. I wanted to use the "tabindex" property (existent in VB), but i > couldn't find it! I have organized the Hierarchy, but I have no response! I > mean, I press the tab key and nothing happens (no control in the form got > the focus). > > Thanks! Which version of Gambas do you use? Do you use gb.qt or gb.gtk? -- Benoit Minisini From jredrejo at ...626... Tue Jun 3 12:47:45 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Tue, 3 Jun 2008 12:47:45 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <200806031046.13139.rospolosco@...152...> References: <17570006.post@...1379...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> <200806031046.13139.rospolosco@...152...> Message-ID: <8eb28a500806030347x43b2e97dv3ba80590e489957a@...627...> can you create a deb package to know if you can reproduce the bug? 2008/6/3 Stefano Palmeri : > Il Tuesday 03 June 2008 10:16:52 Jos? Luis Redrejo ha scritto: > > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but > the > > compiler looks for T1-AlgoritmoConmutacion, not > > gambas-T1-AlgoritmoConmutacion. > > > > Try changing your project name. But before doing so, please, try creating > a > > rpm package and tell us if it works right, to know if this is a problem > of > > the debian packaging or a problem of the common routines for all the > > packaging projects. It would make easier debugging the problem. > > > > Regards. > > Jos? L. > > Just an info to help debugging. > I made a project gambas-testapp and then I create > a Slackware installation package with *no* problem. > Then I create a Mandriva RPM package with *no* problem. > > Stefano, > > Bye. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Tue Jun 3 12:58:03 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 12:58:03 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <8eb28a500806030347x43b2e97dv3ba80590e489957a@...627...> References: <17570006.post@...1379...> <200806031046.13139.rospolosco@...152...> <8eb28a500806030347x43b2e97dv3ba80590e489957a@...627...> Message-ID: <200806031258.04216.rospolosco@...152...> Il Tuesday 03 June 2008 12:47:45 Jos? Luis Redrejo ha scritto: > can you create a deb package to know if you can reproduce the bug? > sorry, not. I'm on Slackware. no debhelper installed. bye > 2008/6/3 Stefano Palmeri : > > Il Tuesday 03 June 2008 10:16:52 Jos? Luis Redrejo ha scritto: > > > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but > > > > the > > > > > compiler looks for T1-AlgoritmoConmutacion, not > > > gambas-T1-AlgoritmoConmutacion. > > > > > > Try changing your project name. But before doing so, please, try > > > creating > > > > a > > > > > rpm package and tell us if it works right, to know if this is a > > > problem > > > > of > > > > > the debian packaging or a problem of the common routines for all the > > > packaging projects. It would make easier debugging the problem. > > > > > > Regards. > > > Jos? L. > > > > Just an info to help debugging. > > I made a project gambas-testapp and then I create > > a Slackware installation package with *no* problem. > > Then I create a Mandriva RPM package with *no* problem. > > > > Stefano, > > > > Bye. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pmathijssen at ...626... Tue Jun 3 14:08:33 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Tue, 3 Jun 2008 14:08:33 +0200 Subject: [Gambas-user] search in gridview or columnview Message-ID: Hello, I have a application in wich i want to use a columnview or a gridview. I am searching for some code to search the gridview or columnview for a piece of text. The grid will be two columns wide. I want the rows that contain the found text selected. I found a piece of code to search a columnview but it doesn't do exactly what i want. I am in the proces of making this app. that i developed in realbasic again in gambas. http://plekzondernaam.wordpress.com/not2complex/ The gambas version looks like this now: http://img112.imageshack.us/img112/8049/not2complexgambasky5.png I am also looking for a piece of code to fill the gridview or columnview with a tab-delimited file. So one piece of text goes in column 1 and the other piece in column 2. Does someone have this already? Thanks in advance. Peter Mathijssen From 01homer01 at ...626... Tue Jun 3 15:30:53 2008 From: 01homer01 at ...626... (homer01) Date: Tue, 03 Jun 2008 15:30:53 +0200 Subject: [Gambas-user] Problem with columnview control Message-ID: Hi I've problem to fill a columnview control. I've set the column's number to 3. I then add an item, but I can't add text in the second and third column. Here is my code clwList.Columns[3] clwList.Add["0001","1"] here is the line that won't work clwList.Item["0001"][1].Text = "toto" I've tried with clwList.Item["0001",1].Text = "toto" I've put this code in Form_Open sub, or in the Form_Resize sub But every time I run the programm I get the message : Null Object If someone can shade some light on this. Thanks for your help. homer01 From joe1962 at ...626... Tue Jun 3 15:33:09 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 3 Jun 2008 09:33:09 -0400 Subject: [Gambas-user] Gambas runtime? In-Reply-To: <200806031032.48733.rospolosco@...152...> References: <17615475.post@...1379...> <200806031032.48733.rospolosco@...152...> Message-ID: <6c208f950806030633x6359bb66sa9a71397024e1832@...627...> On Tue, Jun 3, 2008 at 4:32 AM, Stefano Palmeri wrote: > Il Tuesday 03 June 2008 05:40:19 tsakaji30 ha scritto: >> My question is if exists posibility of execute a gambas program in another >> PC without need of installing it? Just like a runtime package or something >> else, i have read some post about that but i still don't know, i have to >> pack a runtime? Or can I use a generic package? > > No. If you want to run a Gambas program, Gambas must be installed. > It's the same thing as Java, python etc etc > Maybe one day GNU/linux distributors will open their eyes and will > install Gambas as a default package, just like python. > Actually, you can install the runtime and necessary support packages (gb.qt, gb.gtj, etc...) without the IDE. BTW, VectorLinux has Gambas 1.0.19 runtime stuff included as default for quite a while now, in fact, many of our own system utilities are "made in Gambas". We should include 2.x soon too, now that it is stable. Regards, Joe1962 From wdahn at ...1000... Tue Jun 3 16:11:31 2008 From: wdahn at ...1000... (Werner) Date: Tue, 03 Jun 2008 22:11:31 +0800 Subject: [Gambas-user] Problem with columnview control In-Reply-To: References: Message-ID: <48455113.0@...1000...> homer01 wrote: > Hi > > I've problem to fill a columnview control. > > I've set the column's number to 3. > I then add an item, but I can't add text in the second and third column. > > Here is my code > > clwList.Columns[3] > clwList.Add["0001","1"] > > here is the line that won't work > clwList.Item["0001"][1].Text = "toto" > I've tried with > clwList.Item["0001",1].Text = "toto" > > I've put this code in Form_Open sub, or in the Form_Resize sub > But every time I run the programm I get the message : Null Object > > If someone can shade some light on this. > Thanks for your help. > > Here is a simple columnview demo. Hope it helps. Regards Werner -------------- next part -------------- A non-text attachment was scrubbed... Name: cvwDemo.tar.gz Type: application/x-gzip Size: 11984 bytes Desc: not available URL: From rospolosco at ...152... Tue Jun 3 17:34:40 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 17:34:40 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: References: Message-ID: <200806031734.40333.rospolosco@...152...> Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > Hello, > > I have a application in wich i want to use a columnview or a gridview. I am > searching for some code to search the gridview or columnview for a piece of > text. The grid will be two columns wide. > I want the rows that contain the found text selected. > > I found a piece of code to search a columnview but it doesn't do exactly > what i want. I've attached a gridview example. It selects rows which contains "hello". > > I am in the proces of making this app. that i developed in realbasic again > in gambas. > http://plekzondernaam.wordpress.com/not2complex/ > > The gambas version looks like this now: > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > I am also looking for a piece of code to fill the gridview or columnview > with a tab-delimited file. So one piece of text goes in column 1 and the > other piece in column 2. > -------------------------------------------------------------------- DIM sStringArray as String[] DIM sWord as string sStringArray = split(file.load("path to file"), "\t") for each sWord in sStringArray 'here fill the grid next --------------------------------------------------- bye > Does someone have this already? > > Thanks in advance. > > Peter Mathijssen > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: gridexample-0.0.1.tar.gz Type: application/x-tgz Size: 7929 bytes Desc: not available URL: From m0e.lnx at ...626... Tue Jun 3 17:41:10 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 3 Jun 2008 10:40:10 -0501 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806020855.56466.sourceforge-raindog2@...94...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806020439w702125a7n9e25e66122acb6f5@...627...> <200806020855.56466.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> I have already tried this, and got nowhere. It's really easy to re-produce.. Create new project Add a container object to FMain (vpanel1) Add a Button object to Fmaine (Button1) Create Form1 and Form2 Fmain_load() Form1.Reparent(Fmain.vpanel1) Form1.show END Button1_click() Form1.hide ' Hide the form that is embedded into the vpanel Form2.reparent(Fmain.vpanel1) 'prepare the new form to embed into fmain Form2.show END That's where I end up with nothing.. the original form hides, but the new one does not show up.. Please help On Mon, Jun 2, 2008 at 7:54 AM, Rob wrote: > On Monday 02 June 2008 07:39, M0E Lnx wrote: >> Anyone have any idea on this issue? > > Try reversing the show and the hide lines? It shouldn't make a > difference, but then, your program shouldn't be hanging after the > hide anyway. Have you tried putting a STOP before the two lines and > stepping through to see which one it's hanging on? > > It's kind of hard to diagnose without the whole project, and I > understand that would be hard to post since it's client/server. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wspinto at ...1405... Tue Jun 3 18:12:34 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Tue, 03 Jun 2008 13:12:34 -0300 Subject: [Gambas-user] Dificulty with Extern call when return struct variable In-Reply-To: References: Message-ID: <1212509554.48456d7291212@...1539...> Hi Benoit! The missing message i solved with ldconfig. But not understand how return struct in Extern xxxx(zzz AS integer, ooo AS integer) AS yyyy IN "libpop3" I'm send my project with C program for you help me. ipConnect-0.0.1.tar.gz (gambas3 project) my problem is pop3.pop3GetEmail(...) libpop3-0.4.1.tar.gz (C program) Best Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! -------------- next part -------------- A non-text attachment was scrubbed... Name: ipConnect-0.0.1.tar.gz Type: application/gzip Size: 8448 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: libpop3-0.4.1.tar.gz Type: application/gzip Size: 21251 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Tue Jun 3 18:27:11 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 3 Jun 2008 12:27:11 -0400 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806020855.56466.sourceforge-raindog2@...94...> <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> Message-ID: <200806031227.12109.sourceforge-raindog2@...94...> On Tuesday 03 June 2008 11:41, M0E Lnx wrote: > I have already tried this, and got nowhere. What do you mean by "got nowhere"? When you stepped through it, did it just never get to the STOP? After which line specifically did it do whatever it did wrong? > It's really easy to re-produce.. It doesn't happen for me at all using the code you posted (adjusted so it compiles.) In fact, I created a second button to switch the forms back and I can just keep switching between them with no problem. What Gambas version are you using? Rob From pmathijssen at ...626... Tue Jun 3 19:04:08 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Tue, 3 Jun 2008 19:04:08 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: <200806031734.40333.rospolosco@...152...> References: <200806031734.40333.rospolosco@...152...> Message-ID: Hi Stefano, Thank you very much. I played a bit with your code and changed it to: DIM iCountCol, iCountRow AS Integer IF Len(txtsearch.text) = 0 THEN RETURN GridView1.Mode = Select.Multiple FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text) > 0 THEN GridView1.Rows[iCountRow].Selected = TRUE ELSE GridView1.Rows[iCountRow].Selected = FALSE ENDIF NEXT NEXT This way rows get selected when only a part of the text is found. I put the routine in a textbox_change event. Do you know how to get the row that has been clicked on with the mouse. I want to select it. I wonder is a gridview right for this sort of thing, or is a columnview better? Peter 2008/6/3 Stefano Palmeri : > Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > > Hello, > > > > I have a application in wich i want to use a columnview or a gridview. I > am > > searching for some code to search the gridview or columnview for a piece > of > > text. The grid will be two columns wide. > > I want the rows that contain the found text selected. > > > > I found a piece of code to search a columnview but it doesn't do exactly > > what i want. > > I've attached a gridview example. It selects rows which contains "hello". > > > > > I am in the proces of making this app. that i developed in realbasic > again > > in gambas. > > http://plekzondernaam.wordpress.com/not2complex/ > > > > The gambas version looks like this now: > > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > > > I am also looking for a piece of code to fill the gridview or columnview > > with a tab-delimited file. So one piece of text goes in column 1 and the > > other piece in column 2. > > > -------------------------------------------------------------------- > DIM sStringArray as String[] > DIM sWord as string > > sStringArray = split(file.load("path to file"), "\t") > > for each sWord in sStringArray > > 'here fill the grid > > next > > --------------------------------------------------- > > bye > > > > > > Does someone have this already? > > > > Thanks in advance. > > > > Peter Mathijssen > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Tue Jun 3 19:08:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jun 2008 19:08:38 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806020855.56466.sourceforge-raindog2@...94...> <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> Message-ID: <200806031908.38893.gambas@...1...> On mardi 03 juin 2008, M0E Lnx wrote: > I have already tried this, and got nowhere. > > It's really easy to re-produce.. > > Create new project > Add a container object to FMain (vpanel1) > Add a Button object to Fmaine (Button1) > Create Form1 and Form2 > > Fmain_load() > Form1.Reparent(Fmain.vpanel1) > Form1.show > END > > Button1_click() > Form1.hide ' Hide the form that is embedded into the vpanel > Form2.reparent(Fmain.vpanel1) 'prepare the new form to embed into fmain > Form2.show > END > > That's where I end up with nothing.. the original form hides, but the > new one does not show up.. > > > Please help > I thought you were talking about embedding forms with the Embedder control! Do you use gb.qt or gb.gtk? -- Benoit Minisini From gambas at ...1... Tue Jun 3 19:16:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jun 2008 19:16:57 +0200 Subject: [Gambas-user] How to suspend Draw ? In-Reply-To: <200805271753.52987.pinozollo@...626...> References: <200805271753.52987.pinozollo@...626...> Message-ID: <200806031916.57825.gambas@...1...> On mardi 27 mai 2008, Pino Zollo wrote: > Hi Everybody, > > Is there a way to suspend Draw from drawing to allow the Resize to be done > ? > > I have > TRY DrawingArea1.Resize(ME.ClientW, ME.ClientH) > > I did put TRY just because gives error as the DrawingArea1 is redrawn > frequently. > > ....but in such a way the resize is never done. > > Regards. > > Pino > You should not have to resize the DrawingArea you are drawing into. There is something weird in the logic of your code! -- Benoit Minisini From rospolosco at ...152... Tue Jun 3 19:50:24 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 19:50:24 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: References: <200806031734.40333.rospolosco@...152...> Message-ID: <200806031950.24455.rospolosco@...152...> Il Tuesday 03 June 2008 19:04:08 Peter Mathijssen ha scritto: > Hi Stefano, > > Thank you very much. I played a bit with your code and changed it to: > > > DIM iCountCol, iCountRow AS Integer > > IF Len(txtsearch.text) = 0 THEN RETURN > > GridView1.Mode = Select.Multiple > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text) > 0 > THEN > GridView1.Rows[iCountRow].Selected = TRUE > ELSE > GridView1.Rows[iCountRow].Selected = FALSE > ENDIF > NEXT > NEXT > > This way rows get selected when only a part of the text is found. I put the > routine in a textbox_change event. > Do you know how to get the row that has been clicked on with the mouse. I > want to select it. > PUBLIC SUB GridView1_Click() PRINT LAST.Row END > I wonder is a gridview right for this sort of thing, or is a columnview > better? > I don't know :-) It really depends on what you're doing... Stefano > Peter > > 2008/6/3 Stefano Palmeri : > > Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > > > Hello, > > > > > > I have a application in wich i want to use a columnview or a gridview. > > > I > > > > am > > > > > searching for some code to search the gridview or columnview for a > > > piece > > > > of > > > > > text. The grid will be two columns wide. > > > I want the rows that contain the found text selected. > > > > > > I found a piece of code to search a columnview but it doesn't do > > > exactly what i want. > > > > I've attached a gridview example. It selects rows which contains "hello". > > > > > I am in the proces of making this app. that i developed in realbasic > > > > again > > > > > in gambas. > > > http://plekzondernaam.wordpress.com/not2complex/ > > > > > > The gambas version looks like this now: > > > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > > > > > I am also looking for a piece of code to fill the gridview or > > > columnview with a tab-delimited file. So one piece of text goes in > > > column 1 and the other piece in column 2. > > > > -------------------------------------------------------------------- > > DIM sStringArray as String[] > > DIM sWord as string > > > > sStringArray = split(file.load("path to file"), "\t") > > > > for each sWord in sStringArray > > > > 'here fill the grid > > > > next > > > > --------------------------------------------------- > > > > bye > > > > > Does someone have this already? > > > > > > Thanks in advance. > > > > > > Peter Mathijssen > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pmathijssen at ...626... Tue Jun 3 20:10:27 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Tue, 3 Jun 2008 20:10:27 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: <200806031950.24455.rospolosco@...152...> References: <200806031734.40333.rospolosco@...152...> <200806031950.24455.rospolosco@...152...> Message-ID: Hi Stefano, I put this in a gridview_click event GridView1.Rows[LAST.row].Selected = TRUE But nothing happens, when i use print last.row it works fine. Peter 2008/6/3 Stefano Palmeri : > Il Tuesday 03 June 2008 19:04:08 Peter Mathijssen ha scritto: > > Hi Stefano, > > > > Thank you very much. I played a bit with your code and changed it to: > > > > > > DIM iCountCol, iCountRow AS Integer > > > > IF Len(txtsearch.text) = 0 THEN RETURN > > > > GridView1.Mode = Select.Multiple > > > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text) > > 0 > > THEN > > GridView1.Rows[iCountRow].Selected = TRUE > > ELSE > > GridView1.Rows[iCountRow].Selected = FALSE > > ENDIF > > NEXT > > NEXT > > > > This way rows get selected when only a part of the text is found. I put > the > > routine in a textbox_change event. > > > Do you know how to get the row that has been clicked on with the mouse. I > > want to select it. > > > > PUBLIC SUB GridView1_Click() > > PRINT LAST.Row > > END > > > > > I wonder is a gridview right for this sort of thing, or is a columnview > > better? > > > > I don't know :-) > It really depends on what you're doing... > > Stefano > > > > Peter > > > > 2008/6/3 Stefano Palmeri : > > > Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > > > > Hello, > > > > > > > > I have a application in wich i want to use a columnview or a > gridview. > > > > I > > > > > > am > > > > > > > searching for some code to search the gridview or columnview for a > > > > piece > > > > > > of > > > > > > > text. The grid will be two columns wide. > > > > I want the rows that contain the found text selected. > > > > > > > > I found a piece of code to search a columnview but it doesn't do > > > > exactly what i want. > > > > > > I've attached a gridview example. It selects rows which contains > "hello". > > > > > > > I am in the proces of making this app. that i developed in realbasic > > > > > > again > > > > > > > in gambas. > > > > http://plekzondernaam.wordpress.com/not2complex/ > > > > > > > > The gambas version looks like this now: > > > > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > > > > > > > I am also looking for a piece of code to fill the gridview or > > > > columnview with a tab-delimited file. So one piece of text goes in > > > > column 1 and the other piece in column 2. > > > > > > -------------------------------------------------------------------- > > > DIM sStringArray as String[] > > > DIM sWord as string > > > > > > sStringArray = split(file.load("path to file"), "\t") > > > > > > for each sWord in sStringArray > > > > > > 'here fill the grid > > > > > > next > > > > > > --------------------------------------------------- > > > > > > bye > > > > > > > Does someone have this already? > > > > > > > > Thanks in advance. > > > > > > > > Peter Mathijssen > > > > > ----------------------------------------------------------------------- > > > >-- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Tue Jun 3 20:16:21 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 3 Jun 2008 20:16:21 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: References: <200806031950.24455.rospolosco@...152...> Message-ID: <200806032016.21731.rospolosco@...152...> Il Tuesday 03 June 2008 20:10:27 Peter Mathijssen ha scritto: > Hi Stefano, > > I put this in a gridview_click event > > GridView1.Rows[LAST.row].Selected = TRUE > > But nothing happens, when i use print last.row it works fine. > > Peter > But when you click on a row it's automatically selected; the row should turn its background color. I can't understand. Stefano > 2008/6/3 Stefano Palmeri : > > Il Tuesday 03 June 2008 19:04:08 Peter Mathijssen ha scritto: > > > Hi Stefano, > > > > > > Thank you very much. I played a bit with your code and changed it to: > > > > > > > > > DIM iCountCol, iCountRow AS Integer > > > > > > IF Len(txtsearch.text) = 0 THEN RETURN > > > > > > GridView1.Mode = Select.Multiple > > > > > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > > > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > > > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text) > > > > > > > > 0 > > > > > THEN > > > GridView1.Rows[iCountRow].Selected = TRUE > > > ELSE > > > GridView1.Rows[iCountRow].Selected = FALSE > > > ENDIF > > > NEXT > > > NEXT > > > > > > This way rows get selected when only a part of the text is found. I put > > > > the > > > > > routine in a textbox_change event. > > > > > > Do you know how to get the row that has been clicked on with the mouse. > > > I want to select it. > > > > PUBLIC SUB GridView1_Click() > > > > PRINT LAST.Row > > > > END > > > > > I wonder is a gridview right for this sort of thing, or is a columnview > > > better? > > > > I don't know :-) > > It really depends on what you're doing... > > > > Stefano > > > > > Peter > > > > > > 2008/6/3 Stefano Palmeri : > > > > Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > > > > > Hello, > > > > > > > > > > I have a application in wich i want to use a columnview or a > > > > gridview. > > > > > > > I > > > > > > > > am > > > > > > > > > searching for some code to search the gridview or columnview for a > > > > > piece > > > > > > > > of > > > > > > > > > text. The grid will be two columns wide. > > > > > I want the rows that contain the found text selected. > > > > > > > > > > I found a piece of code to search a columnview but it doesn't do > > > > > exactly what i want. > > > > > > > > I've attached a gridview example. It selects rows which contains > > > > "hello". > > > > > > > I am in the proces of making this app. that i developed in > > > > > realbasic > > > > > > > > again > > > > > > > > > in gambas. > > > > > http://plekzondernaam.wordpress.com/not2complex/ > > > > > > > > > > The gambas version looks like this now: > > > > > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > > > > > > > > > I am also looking for a piece of code to fill the gridview or > > > > > columnview with a tab-delimited file. So one piece of text goes in > > > > > column 1 and the other piece in column 2. > > > > > > > > -------------------------------------------------------------------- > > > > DIM sStringArray as String[] > > > > DIM sWord as string > > > > > > > > sStringArray = split(file.load("path to file"), "\t") > > > > > > > > for each sWord in sStringArray > > > > > > > > 'here fill the grid > > > > > > > > next > > > > > > > > --------------------------------------------------- > > > > > > > > bye > > > > > > > > > Does someone have this already? > > > > > > > > > > Thanks in advance. > > > > > > > > > > Peter Mathijssen > > > > ----------------------------------------------------------------------- > > > > > > >-- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pmathijssen at ...626... Tue Jun 3 20:30:11 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Tue, 3 Jun 2008 20:30:11 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: <200806032016.21731.rospolosco@...152...> References: <200806031950.24455.rospolosco@...152...> <200806032016.21731.rospolosco@...152...> Message-ID: Hi Stefano, Stupid me, i forgot to set the selection mode. Shame on me. Now it works. Peter 2008/6/3 Stefano Palmeri : > Il Tuesday 03 June 2008 20:10:27 Peter Mathijssen ha scritto: > > Hi Stefano, > > > > I put this in a gridview_click event > > > > GridView1.Rows[LAST.row].Selected = TRUE > > > > But nothing happens, when i use print last.row it works fine. > > > > Peter > > > > But when you click on a row it's automatically selected; > the row should turn its background color. > I can't understand. > > Stefano > > > 2008/6/3 Stefano Palmeri : > > > Il Tuesday 03 June 2008 19:04:08 Peter Mathijssen ha scritto: > > > > Hi Stefano, > > > > > > > > Thank you very much. I played a bit with your code and changed it to: > > > > > > > > > > > > DIM iCountCol, iCountRow AS Integer > > > > > > > > IF Len(txtsearch.text) = 0 THEN RETURN > > > > > > > > GridView1.Mode = Select.Multiple > > > > > > > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > > > > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > > > > IF InStr(GridView1[iCountRow, iCountCol].Text, > txtsearch.Text) > > > > > > > > > > > 0 > > > > > > > THEN > > > > GridView1.Rows[iCountRow].Selected = TRUE > > > > ELSE > > > > GridView1.Rows[iCountRow].Selected = FALSE > > > > ENDIF > > > > NEXT > > > > NEXT > > > > > > > > This way rows get selected when only a part of the text is found. I > put > > > > > > the > > > > > > > routine in a textbox_change event. > > > > > > > > Do you know how to get the row that has been clicked on with the > mouse. > > > > I want to select it. > > > > > > PUBLIC SUB GridView1_Click() > > > > > > PRINT LAST.Row > > > > > > END > > > > > > > I wonder is a gridview right for this sort of thing, or is a > columnview > > > > better? > > > > > > I don't know :-) > > > It really depends on what you're doing... > > > > > > Stefano > > > > > > > Peter > > > > > > > > 2008/6/3 Stefano Palmeri : > > > > > Il Tuesday 03 June 2008 14:08:33 Peter Mathijssen ha scritto: > > > > > > Hello, > > > > > > > > > > > > I have a application in wich i want to use a columnview or a > > > > > > gridview. > > > > > > > > > I > > > > > > > > > > am > > > > > > > > > > > searching for some code to search the gridview or columnview for > a > > > > > > piece > > > > > > > > > > of > > > > > > > > > > > text. The grid will be two columns wide. > > > > > > I want the rows that contain the found text selected. > > > > > > > > > > > > I found a piece of code to search a columnview but it doesn't do > > > > > > exactly what i want. > > > > > > > > > > I've attached a gridview example. It selects rows which contains > > > > > > "hello". > > > > > > > > > I am in the proces of making this app. that i developed in > > > > > > realbasic > > > > > > > > > > again > > > > > > > > > > > in gambas. > > > > > > http://plekzondernaam.wordpress.com/not2complex/ > > > > > > > > > > > > The gambas version looks like this now: > > > > > > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > > > > > > > > > > > I am also looking for a piece of code to fill the gridview or > > > > > > columnview with a tab-delimited file. So one piece of text goes > in > > > > > > column 1 and the other piece in column 2. > > > > > > > > > > > -------------------------------------------------------------------- > > > > > DIM sStringArray as String[] > > > > > DIM sWord as string > > > > > > > > > > sStringArray = split(file.load("path to file"), "\t") > > > > > > > > > > for each sWord in sStringArray > > > > > > > > > > 'here fill the grid > > > > > > > > > > next > > > > > > > > > > --------------------------------------------------- > > > > > > > > > > bye > > > > > > > > > > > Does someone have this already? > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > Peter Mathijssen > > > > > > ----------------------------------------------------------------------- > > > > > > > > >-- This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > > > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ----------------------------------------------------------------------- > > > >-- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Jun 3 22:42:03 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 3 Jun 2008 15:42:03 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806031908.38893.gambas@...1...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806020855.56466.sourceforge-raindog2@...94...> <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> <200806031908.38893.gambas@...1...> Message-ID: <1f1e8c1b0806031342n58f42ce8i1427bc24e585ef27@...627...> Using gb.gtk Using a svn revision (can't remember the numeber) but it if after the 2.6 release. Beniot recommended I use this release because of other problems with the embedder component and gb.gtk. Anyhow, the problem occurs when I press the button to make it display the second form... My Host form (the form that the others are embedding to) remains blank. On Tue, Jun 3, 2008 at 12:08 PM, Benoit Minisini wrote: > On mardi 03 juin 2008, M0E Lnx wrote: >> I have already tried this, and got nowhere. >> >> It's really easy to re-produce.. >> >> Create new project >> Add a container object to FMain (vpanel1) >> Add a Button object to Fmaine (Button1) >> Create Form1 and Form2 >> >> Fmain_load() >> Form1.Reparent(Fmain.vpanel1) >> Form1.show >> END >> >> Button1_click() >> Form1.hide ' Hide the form that is embedded into the vpanel >> Form2.reparent(Fmain.vpanel1) 'prepare the new form to embed into fmain >> Form2.show >> END >> >> That's where I end up with nothing.. the original form hides, but the >> new one does not show up.. >> >> >> Please help >> > > I thought you were talking about embedding forms with the Embedder control! > > Do you use gb.qt or gb.gtk? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Jun 3 22:44:50 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 3 Jun 2008 15:44:50 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806031342n58f42ce8i1427bc24e585ef27@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806020855.56466.sourceforge-raindog2@...94...> <1f1e8c1b0806030841i3fb358xffbbd555e7b9be4d@...627...> <200806031908.38893.gambas@...1...> <1f1e8c1b0806031342n58f42ce8i1427bc24e585ef27@...627...> Message-ID: <1f1e8c1b0806031344w6b11ec19hcbbcba9d52e1db4f@...627...> I should probabbly mention that this procedure does work under gb.qt Thus, the problem may very well be related to gb.gtk On Tue, Jun 3, 2008 at 3:42 PM, M0E Lnx wrote: > Using gb.gtk > > Using a svn revision (can't remember the numeber) but it if after the > 2.6 release. Beniot recommended I use this release because of other > problems with the embedder component and gb.gtk. > > > Anyhow, the problem occurs when I press the button to make it display > the second form... > My Host form (the form that the others are embedding to) remains blank. > > > > On Tue, Jun 3, 2008 at 12:08 PM, Benoit Minisini > wrote: >> On mardi 03 juin 2008, M0E Lnx wrote: >>> I have already tried this, and got nowhere. >>> >>> It's really easy to re-produce.. >>> >>> Create new project >>> Add a container object to FMain (vpanel1) >>> Add a Button object to Fmaine (Button1) >>> Create Form1 and Form2 >>> >>> Fmain_load() >>> Form1.Reparent(Fmain.vpanel1) >>> Form1.show >>> END >>> >>> Button1_click() >>> Form1.hide ' Hide the form that is embedded into the vpanel >>> Form2.reparent(Fmain.vpanel1) 'prepare the new form to embed into fmain >>> Form2.show >>> END >>> >>> That's where I end up with nothing.. the original form hides, but the >>> new one does not show up.. >>> >>> >>> Please help >>> >> >> I thought you were talking about embedding forms with the Embedder control! >> >> Do you use gb.qt or gb.gtk? >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From gambas at ...1... Tue Jun 3 22:49:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jun 2008 22:49:15 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806031344w6b11ec19hcbbcba9d52e1db4f@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806031342n58f42ce8i1427bc24e585ef27@...627...> <1f1e8c1b0806031344w6b11ec19hcbbcba9d52e1db4f@...627...> Message-ID: <200806032249.15473.gambas@...1...> On mardi 03 juin 2008, M0E Lnx wrote: > I should probabbly mention that this procedure does work under gb.qt > Thus, the problem may very well be related to gb.gtk > Yes, this must be a bug in gb.gtk. I will check... -- Benoit Minisini From m0e.lnx at ...626... Tue Jun 3 22:52:38 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 3 Jun 2008 15:52:38 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806032249.15473.gambas@...1...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806031342n58f42ce8i1427bc24e585ef27@...627...> <1f1e8c1b0806031344w6b11ec19hcbbcba9d52e1db4f@...627...> <200806032249.15473.gambas@...1...> Message-ID: <1f1e8c1b0806031352y5c7deb29va6ad9d372381459c@...627...> Thank you... let me know when you get it worked on so I can test ;) On Tue, Jun 3, 2008 at 3:49 PM, Benoit Minisini wrote: > On mardi 03 juin 2008, M0E Lnx wrote: >> I should probabbly mention that this procedure does work under gb.qt >> Thus, the problem may very well be related to gb.gtk >> > > Yes, this must be a bug in gb.gtk. I will check... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leemcpherson at ...626... Tue Jun 3 23:31:13 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 03 Jun 2008 17:31:13 -0400 Subject: [Gambas-user] Bluetooth in Gambas In-Reply-To: <1212414281.3453.11.camel@...1857...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> <200806010015.57293.gambas@...1...> <4841D9E8.7090501@...626...> <48425AEC.4070104@...1740...> <1212414281.3453.11.camel@...1857...> Message-ID: <4845B821.4090504@...626...> Thanks for all the advice. This worked for a cheap headset that I have to connect to the computer. (played some mp3s using mplayer over the headset) However, this won't work on the phone I have... even though the headset will work on the phone. I believe it's because the headset has a "Headset" profile but the phone doesn't. This is confirmed using both the sdptool and using a d-bus debugger program. Have you used a bluetooth headset in Skype or your bluetooth phone? As Pablo mentioned, I'm going to need the computer to act as the Handsfree device and have the phone be the Audio Gateway. At the moment, it seems the Alsa plugin for Bluez uses the computer as an Audio Gateway only. Ack... I may need to start looking at the drivers like he said. This may be beyond my abilities. I'll keep searching.... Thanks -Lee Steven Drinnan wrote: > Bluetooth Audio is available with ALSA bluez-utils-alsa > Just edit the file > > .asoundrc put it in your home folder > > you need to add > > pcm.bluetooth { > type bluetooth > device "00:0C:78:40:B8:01" //this is the id of the phone if you used > rfcomm just use the same ID. > profile "auto" > } > > restart your computer. > > You need bluez-utils-alsa. Then you can use alsa to activate the device. > I have used it in skype, audacious and mplayer. > > How that can be used in gambas maybe some else can jump in here. > > I hope that helps. > > > > > > On Sun, 2008-06-01 at 10:16 +0200, Ron wrote: > >> Lee McPherson schreef: >> >>> This is not exactly a Gambas question, but I thought someone would be >>> able to point me in the right direction. >>> >>> I'm trying to make a Bluetooth handsfree app with Gambas. I've already >>> gotten the serial interface established so that I can dial calls and >>> download the phonebook from my cell phone within Gambas. I'm using >>> Ubuntu (hardy) and to create the serial connection, I'm using the >>> command line program rfcomm. (I had to put this program in the sudoers >>> file so that I didn't have to use sudo every time I wanted to run it.) >>> >>> Here's the problem... I haven't been able to find any good documentation >>> to establish the 2-way audio link to the cell phone with Bluetooth. >>> Other online tutorials explain how to use btsco (an outdated app) to >>> connect to Bluetooth headsets, but that doesn't seem to be working for >>> me. I've come across an idea to have linux emulate a bluetooth headset >>> so that the phone can find it, but I haven't discovered how to do that. >>> Ultimately, I just want to use standard speakers and a mic connected to >>> the computer to talk over bluetooth. >>> >>> Does anyone have ideas? I'd be extremely grateful! (if anyone has >>> questions about how I've done what I have so far, I'd be glad to answer >>> them.) >>> >>> -Lee >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 3 23:36:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jun 2008 23:36:27 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <483E807C.9080805@...1740...> References: <483E807C.9080805@...1740...> Message-ID: <200806032336.27785.gambas@...1...> On jeudi 29 mai 2008, Ron wrote: > Hi, > > Hereby a request to add a flagfield, apply a bugfix or correct working > logic to smtpclient to be able to sent really plaintext messages with it. > > A plaintext message should look like this: for example: > --- cut --- > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > BODY > --- cut --- > > But if you sent simple textbody with smtpclient it results in this: > The content-type is first set to multipart/mixed, and later to text/plain. > > --- cut --- > Mime-Version: 1.0 > Content-Type: multipart/mixed; > boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" > Content-Transfer-Encoding: 7bit > Message-Id: <20080529094221.876B542B6 at ...1915...> > Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) > > This is a MIME multipart message. Your mail reader isn't MIME capable. > You might not be able to read parts or all of this message. > > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > Content-Type: text/plain; name="MIME part #0"; charset="utf-8" > Content-Transfer-Encoding: quoted-printable > > BODY=0D > - Powered by Lighthouse V0.0.63 -=0D > > > ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- > > --- cut --- > > I want to be able to sent command per e-mail to my aibo, but it doesn't > grok these, just really plaintext, non multiparted ones. > > Gambas 2.6.0 > > Thanks, > Ron. > I have modified the gb.net.smtp component in revison #1399 for Gambas 2.7. Now when a mail has only one part, no MIME multipart is used. Only one MIME part. This should fix your problem. Regards, -- Benoit Minisini From al_ur30 at ...67... Wed Jun 4 00:25:47 2008 From: al_ur30 at ...67... (tsakaji30) Date: Tue, 3 Jun 2008 15:25:47 -0700 (PDT) Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> Message-ID: <17635173.post@...1379...> You were right, i have changed the name of the folder and put in the home directory and it worked very well. But, in the log i see something weird, something about a sign, but i don't think it is a problem. Here is the log: Creando paquete para Ubuntu. Creando el directorio de construcci?n. Creando archivo de escritorio... Se est?n debianizando los fuentes. Creando paquete... dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: Paquete fuente algoritmo dpkg-buildpackage: Versi?n fuente 0.0-1 dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y Alejandro Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. dpkg-buildpackage: arquitectura de anfitri?n i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dpkg-source: construyendo algoritmo en algoritmo_0.0.orig.tar.gz dpkg-source -b algoritmo-0.0 dpkg-source: construyendo algoritmo en algoritmo_0.0-1.diff.gz dpkg-source: construyendo algoritmo en algoritmo_0.0-1.dsc dpkg-source: aviso: ignorando borrado del arachivo src/algoritmo/T1_AlgoritmoConmutacion.gambas dpkg-source: aviso: ignorando borrado del directorio src/algoritmo/.gambas dpkg-source: aviso: ignorando borrado del arachivo src/algoritmo/algoritmo.gambas dh_testdir debian/rules build touch build-stamp /usr/local/bin/gbc2 -a src/algoritmo OK gba2 src/algoritmo dh_testdir debian/rules binary dh_testroot dh_clean -k dh_installdirs touch install-stamp dh_testdir -i dh_testroot -i dh_installdocs -i dh_installchangelogs -i dh_install -i dh_installmenu dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i dpkg-deb: construyendo el paquete `algoritmo' en `../algoritmo_0.0-1_all.deb'. dh_testdir signfile algoritmo_0.0-1.dsc gpg: `Hecho por Benny Busnego y Alejandro Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. ' omitido: clave secreta no disponible gpg: [stdin]: clearsign failed: clave secreta no disponible dpkg-genchanges >../algoritmo_0.0-1_i386.changes dpkg-buildpackage: binary and diff upload (original source NOT included) dpkg-genchanges: no incluyendo c?digo fuente original en subida dpkg-buildpackage: aviso: Fallo al firmar los archivos .dsc y .changes Guardando archivo CHANGELOG. Los paquetes han sido creados con ?xito. Jos? Luis Redrejo wrote: > > The problem is that your project name begins with "gambas". > Somewhere in the packaging code it removes "gambas" from the project > name,so > it does not found it: > ... > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > ... > /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > .. > > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but > the > compiler looks for T1-AlgoritmoConmutacion, not > gambas-T1-AlgoritmoConmutacion. > > Try changing your project name. But before doing so, please, try creating > a > rpm package and tell us if it works right, to know if this is a problem > of > the debian packaging or a problem of the common routines for all the > packaging projects. It would make easier debugging the problem. > > Regards. > Jos? L. > > > > > > > 2008/6/3 Alejandro Uribe : > >> >> Here is the log, i note a problem in the line "dpkg-buildpackage: fallo: >> debian/rules build gave error exit status 2", but i don't know why this >> error appears. >> >> Creando paquete para Ubuntu. >> Creando el directorio de construcci?n. >> Creando archivo de escritorio... >> Se est?n debianizando los fuentes. >> Creando paquete... >> dpkg-buildpackage: set CPPFLAGS to default value: >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 >> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions >> dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion >> dpkg-buildpackage: Versi?n fuente 0.0-1 >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y >> Alejandro >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. < >> sakura_bb30 at ...67..., al_ur30 at ...67...> >> dpkg-buildpackage: arquitectura de anfitri?n i386 >> debian/rules clean >> dh_testdir >> dh_testroot >> rm -Rf `find . -name ".gambas"` >> rm -Rf `find . -name "*.gambas"` >> rm -f build-stamp install-stamp >> dh_clean >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz >> dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> gambas-t1-algoritmoconmutacion_0.0-1.diff.gz >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> gambas-t1-algoritmoconmutacion_0.0-1.dsc >> dpkg-source: aviso: ignorando borrado del arachivo >> src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas >> dpkg-source: aviso: ignorando borrado del directorio >> src/T1_AlgoritmoConmutacion/.gambas >> dh_testdir >> debian/rules build >> touch build-stamp >> /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion >> gbc: project file not found: >> /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project >> make: *** [build-stamp] Error 1 >> dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 >> Guardando archivo CHANGELOG. >> Los paquetes han sido creados con ?xito. >> >> I hope you can determine what's the problem here. >> >> Thanks again! >> >> > From: gambas at ...1... >> > To: gambas-user at lists.sourceforge.net >> > Date: Sun, 1 Jun 2008 14:27:26 +0200 >> > Subject: Re: [Gambas-user] Make instalation package don't work >> > >> > On samedi 31 mai 2008, tsakaji30 wrote: >> > > Hello again, another question: i wanted to pack an application that i >> have >> > > made in gambas2 but when i try to use the option "Make instalation >> package" >> > > (there is in the tools bar), i complete the assistant (i have >> deb-helper >> > > installed) but it don't generate a .deb, only a .tar.gz (with the >> program >> > > and the source code). >> > > >> > > Is this option not implemented yet in Gambas 2-2.5.0? >> > > >> > > Thanks for your answers ;) >> > >> > Can you send the log of the packager? It is written if the textbox of >> the >> > wizard final step. >> > >> > -- >> > Benoit Minisini >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> _________________________________________________________________ >> News, entertainment and everything you care about at Live.com. Get it >> now! >> http://www.live.com/getstarted.aspx >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17635173.html Sent from the gambas-user mailing list archive at Nabble.com. From al_ur30 at ...67... Wed Jun 4 00:37:29 2008 From: al_ur30 at ...67... (tsakaji30) Date: Tue, 3 Jun 2008 15:37:29 -0700 (PDT) Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <200806031108.42751.gambas@...1...> References: <17615517.post@...1379...> <200806031108.42751.gambas@...1...> Message-ID: <17635361.post@...1379...> Well, Stefano what I really need is that with the tab key, the user could "navigate" in a form that have very much textboxes, so he needs to write information like name, lastname, age, address, etc and the tab key gets no response. I have ordered the hierarchy but it still making nothing this key. Benoit, i'm using gb.gtk (i'm working in Ubuntu 8.04). I'm using the fantastic 2.6 version of Gambas. I need to say that when I compiled it (gambas), it gave me an error about gb.qt (telling me that will be disabled), besides i am using Gnome (that use GTK), I don't think that it would give me a problem. Benoit Minisini wrote: > > On mardi 03 juin 2008, tsakaji30 wrote: >> I have a problem right now. I am making a database management program for >> the library in my university and I have some forms with very much >> textboxes. I wanted to use the "tabindex" property (existent in VB), but >> i >> couldn't find it! I have organized the Hierarchy, but I have no response! >> I >> mean, I press the tab key and nothing happens (no control in the form got >> the focus). >> >> Thanks! > > Which version of Gambas do you use? Do you use gb.qt or gb.gtk? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/VB-Tabindex-propertry--tp17615517p17635361.html Sent from the gambas-user mailing list archive at Nabble.com. From jerryclement at ...734... Wed Jun 4 00:58:32 2008 From: jerryclement at ...734... (Jerry Clement) Date: Tue, 3 Jun 2008 15:58:32 -0700 (PDT) Subject: [Gambas-user] search in gridview or columnview In-Reply-To: References: Message-ID: <17635704.post@...1379...> Peter Mathijssen wrote: > > Hello, > > I have a application in wich i want to use a columnview or a gridview. I > am > searching for some code to search the gridview or columnview for a piece > of > text. The grid will be two columns wide. > I want the rows that contain the found text selected. > > I found a piece of code to search a columnview but it doesn't do exactly > what i want. > > I am in the proces of making this app. that i developed in realbasic again > in gambas. > http://plekzondernaam.wordpress.com/not2complex/ > > The gambas version looks like this now: > http://img112.imageshack.us/img112/8049/not2complexgambasky5.png > > I am also looking for a piece of code to fill the gridview or columnview > with a tab-delimited file. So one piece of text goes in column 1 and the > other piece in column 2. > > Does someone have this already? > > Thanks in advance. > > Peter Mathijssen > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Peter, Thanks for the links to your NotToComplex program. I downloaded the RealBasic one and it's great for a newbie like me. Please post and share the Gambas code when you get it completed. I'm sure I could learn a lot from your coding. Again, Thanks, Jerry Nashville, TN :jumping::jumping::jumping: -- View this message in context: http://www.nabble.com/search-in-gridview-or-columnview-tp17622083p17635704.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jun 4 03:37:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jun 2008 03:37:50 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806031352y5c7deb29va6ad9d372381459c@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806032249.15473.gambas@...1...> <1f1e8c1b0806031352y5c7deb29va6ad9d372381459c@...627...> Message-ID: <200806040337.50443.gambas@...1...> On mardi 03 juin 2008, M0E Lnx wrote: > Thank you... let me know when you get it worked on so I can test > > ;) > > On Tue, Jun 3, 2008 at 3:49 PM, Benoit Minisini > It should be fixed in revision #1400. -- Benoit Minisini From jredrejo at ...626... Wed Jun 4 09:22:03 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Wed, 4 Jun 2008 09:22:03 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <17635173.post@...1379...> References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> <17635173.post@...1379...> Message-ID: <8eb28a500806040022i41dcf6b6jda9e725c7eddfe3f@...627...> The "weird" thing is that you don't have a gpg key to sign the package. It does not affect to the package itself, but to the users who must trust you before installing it (and you can not upload to Debian official repositories) On the other hand, did you try to do a rpm package before changing the name?. I'm really interested in fix this problem and I need to know if it's a problem of the general packaging part or of the debian packaging routines. Regards. 2008/6/4 tsakaji30 : > > You were right, i have changed the name of the folder and put in the home > directory and it worked very well. But, in the log i see something weird, > something about a sign, but i don't think it is a problem. Here is the log: > Creando paquete para Ubuntu. > Creando el directorio de construcci?n. > Creando archivo de escritorio... > Se est?n debianizando los fuentes. > Creando paquete... > dpkg-buildpackage: set CPPFLAGS to default value: > dpkg-buildpackage: set CFLAGS to default value: -g -O2 > dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > dpkg-buildpackage: set FFLAGS to default value: -g -O2 > dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions > dpkg-buildpackage: Paquete fuente algoritmo > dpkg-buildpackage: Versi?n fuente 0.0-1 > dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y Alejandro > Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. > > dpkg-buildpackage: arquitectura de anfitri?n i386 > debian/rules clean > dh_testdir > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dpkg-source: construyendo algoritmo en algoritmo_0.0.orig.tar.gz > dpkg-source -b algoritmo-0.0 > dpkg-source: construyendo algoritmo en algoritmo_0.0-1.diff.gz > dpkg-source: construyendo algoritmo en algoritmo_0.0-1.dsc > dpkg-source: aviso: ignorando borrado del arachivo > src/algoritmo/T1_AlgoritmoConmutacion.gambas > dpkg-source: aviso: ignorando borrado del directorio src/algoritmo/.gambas > dpkg-source: aviso: ignorando borrado del arachivo > src/algoritmo/algoritmo.gambas > dh_testdir > debian/rules build > touch build-stamp > /usr/local/bin/gbc2 -a src/algoritmo > OK > gba2 src/algoritmo > dh_testdir > debian/rules binary > dh_testroot > dh_clean -k > dh_installdirs > touch install-stamp > dh_testdir -i > dh_testroot -i > dh_installdocs -i > dh_installchangelogs -i > dh_install -i > dh_installmenu > dh_compress -i > dh_fixperms -i > dh_installdeb -i > dh_gencontrol -i > dh_md5sums -i > dh_builddeb -i > dpkg-deb: construyendo el paquete `algoritmo' en > `../algoritmo_0.0-1_all.deb'. > dh_testdir > > signfile algoritmo_0.0-1.dsc > gpg: `Hecho por Benny Busnego y Alejandro Uribe. Seccion A. > Telecomunicaciones UNEFA. Venezuela. al_ur30 at ...67...>' omitido: clave secreta no disponible > gpg: [stdin]: clearsign failed: clave secreta no disponible > dpkg-genchanges >../algoritmo_0.0-1_i386.changes > dpkg-buildpackage: binary and diff upload (original source NOT included) > dpkg-genchanges: no incluyendo c?digo fuente original en subida > dpkg-buildpackage: aviso: Fallo al firmar los archivos .dsc y .changes > Guardando archivo CHANGELOG. > Los paquetes han sido creados con ?xito. > > > > Jos? Luis Redrejo wrote: > > > > The problem is that your project name begins with "gambas". > > Somewhere in the packaging code it removes "gambas" from the project > > name,so > > it does not found it: > > ... > > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > > gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > > ... > > /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > > .. > > > > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but > > the > > compiler looks for T1-AlgoritmoConmutacion, not > > gambas-T1-AlgoritmoConmutacion. > > > > Try changing your project name. But before doing so, please, try creating > > a > > rpm package and tell us if it works right, to know if this is a problem > > of > > the debian packaging or a problem of the common routines for all the > > packaging projects. It would make easier debugging the problem. > > > > Regards. > > Jos? L. > > > > > > > > > > > > > > 2008/6/3 Alejandro Uribe : > > > >> > >> Here is the log, i note a problem in the line "dpkg-buildpackage: fallo: > >> debian/rules build gave error exit status 2", but i don't know why this > >> error appears. > >> > >> Creando paquete para Ubuntu. > >> Creando el directorio de construcci?n. > >> Creando archivo de escritorio... > >> Se est?n debianizando los fuentes. > >> Creando paquete... > >> dpkg-buildpackage: set CPPFLAGS to default value: > >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set LDFLAGS to default value: > -Wl,-Bsymbolic-functions > >> dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion > >> dpkg-buildpackage: Versi?n fuente 0.0-1 > >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y > >> Alejandro > >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. < > >> sakura_bb30 at ...67..., al_ur30 at ...67...> > >> dpkg-buildpackage: arquitectura de anfitri?n i386 > >> debian/rules clean > >> dh_testdir > >> dh_testroot > >> rm -Rf `find . -name ".gambas"` > >> rm -Rf `find . -name "*.gambas"` > >> rm -f build-stamp install-stamp > >> dh_clean > >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > >> dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 > >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> gambas-t1-algoritmoconmutacion_0.0-1.diff.gz > >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> gambas-t1-algoritmoconmutacion_0.0-1.dsc > >> dpkg-source: aviso: ignorando borrado del arachivo > >> src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas > >> dpkg-source: aviso: ignorando borrado del directorio > >> src/T1_AlgoritmoConmutacion/.gambas > >> dh_testdir > >> debian/rules build > >> touch build-stamp > >> /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > >> gbc: project file not found: > >> /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project > >> make: *** [build-stamp] Error 1 > >> dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 > >> Guardando archivo CHANGELOG. > >> Los paquetes han sido creados con ?xito. > >> > >> I hope you can determine what's the problem here. > >> > >> Thanks again! > >> > >> > From: gambas at ...1... > >> > To: gambas-user at lists.sourceforge.net > >> > Date: Sun, 1 Jun 2008 14:27:26 +0200 > >> > Subject: Re: [Gambas-user] Make instalation package don't work > >> > > >> > On samedi 31 mai 2008, tsakaji30 wrote: > >> > > Hello again, another question: i wanted to pack an application that > i > >> have > >> > > made in gambas2 but when i try to use the option "Make instalation > >> package" > >> > > (there is in the tools bar), i complete the assistant (i have > >> deb-helper > >> > > installed) but it don't generate a .deb, only a .tar.gz (with the > >> program > >> > > and the source code). > >> > > > >> > > Is this option not implemented yet in Gambas 2-2.5.0? > >> > > > >> > > Thanks for your answers ;) > >> > > >> > Can you send the log of the packager? It is written if the textbox of > >> the > >> > wizard final step. > >> > > >> > -- > >> > Benoit Minisini > >> > > >> > > >> > ------------------------------------------------------------------------- > >> > This SF.net email is sponsored by: Microsoft > >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> _________________________________________________________________ > >> News, entertainment and everything you care about at Live.com. Get it > >> now! > >> http://www.live.com/getstarted.aspx > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17635173.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Wed Jun 4 10:25:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 4 Jun 2008 10:25:09 +0200 Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <17635361.post@...1379...> References: <17615517.post@...1379...> <200806031108.42751.gambas@...1...> <17635361.post@...1379...> Message-ID: <200806041025.09828.rospolosco@...152...> Il Wednesday 04 June 2008 00:37:29 tsakaji30 ha scritto: > Well, Stefano what I really need is that with the tab key, the user could > "navigate" in a form that have very much textboxes, so he needs to write > information like name, lastname, age, address, etc and the tab key gets no > response. I have ordered the hierarchy but it still making nothing this > key. > I've attached a little project, using gb.gtk as you do. On my machine tab browsing works. In the project there's a form with 8 textboxes. When I press the tab key I can browse the textboxes. Try it and see if it works on your system. Bye, Stefano > Benoit, i'm using gb.gtk (i'm working in Ubuntu 8.04). I'm using the > fantastic 2.6 version of Gambas. I need to say that when I compiled it > (gambas), it gave me an error about gb.qt (telling me that will be > disabled), besides i am using Gnome (that use GTK), I don't think that it > would give me a problem. > > Benoit Minisini wrote: > > On mardi 03 juin 2008, tsakaji30 wrote: > >> I have a problem right now. I am making a database management program > >> for the library in my university and I have some forms with very much > >> textboxes. I wanted to use the "tabindex" property (existent in VB), but > >> i > >> couldn't find it! I have organized the Hierarchy, but I have no > >> response! I > >> mean, I press the tab key and nothing happens (no control in the form > >> got the focus). > >> > >> Thanks! > > > > Which version of Gambas do you use? Do you use gb.qt or gb.gtk? > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: tabbing-0.0.1.tar.gz Type: application/x-tgz Size: 7673 bytes Desc: not available URL: From gambas at ...1... Wed Jun 4 12:33:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jun 2008 12:33:19 +0200 Subject: [Gambas-user] Dificulty with Extern call when return struct variable In-Reply-To: <1212509554.48456d7291212@...1539...> References: <1212509554.48456d7291212@...1539...> Message-ID: <200806041233.19267.gambas@...1...> On mardi 03 juin 2008, Wellington de Souza Pinto wrote: > Hi Benoit! > > The missing message i solved with ldconfig. But not understand how return > struct in Extern xxxx(zzz AS integer, ooo AS integer) AS yyyy IN "libpop3" > > I'm send my project with C program for you help me. > > ipConnect-0.0.1.tar.gz (gambas3 project) > my problem is pop3.pop3GetEmail(...) > > libpop3-0.4.1.tar.gz (C program) > > Best Reguards, > > Souza, Wellington > I don't really know what gcc does in that case. But if it returns a pointer to the structure, you have to use the READ instruction to read the structure fields by using their memory address, or the StrPtr() function, as there is no support for structures in Gambas yet. DIM Result AS Pointer Result = pop3.pop3GetEMail(...) PRINT "To: "; StrPtr(Result) PRINT "Cc: "; StrPtr(Result + 4) PRINT "Bcc: "; StrPtr(Result + 8) ... The weird thing is that you must write code that is 32 bits specific. I hope this problem will be solved in Gambas 3. Regards, -- Benoit Minisini From m0e.lnx at ...626... Wed Jun 4 14:50:20 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Jun 2008 07:50:20 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806040337.50443.gambas@...1...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806032249.15473.gambas@...1...> <1f1e8c1b0806031352y5c7deb29va6ad9d372381459c@...627...> <200806040337.50443.gambas@...1...> Message-ID: <1f1e8c1b0806040550g4736f5adu57c1b257ed1c1b7d@...627...> Just built and installed.... Result: Problem is fixed ;) Thank you On Tue, Jun 3, 2008 at 8:37 PM, Benoit Minisini wrote: > On mardi 03 juin 2008, M0E Lnx wrote: >> Thank you... let me know when you get it worked on so I can test >> >> ;) >> >> On Tue, Jun 3, 2008 at 3:49 PM, Benoit Minisini >> > > It should be fixed in revision #1400. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jun 4 15:03:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jun 2008 15:03:15 +0200 Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <17635361.post@...1379...> References: <17615517.post@...1379...> <200806031108.42751.gambas@...1...> <17635361.post@...1379...> Message-ID: <200806041503.15886.gambas@...1...> On mercredi 04 juin 2008, tsakaji30 wrote: > Well, Stefano what I really need is that with the tab key, the user could > "navigate" in a form that have very much textboxes, so he needs to write > information like name, lastname, age, address, etc and the tab key gets no > response. I have ordered the hierarchy but it still making nothing this > key. > > Benoit, i'm using gb.gtk (i'm working in Ubuntu 8.04). I'm using the > fantastic 2.6 version of Gambas. I need to say that when I compiled it > (gambas), it gave me an error about gb.qt (telling me that will be > disabled), besides i am using Gnome (that use GTK), I don't think that it > would give me a problem. > In 2.6, gb.gtk tab order does not follow the z-order (what is defined in the hierarchy window). I fixed in the subversion repository for the upcoming 2.7. Is it related to your problem? -- Benoit Minisini From ron at ...1740... Wed Jun 4 15:21:54 2008 From: ron at ...1740... (Ron) Date: Wed, 04 Jun 2008 15:21:54 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200806032336.27785.gambas@...1...> References: <483E807C.9080805@...1740...> <200806032336.27785.gambas@...1...> Message-ID: <484696F2.20403@...1740...> Benoit Minisini schreef: > On jeudi 29 mai 2008, Ron wrote: > >> Hi, >> >> Hereby a request to add a flagfield, apply a bugfix or correct working >> logic to smtpclient to be able to sent really plaintext messages with it. >> >> A plaintext message should look like this: for example: >> --- cut --- >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> Content-Transfer-Encoding: 7bit >> >> BODY >> --- cut --- >> >> But if you sent simple textbody with smtpclient it results in this: >> The content-type is first set to multipart/mixed, and later to text/plain. >> >> --- cut --- >> Mime-Version: 1.0 >> Content-Type: multipart/mixed; >> boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" >> Content-Transfer-Encoding: 7bit >> Message-Id: <20080529094221.876B542B6 at ...1915...> >> Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) >> >> This is a MIME multipart message. Your mail reader isn't MIME capable. >> You might not be able to read parts or all of this message. >> >> >> >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 >> Content-Type: text/plain; name="MIME part #0"; charset="utf-8" >> Content-Transfer-Encoding: quoted-printable >> >> BODY=0D >> - Powered by Lighthouse V0.0.63 -=0D >> >> >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- >> >> --- cut --- >> >> I want to be able to sent command per e-mail to my aibo, but it doesn't >> grok these, just really plaintext, non multiparted ones. >> >> Gambas 2.6.0 >> >> Thanks, >> Ron. >> >> > > I have modified the gb.net.smtp component in revison #1399 for Gambas 2.7 > . > > Now when a mail has only one part, no MIME multipart is used. Only one MIME > part. > > This should fix your problem. > > Regards, > > You mean 2.6? couldn't find 2.7, I downloaded and compile the latest svn 2.6.0, but result is the same. Regards, Ron. From gambas at ...1... Wed Jun 4 15:31:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jun 2008 15:31:07 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <484696F2.20403@...1740...> References: <483E807C.9080805@...1740...> <200806032336.27785.gambas@...1...> <484696F2.20403@...1740...> Message-ID: <200806041531.07210.gambas@...1...> On mercredi 04 juin 2008, Ron wrote: > Benoit Minisini schreef: > > On jeudi 29 mai 2008, Ron wrote: > >> Hi, > >> > >> Hereby a request to add a flagfield, apply a bugfix or correct working > >> logic to smtpclient to be able to sent really plaintext messages with > >> it. > >> > >> A plaintext message should look like this: for example: > >> --- cut --- > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> Content-Transfer-Encoding: 7bit > >> > >> BODY > >> --- cut --- > >> > >> But if you sent simple textbody with smtpclient it results in this: > >> The content-type is first set to multipart/mixed, and later to > >> text/plain. > >> > >> --- cut --- > >> Mime-Version: 1.0 > >> Content-Type: multipart/mixed; > >> boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" > >> Content-Transfer-Encoding: 7bit > >> Message-Id: <20080529094221.876B542B6 at ...1915...> > >> Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) > >> > >> This is a MIME multipart message. Your mail reader isn't MIME capable. > >> You might not be able to read parts or all of this message. > >> > >> > >> > >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 > >> Content-Type: text/plain; name="MIME part #0"; charset="utf-8" > >> Content-Transfer-Encoding: quoted-printable > >> > >> BODY=0D > >> - Powered by Lighthouse V0.0.63 -=0D > >> > >> > >> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- > >> > >> --- cut --- > >> > >> I want to be able to sent command per e-mail to my aibo, but it doesn't > >> grok these, just really plaintext, non multiparted ones. > >> > >> Gambas 2.6.0 > >> > >> Thanks, > >> Ron. > > > > I have modified the gb.net.smtp component in revison #1399 for Gambas 2.7 > > . > > > > Now when a mail has only one part, no MIME multipart is used. Only one > > MIME part. > > > > This should fix your problem. > > > > Regards, > > You mean 2.6? couldn't find 2.7, I downloaded and compile the latest svn > 2.6.0, but result is the same. > > Regards, > Ron. > You mean you downloaded /branches/2.0? If you send a mail with only one part, gb.net.smtp will not use a multipart mime message, but a message with only one part. Regards, -- Benoit Minisini From pmathijssen at ...626... Wed Jun 4 15:36:38 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Wed, 4 Jun 2008 15:36:38 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: <200806032016.21731.rospolosco@...152...> References: <200806031950.24455.rospolosco@...152...> <200806032016.21731.rospolosco@...152...> Message-ID: It seems that this code: DIM iCountCol, iCountRow AS Integer IF Len(txtsearch.text) = 0 THEN FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) GridView1.Rows[iCountRow].Selected = FALSE NEXT RETURN END IF GridView1.Mode = Select.Multiple FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text, 0, gb.Case) > 0 THEN GridView1.Rows[iCountRow].Selected = TRUE ELSE GridView1.Rows[iCountRow].Selected = FALSE ENDIF NEXT NEXT only finds strings in column 1 and not in column 0. It is a gridview with two columns, both columns contain strings of text. Strange, the code looks fine. I just adapted it a bit from Stefano. Peter From m0e.lnx at ...626... Wed Jun 4 16:02:28 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Jun 2008 09:02:28 -0500 Subject: [Gambas-user] Can gambas figure out dimensions for objects? Message-ID: <1f1e8c1b0806040702r28ced3a2s9e28b91b2dc659d4@...627...> Up to now, I've never needed this feature, so I never tried this. But here is the situation now. I need to find out if it is possible at all for gambas to determine the size of an object (button and textlabel mostly), based on the object's .text property So why do you need this you ask? I'm trying to offer room for translation of a project of mine. So the hard coded text on the objects will fit just right, But a translated version of an object's text, may be shorter or longer, depending on the target language. Does anyone have any idea how to accomplish such a task? Thanks From jaap_cramer at ...67... Wed Jun 4 16:13:34 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 04 Jun 2008 16:13:34 +0200 Subject: [Gambas-user] Can gambas figure out dimensions for objects? In-Reply-To: <1f1e8c1b0806040702r28ced3a2s9e28b91b2dc659d4@...627...> References: <1f1e8c1b0806040702r28ced3a2s9e28b91b2dc659d4@...627...> Message-ID: Jou can use a textlabel with the .adjust command It resizes the textlabel to a height where its content fits. I wrote function to calculate the desired height for textarea's by putting its contents and font-size in a textlabel; save the height and make it the height of the aera. I hope it helps... Jaap On Wed, 2008-06-04 at 09:02 -0500, M0E Lnx wrote: > Up to now, I've never needed this feature, so I never tried this. But > here is the situation now. > > I need to find out if it is possible at all for gambas to determine > the size of an object (button and textlabel mostly), based on the > object's .text property > > So why do you need this you ask? > I'm trying to offer room for translation of a project of mine. So the > hard coded text on the objects will fit just right, But a translated > version of an object's text, may be shorter or longer, depending on > the target language. > > Does anyone have any idea how to accomplish such a task? > > Thanks > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Wed Jun 4 16:25:33 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 4 Jun 2008 16:25:33 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: References: <200806032016.21731.rospolosco@...152...> Message-ID: <200806041625.34201.rospolosco@...152...> Il Wednesday 04 June 2008 15:36:38 Peter Mathijssen ha scritto: > It seems that this code: > > DIM iCountCol, iCountRow AS Integer > > IF Len(txtsearch.text) = 0 THEN > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > GridView1.Rows[iCountRow].Selected = FALSE > NEXT > RETURN > END IF > > GridView1.Mode = Select.Multiple > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text, 0, > gb.Case) > 0 THEN > GridView1.Rows[iCountRow].Selected = TRUE > ELSE > GridView1.Rows[iCountRow].Selected = FALSE > ENDIF > NEXT > NEXT > > only finds strings in column 1 and not in column 0. > It is a gridview with two columns, both columns contain strings of text. > > Strange, the code looks fine. I just adapted it a bit from Stefano. > > Peter > ------------------------------------------------------------------------- Hi, Peter. It seems you forget a BREAK. In the way you wrote the code, the same Row could be selected and unselected in the same loop. To fix it add a BREAK when the Row is selected: IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text, 0, gb.Case) > 0 THEN GridView1.Rows[iCountRow].Selected = TRUE BREAK Example attached. Bye, Stefano > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > 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: gridview2-0.0.1.tar.gz Type: application/x-tgz Size: 7895 bytes Desc: not available URL: From pmathijssen at ...626... Wed Jun 4 16:31:50 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Wed, 4 Jun 2008 16:31:50 +0200 Subject: [Gambas-user] search in gridview or columnview In-Reply-To: <200806041625.34201.rospolosco@...152...> References: <200806032016.21731.rospolosco@...152...> <200806041625.34201.rospolosco@...152...> Message-ID: Thanks again Stefano, Now it's working ok. Still learning every time ;-) Peter 2008/6/4 Stefano Palmeri : > Il Wednesday 04 June 2008 15:36:38 Peter Mathijssen ha scritto: > > It seems that this code: > > > > DIM iCountCol, iCountRow AS Integer > > > > IF Len(txtsearch.text) = 0 THEN > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > > GridView1.Rows[iCountRow].Selected = FALSE > > NEXT > > RETURN > > END IF > > > > GridView1.Mode = Select.Multiple > > > > FOR iCountRow = 0 TO (GridView1.Rows.Count - 1) > > FOR iCountCol = 0 TO (GridView1.Columns.Count - 1) > > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text, 0, > > gb.Case) > 0 THEN > > GridView1.Rows[iCountRow].Selected = TRUE > > ELSE > > GridView1.Rows[iCountRow].Selected = FALSE > > ENDIF > > NEXT > > NEXT > > > > only finds strings in column 1 and not in column 0. > > It is a gridview with two columns, both columns contain strings of text. > > > > Strange, the code looks fine. I just adapted it a bit from Stefano. > > > > Peter > > ------------------------------------------------------------------------- > > Hi, Peter. > > It seems you forget a BREAK. In the way you wrote > the code, the same Row could be selected and > unselected in the same loop. > To fix it add a BREAK when the Row is selected: > > IF InStr(GridView1[iCountRow, iCountCol].Text, txtsearch.Text, 0, > gb.Case) > 0 THEN > GridView1.Rows[iCountRow].Selected = TRUE > BREAK > > Example attached. > > Bye, > > Stefano > > > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From m0e.lnx at ...626... Wed Jun 4 16:41:41 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Jun 2008 09:41:41 -0500 Subject: [Gambas-user] Can gambas figure out dimensions for objects? In-Reply-To: References: <1f1e8c1b0806040702r28ced3a2s9e28b91b2dc659d4@...627...> Message-ID: <1f1e8c1b0806040741t1b3d7ee7x794ed506d8163ee3@...627...> I'm sorry, this is not working for me... when I do that, it simply shifts the text to the left a little bit (4 or 5 pixels maybe) On Wed, Jun 4, 2008 at 9:13 AM, Jaap Cramer wrote: > Jou can use a textlabel with the .adjust command > It resizes the textlabel to a height where its content fits. I wrote > function to calculate the desired height for textarea's by putting its > contents and font-size in a textlabel; save the height and make it the > height of the aera. > > I hope it helps... > > Jaap > > On Wed, 2008-06-04 at 09:02 -0500, M0E Lnx wrote: >> Up to now, I've never needed this feature, so I never tried this. But >> here is the situation now. >> >> I need to find out if it is possible at all for gambas to determine >> the size of an object (button and textlabel mostly), based on the >> object's .text property >> >> So why do you need this you ask? >> I'm trying to offer room for translation of a project of mine. So the >> hard coded text on the objects will fit just right, But a translated >> version of an object's text, may be shorter or longer, depending on >> the target language. >> >> Does anyone have any idea how to accomplish such a task? >> >> Thanks >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pmathijssen at ...626... Wed Jun 4 16:42:59 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Wed, 4 Jun 2008 16:42:59 +0200 Subject: [Gambas-user] column width in gridview Message-ID: Hi, With this code i can set the width of the columns. WITH GridView1 .Columns.Count = 2 .Rows.Count = 0 .Columns[0].Width = 250 .Columns[0].Text = lblcommand.Text .Columns[1].Width = 500 .Columns[1].Text = lbldescription.Text END WITH When i don't set the column width i get a small first column and a second column that is large enough to hold the whole text. But when i use the columns.width property i always get a smaller second column. So not all text is displayed. I tested a little. I seems that as long as i set the width of the second column smaller then the width of the first one i can set it's width. Is the width of the second column larger then that of the first one it doesn't work. If i only set the width of the first column, the second one gets the same width. Does anyone has this too? Peter From rospolosco at ...152... Wed Jun 4 17:13:58 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 4 Jun 2008 17:13:58 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: References: Message-ID: <200806041713.58432.rospolosco@...152...> Il Wednesday 04 June 2008 16:42:59 Peter Mathijssen ha scritto: > Hi, > > With this code i can set the width of the columns. > > WITH GridView1 > .Columns.Count = 2 > .Rows.Count = 0 > .Columns[0].Width = 250 > .Columns[0].Text = lblcommand.Text > .Columns[1].Width = 500 > .Columns[1].Text = lbldescription.Text > > END WITH > > When i don't set the column width i get a small first column and a second > column that is large enough to hold the whole text. > > But when i use the columns.width property i always get a smaller second > column. So not all text is displayed. > > I tested a little. I seems that as long as i set the width of the second > column smaller then the width of the first one i can set it's width. Is the > width of the second column larger then that of the first one it doesn't > work. > > If i only set the width of the first column, the second one gets the same > width. > > Does anyone has this too? > > Peter Hi Peter, Try: GridView1.ScrollBar = Scroll.Both and see if problem goes away. Bye, Stefano > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Wed Jun 4 17:20:32 2008 From: ron at ...1740... (Ron) Date: Wed, 04 Jun 2008 17:20:32 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200806041531.07210.gambas@...1...> References: <483E807C.9080805@...1740...> <200806032336.27785.gambas@...1...> <484696F2.20403@...1740...> <200806041531.07210.gambas@...1...> Message-ID: <4846B2C0.30705@...1740...> >>> , >>> >> You mean 2.6? couldn't find 2.7, I downloaded and compile the latest svn >> 2.6.0, but result is the same. >> >> Regards, >> Ron. >> >> > > You mean you downloaded /branches/2.0? > > If you send a mail with only one part, gb.net.smtp will not use a multipart > mime message, but a message with only one part. > > Regards, > Benoit, Sorry, I compiled the wrong svn source. It works 100% correct now, great! Thanks. Ron. From pmathijssen at ...626... Wed Jun 4 17:53:39 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Wed, 4 Jun 2008 17:53:39 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: <200806041713.58432.rospolosco@...152...> References: <200806041713.58432.rospolosco@...152...> Message-ID: 2008/6/4 Stefano Palmeri : > > Hi Peter, > > Try: > > GridView1.ScrollBar = Scroll.Both > > and see if problem goes away. > > No, the gridview is already set this way. I should have told that in my first email. Peter From eilert-sprachen at ...221... Wed Jun 4 18:04:16 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Jun 2008 18:04:16 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: References: Message-ID: <4846BD00.2040004@...221...> Peter Mathijssen schrieb: > Hi, > > With this code i can set the width of the columns. > > WITH GridView1 > .Columns.Count = 2 > .Rows.Count = 0 > .Columns[0].Width = 250 > .Columns[0].Text = lblcommand.Text > .Columns[1].Width = 500 > .Columns[1].Text = lbldescription.Text > > END WITH > > When i don't set the column width i get a small first column and a second > column that is large enough to hold the whole text. > > But when i use the columns.width property i always get a smaller second > column. So not all text is displayed. > > I tested a little. I seems that as long as i set the width of the second > column smaller then the width of the first one i can set it's width. Is the > width of the second column larger then that of the first one it doesn't > work. > > If i only set the width of the first column, the second one gets the same > width. > > Does anyone has this too? > > Peter Yes, at least very similar. In my application, I set the column widths dynamically (my idea was to adapt them to the largest text width contained in each column). So what I do is collecting the maximum text width for each column in an array from within the data event (just one line needed here), the gridview here is called "tb", the array is tbBreite[]: PUBLIC SUB tb_Data(Row AS Integer, Column AS Integer) [lots of things to do...] IF tb.Font.Width(feld[Column]) > tbBreite[Column] THEN tbBreite[Column] = tb.Font.Width(feld[Column]) END So after filling the grid, each column width is known, and then I can do this in the SUB that calls the whole thing: tb.Rows.Count = liste.Count 'this will call tb_Data FOR i = 0 TO 6 tb.Columns[i].Width = tbBreite[i] + 10 NEXT In fact, this runs well in most cases, BUT... :-) - the gridview is on a tabview, and if the tabview shows another tab than the gridview I try to adjust the columns in, this will NOT function. So I have to say tabview.index = 0 or 1 or whatever to make for example "tb" appear on screen BEFORE I call tb.Rows.Count = ... Strange though because it fills with text anyway. - sometimes, and this is not on a reproduceable basis, this doesn't run either! So sometimes, all columns just stay very narrow, and there is really no reason to be seen for this. - and sometimes the last column (I have more than 2, sometimes 6, sometimes 4) will be as large as to the end of the gridview (right edge), sometimes it stays smaller and leaves a blank area at the right. When one of the columns is wide enough, the horizontal scroller will appear and the whole gridview is wide. But when it stays smaller (whether by error or correctly if there is just no more text), it is not predictable what will happen to the rightmost column. - this seems to be specific to Gambas 2. I have done this many times in Gambas 1, and have never had this problem. I guess this won't really help you on, but you're not alone with the column width problem I guess :-) Rolf From pmathijssen at ...626... Wed Jun 4 18:16:38 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Wed, 4 Jun 2008 18:16:38 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: <4846BD00.2040004@...221...> References: <4846BD00.2040004@...221...> Message-ID: 2008/6/4 Rolf-Werner Eilert : > > Yes, at least very similar. > > > > - this seems to be specific to Gambas 2. I have done this many times in > Gambas 1, and have never had this problem. > > I guess this won't really help you on, but you're not alone with the > column width problem I guess :-) > > Rolf > > It is also my rightmost column that is acting weird. Well at least it's not my bad coding that is causing the problems. ;-) I only have the gridview or columnview to choice from. I hope Benoit can find the problem. Peter From m0e.lnx at ...626... Wed Jun 4 19:15:21 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Jun 2008 12:15:21 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806040550g4736f5adu57c1b257ed1c1b7d@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806032249.15473.gambas@...1...> <1f1e8c1b0806031352y5c7deb29va6ad9d372381459c@...627...> <200806040337.50443.gambas@...1...> <1f1e8c1b0806040550g4736f5adu57c1b257ed1c1b7d@...627...> Message-ID: <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> After more testing, I have another problem here... The switching works now when reparenting forms into a host form via a panel container But when this form that hosts the other forms is embedded into another program using am embedder object, it doesnt work On Wed, Jun 4, 2008 at 7:50 AM, M0E Lnx wrote: > Just built and installed.... > > Result: > Problem is fixed ;) > > Thank you > > On Tue, Jun 3, 2008 at 8:37 PM, Benoit Minisini > wrote: >> On mardi 03 juin 2008, M0E Lnx wrote: >>> Thank you... let me know when you get it worked on so I can test >>> >>> ;) >>> >>> On Tue, Jun 3, 2008 at 3:49 PM, Benoit Minisini >>> >> >> It should be fixed in revision #1400. >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From rospolosco at ...152... Wed Jun 4 19:40:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 4 Jun 2008 19:40:14 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: References: <4846BD00.2040004@...221...> Message-ID: <200806041940.15021.rospolosco@...152...> Il mercoled? 4 giugno 2008 18:16:38 Peter Mathijssen ha scritto: > 2008/6/4 Rolf-Werner Eilert : > > Yes, at least very similar. > > > > > > > > - this seems to be specific to Gambas 2. I have done this many times in > > Gambas 1, and have never had this problem. > > > > I guess this won't really help you on, but you're not alone with the > > column width problem I guess :-) > > > > Rolf > > It is also my rightmost column that is acting weird. Well at least it's not > my bad coding that is causing the problems. ;-) > > I only have the gridview or columnview to choice from. I hope Benoit can > find the problem. > > Peter > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, Peter I've attached an example. Please, could you run it and test if the second column is large twice the first? Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: gridexample-0.0.1.tar.gz Type: application/x-tgz Size: 8096 bytes Desc: not available URL: From al_ur30 at ...67... Wed Jun 4 21:41:55 2008 From: al_ur30 at ...67... (tsakaji30) Date: Wed, 4 Jun 2008 12:41:55 -0700 (PDT) Subject: [Gambas-user] VB Tabindex propertry? In-Reply-To: <200806041503.15886.gambas@...1...> References: <17615517.post@...1379...> <200806031108.42751.gambas@...1...> <17635361.post@...1379...> <200806041503.15886.gambas@...1...> Message-ID: <17654967.post@...1379...> Yes I think that was the problem, I have updated from subversion and 0 problems! By the way, thank you too Stefano, your little project helped me to make tests. I think this "thread" is over. Sayounara! PD: By the way Benoit, keep the excelent work that you and your team are doing. Waiting for a 3.0 gambas version ;) Benoit Minisini wrote: > > On mercredi 04 juin 2008, tsakaji30 wrote: >> Well, Stefano what I really need is that with the tab key, the user could >> "navigate" in a form that have very much textboxes, so he needs to write >> information like name, lastname, age, address, etc and the tab key gets >> no >> response. I have ordered the hierarchy but it still making nothing this >> key. >> >> Benoit, i'm using gb.gtk (i'm working in Ubuntu 8.04). I'm using the >> fantastic 2.6 version of Gambas. I need to say that when I compiled it >> (gambas), it gave me an error about gb.qt (telling me that will be >> disabled), besides i am using Gnome (that use GTK), I don't think that it >> would give me a problem. >> > > In 2.6, gb.gtk tab order does not follow the z-order (what is defined in > the > hierarchy window). I fixed in the subversion repository for the upcoming > 2.7. > > Is it related to your problem? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/VB-Tabindex-propertry--tp17615517p17654967.html Sent from the gambas-user mailing list archive at Nabble.com. From al_ur30 at ...67... Wed Jun 4 21:52:58 2008 From: al_ur30 at ...67... (tsakaji30) Date: Wed, 4 Jun 2008 12:52:58 -0700 (PDT) Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <8eb28a500806040022i41dcf6b6jda9e725c7eddfe3f@...627...> References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> <17635173.post@...1379...> <8eb28a500806040022i41dcf6b6jda9e725c7eddfe3f@...627...> Message-ID: <17655208.post@...1379...> Well, I couln't make the test because I can't find the rpmbuild package for Ubuntu, I have tried with apt-get and a little search with Google and nothing. If you say to me how to install rpmbuild I could make the tests. On the other hand, how I could get a gpg key to sign the package? Jos? Luis Redrejo wrote: > > The "weird" thing is that you don't have a gpg key to sign the package. It > does not affect to the package itself, but to the users who must trust you > before installing it (and you can not upload to Debian official > repositories) > > > On the other hand, did you try to do a rpm package before changing the > name?. I'm really interested in fix this problem and I need to know if > it's > a problem of the general packaging part or of the debian packaging > routines. > > Regards. > > 2008/6/4 tsakaji30 : > >> >> You were right, i have changed the name of the folder and put in the home >> directory and it worked very well. But, in the log i see something weird, >> something about a sign, but i don't think it is a problem. Here is the >> log: >> Creando paquete para Ubuntu. >> Creando el directorio de construcci?n. >> Creando archivo de escritorio... >> Se est?n debianizando los fuentes. >> Creando paquete... >> dpkg-buildpackage: set CPPFLAGS to default value: >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 >> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions >> dpkg-buildpackage: Paquete fuente algoritmo >> dpkg-buildpackage: Versi?n fuente 0.0-1 >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y >> Alejandro >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. >> >> dpkg-buildpackage: arquitectura de anfitri?n i386 >> debian/rules clean >> dh_testdir >> dh_testroot >> rm -Rf `find . -name ".gambas"` >> rm -Rf `find . -name "*.gambas"` >> rm -f build-stamp install-stamp >> dh_clean >> dpkg-source: construyendo algoritmo en algoritmo_0.0.orig.tar.gz >> dpkg-source -b algoritmo-0.0 >> dpkg-source: construyendo algoritmo en algoritmo_0.0-1.diff.gz >> dpkg-source: construyendo algoritmo en algoritmo_0.0-1.dsc >> dpkg-source: aviso: ignorando borrado del arachivo >> src/algoritmo/T1_AlgoritmoConmutacion.gambas >> dpkg-source: aviso: ignorando borrado del directorio >> src/algoritmo/.gambas >> dpkg-source: aviso: ignorando borrado del arachivo >> src/algoritmo/algoritmo.gambas >> dh_testdir >> debian/rules build >> touch build-stamp >> /usr/local/bin/gbc2 -a src/algoritmo >> OK >> gba2 src/algoritmo >> dh_testdir >> debian/rules binary >> dh_testroot >> dh_clean -k >> dh_installdirs >> touch install-stamp >> dh_testdir -i >> dh_testroot -i >> dh_installdocs -i >> dh_installchangelogs -i >> dh_install -i >> dh_installmenu >> dh_compress -i >> dh_fixperms -i >> dh_installdeb -i >> dh_gencontrol -i >> dh_md5sums -i >> dh_builddeb -i >> dpkg-deb: construyendo el paquete `algoritmo' en >> `../algoritmo_0.0-1_all.deb'. >> dh_testdir >> >> signfile algoritmo_0.0-1.dsc >> gpg: `Hecho por Benny Busnego y Alejandro Uribe. Seccion A. >> Telecomunicaciones UNEFA. Venezuela. > al_ur30 at ...67...>' omitido: clave secreta no disponible >> gpg: [stdin]: clearsign failed: clave secreta no disponible >> dpkg-genchanges >../algoritmo_0.0-1_i386.changes >> dpkg-buildpackage: binary and diff upload (original source NOT included) >> dpkg-genchanges: no incluyendo c?digo fuente original en subida >> dpkg-buildpackage: aviso: Fallo al firmar los archivos .dsc y .changes >> Guardando archivo CHANGELOG. >> Los paquetes han sido creados con ?xito. >> >> >> >> Jos? Luis Redrejo wrote: >> > >> > The problem is that your project name begins with "gambas". >> > Somewhere in the packaging code it removes "gambas" from the project >> > name,so >> > it does not found it: >> > ... >> > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> > gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz >> > ... >> > /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion >> > .. >> > >> > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion ,but >> > the >> > compiler looks for T1-AlgoritmoConmutacion, not >> > gambas-T1-AlgoritmoConmutacion. >> > >> > Try changing your project name. But before doing so, please, try >> creating >> > a >> > rpm package and tell us if it works right, to know if this is a >> problem >> > of >> > the debian packaging or a problem of the common routines for all the >> > packaging projects. It would make easier debugging the problem. >> > >> > Regards. >> > Jos? L. >> > >> > >> > >> > >> > >> > >> > 2008/6/3 Alejandro Uribe : >> > >> >> >> >> Here is the log, i note a problem in the line "dpkg-buildpackage: >> fallo: >> >> debian/rules build gave error exit status 2", but i don't know why >> this >> >> error appears. >> >> >> >> Creando paquete para Ubuntu. >> >> Creando el directorio de construcci?n. >> >> Creando archivo de escritorio... >> >> Se est?n debianizando los fuentes. >> >> Creando paquete... >> >> dpkg-buildpackage: set CPPFLAGS to default value: >> >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 >> >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 >> >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 >> >> dpkg-buildpackage: set LDFLAGS to default value: >> -Wl,-Bsymbolic-functions >> >> dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion >> >> dpkg-buildpackage: Versi?n fuente 0.0-1 >> >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y >> >> Alejandro >> >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. < >> >> sakura_bb30 at ...67..., al_ur30 at ...67...> >> >> dpkg-buildpackage: arquitectura de anfitri?n i386 >> >> debian/rules clean >> >> dh_testdir >> >> dh_testroot >> >> rm -Rf `find . -name ".gambas"` >> >> rm -Rf `find . -name "*.gambas"` >> >> rm -f build-stamp install-stamp >> >> dh_clean >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> >> gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz >> >> dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> >> gambas-t1-algoritmoconmutacion_0.0-1.diff.gz >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en >> >> gambas-t1-algoritmoconmutacion_0.0-1.dsc >> >> dpkg-source: aviso: ignorando borrado del arachivo >> >> src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas >> >> dpkg-source: aviso: ignorando borrado del directorio >> >> src/T1_AlgoritmoConmutacion/.gambas >> >> dh_testdir >> >> debian/rules build >> >> touch build-stamp >> >> /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion >> >> gbc: project file not found: >> >> /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project >> >> make: *** [build-stamp] Error 1 >> >> dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 >> >> Guardando archivo CHANGELOG. >> >> Los paquetes han sido creados con ?xito. >> >> >> >> I hope you can determine what's the problem here. >> >> >> >> Thanks again! >> >> >> >> > From: gambas at ...1... >> >> > To: gambas-user at lists.sourceforge.net >> >> > Date: Sun, 1 Jun 2008 14:27:26 +0200 >> >> > Subject: Re: [Gambas-user] Make instalation package don't work >> >> > >> >> > On samedi 31 mai 2008, tsakaji30 wrote: >> >> > > Hello again, another question: i wanted to pack an application >> that >> i >> >> have >> >> > > made in gambas2 but when i try to use the option "Make instalation >> >> package" >> >> > > (there is in the tools bar), i complete the assistant (i have >> >> deb-helper >> >> > > installed) but it don't generate a .deb, only a .tar.gz (with the >> >> program >> >> > > and the source code). >> >> > > >> >> > > Is this option not implemented yet in Gambas 2-2.5.0? >> >> > > >> >> > > Thanks for your answers ;) >> >> > >> >> > Can you send the log of the packager? It is written if the textbox >> of >> >> the >> >> > wizard final step. >> >> > >> >> > -- >> >> > Benoit Minisini >> >> > >> >> > >> >> >> ------------------------------------------------------------------------- >> >> > This SF.net email is sponsored by: Microsoft >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> _________________________________________________________________ >> >> News, entertainment and everything you care about at Live.com. Get it >> >> now! >> >> http://www.live.com/getstarted.aspx >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Microsoft >> >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17635173.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17655208.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jun 4 23:21:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jun 2008 23:21:38 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806040550g4736f5adu57c1b257ed1c1b7d@...627...> <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> Message-ID: <200806042321.38589.gambas@...1...> On mercredi 04 juin 2008, M0E Lnx wrote: > After more testing, I have another problem here... > > The switching works now when reparenting forms into a host form via a > panel container > But when this form that hosts the other forms is embedded into another > program using am embedder object, it doesnt work > Please be more explicit, or, better, send a project that shows the bad behaviour. Regards, -- Benoit Minisini From pmathijssen at ...626... Thu Jun 5 06:43:41 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Thu, 5 Jun 2008 06:43:41 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: <200806041940.15021.rospolosco@...152...> References: <4846BD00.2040004@...221...> <200806041940.15021.rospolosco@...152...> Message-ID: Good morning Stefano, Yes it works, even when i cut and paste the code in a new project. But when i simple cut and paste the code you sent me in my own programm it doesn't work. This is the part of the Gridview in my Fmain.form file: { GridView1 GridView MoveScaled(1,0,66,26) Header = GridView.Horizontal } Peter 2008/6/4 Stefano Palmeri : > > Hi, Peter > > I've attached an example. Please, could you > run it and test if the second column is large > twice the first? > > Stefano > From eilert-sprachen at ...221... Thu Jun 5 08:38:06 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Jun 2008 08:38:06 +0200 Subject: [Gambas-user] column width in gridview In-Reply-To: <200806041940.15021.rospolosco@...152...> References: <4846BD00.2040004@...221...> <200806041940.15021.rospolosco@...152...> Message-ID: <484789CE.2000004@...221...> Stefano Palmeri schrieb: > Il mercoled? 4 giugno 2008 18:16:38 Peter Mathijssen ha scritto: >> 2008/6/4 Rolf-Werner Eilert : >>> Yes, at least very similar. >>> >>> >>> >>> - this seems to be specific to Gambas 2. I have done this many times in >>> Gambas 1, and have never had this problem. >>> >>> I guess this won't really help you on, but you're not alone with the >>> column width problem I guess :-) >>> >>> Rolf >> It is also my rightmost column that is acting weird. Well at least it's not >> my bad coding that is causing the problems. ;-) >> >> I only have the gridview or columnview to choice from. I hope Benoit can >> find the problem. >> >> Peter >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi, Peter > > I've attached an example. Please, could you > run it and test if the second column is large > twice the first? > > Stefano > Hi Stefano, no problem so far. I tried to make the gridview control wider on the form, and found this: - if the gridview is rather small, it will produce a horizontal scrollbar - if the gridview is wider, it will fit the text within the visible area. When the user slides the column right, part of the header text will disappear. When the user continues sliding, the horizontal scrollbar will appear eventually. - if the gridview is very wide, it will try to fit the rightmost column within the area, so the rightmost column is stretched over. In my project, the problem arises during runtime, when the program adjusts the column width after clicks by the user and the gridview contents changed. It seems to be a problem of qt rather then Benoit :-) Rolf From m0e.lnx at ...626... Thu Jun 5 15:14:06 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 5 Jun 2008 08:13:06 -0501 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806042321.38589.gambas@...1...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806040550g4736f5adu57c1b257ed1c1b7d@...627...> <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> <200806042321.38589.gambas@...1...> Message-ID: <1f1e8c1b0806050614u680ebc17qaabb5fbbb93075e6@...627...> I'm unable to send the project because setting up a testing environment for this thing is a little complicated, but I'll try to explain it a little better My project is made up of several applications. One of them is a main wrapper for all others (This one is called vasmCC) In vasmCC, I have an embedder icon that will bring in the other parts of the application. I like to think of the other components as "modules" to the main GUI. These modules are smaller components designed to accomplish simple tasks. Normally consist of one form, couple of modules and classes. So these are child applications that embed into the main gui (vasmCC) via it's embedder object. The problem occurss when one of these child applications uses more than one form. When I try to switch forms, the embedded (child) application stalls. The Embedder area goes blank and the embedder (on vasmCC) does not receive the close signal which means I guess that the child application is still running, but the next form never showed up. On Wed, Jun 4, 2008 at 4:20 PM, Benoit Minisini wrote: > On mercredi 04 juin 2008, M0E Lnx wrote: >> After more testing, I have another problem here... >> >> The switching works now when reparenting forms into a host form via a >> panel container >> But when this form that hosts the other forms is embedded into another >> program using am embedder object, it doesnt work >> > > Please be more explicit, or, better, send a project that shows the bad > behaviour. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Thu Jun 5 16:42:21 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 5 Jun 2008 16:42:21 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806042321.38589.gambas@...1...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> <200806042321.38589.gambas@...1...> Message-ID: <200806051642.21746.ronstk@...239...> On Wednesday 04 June 2008, Benoit Minisini wrote: > On mercredi 04 juin 2008, M0E Lnx wrote: > > After more testing, I have another problem here... > > > > The switching works now when reparenting forms into a host form via a > > panel container > > But when this form that hosts the other forms is embedded into another > > program using am embedder object, it doesnt work > > > > Please be more explicit, or, better, send a project that shows the bad > behaviour. > > Regards, > When I understand correct it is something like the mandrake control center. MCC opens also other forms inside the main application and you _quit_ the (sub)form to go back to the main form (window). The extra for MOE Lnx is one of the main selections does the job with 2 forms instead of one and he need a way to switch between the two (sub)forms. Ron the I'st :) From jredrejo at ...626... Thu Jun 5 18:32:10 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Thu, 5 Jun 2008 18:32:10 +0200 Subject: [Gambas-user] Make instalation package don't work In-Reply-To: <17655208.post@...1379...> References: <17570006.post@...1379...> <200806011427.26720.gambas@...1...> <8eb28a500806030116g64640172k6566b6ae9ef5d4c@...627...> <17635173.post@...1379...> <8eb28a500806040022i41dcf6b6jda9e725c7eddfe3f@...627...> <17655208.post@...1379...> Message-ID: <8eb28a500806050932r7dd1101dwa9ae0dfe2740f8ee@...627...> 2008/6/4 tsakaji30 : > > Well, I couln't make the test because I can't find the rpmbuild package for > Ubuntu, I have tried with apt-get and a little search with Google and > nothing. If you say to me how to install rpmbuild I could make the tests. > You only need to install the debian package called "rpm" > > On the other hand, how I could get a gpg key to sign the package? > You only need to create it using gpg, and take into account that the gambas2-ide packager takes Project.Maintainer & " <" & Project.Address & "> to build the name of the package maintainer, So, you have to create your gpg key for that user and email in your user account. You can find more info about the reasons to use gpg sign, way to get a valid key for Debian, and links to the procedure to create a key at http://www.debian.org/devel/join/nm-step2 Regards Jos? L. > > > Jos? Luis Redrejo wrote: > > > > The "weird" thing is that you don't have a gpg key to sign the package. > It > > does not affect to the package itself, but to the users who must trust > you > > before installing it (and you can not upload to Debian official > > repositories) > > > > > > On the other hand, did you try to do a rpm package before changing the > > name?. I'm really interested in fix this problem and I need to know if > > it's > > a problem of the general packaging part or of the debian packaging > > routines. > > > > Regards. > > > > 2008/6/4 tsakaji30 : > > > >> > >> You were right, i have changed the name of the folder and put in the > home > >> directory and it worked very well. But, in the log i see something > weird, > >> something about a sign, but i don't think it is a problem. Here is the > >> log: > >> Creando paquete para Ubuntu. > >> Creando el directorio de construcci?n. > >> Creando archivo de escritorio... > >> Se est?n debianizando los fuentes. > >> Creando paquete... > >> dpkg-buildpackage: set CPPFLAGS to default value: > >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 > >> dpkg-buildpackage: set LDFLAGS to default value: > -Wl,-Bsymbolic-functions > >> dpkg-buildpackage: Paquete fuente algoritmo > >> dpkg-buildpackage: Versi?n fuente 0.0-1 > >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y > >> Alejandro > >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. > >> > >> dpkg-buildpackage: arquitectura de anfitri?n i386 > >> debian/rules clean > >> dh_testdir > >> dh_testroot > >> rm -Rf `find . -name ".gambas"` > >> rm -Rf `find . -name "*.gambas"` > >> rm -f build-stamp install-stamp > >> dh_clean > >> dpkg-source: construyendo algoritmo en algoritmo_0.0.orig.tar.gz > >> dpkg-source -b algoritmo-0.0 > >> dpkg-source: construyendo algoritmo en algoritmo_0.0-1.diff.gz > >> dpkg-source: construyendo algoritmo en algoritmo_0.0-1.dsc > >> dpkg-source: aviso: ignorando borrado del arachivo > >> src/algoritmo/T1_AlgoritmoConmutacion.gambas > >> dpkg-source: aviso: ignorando borrado del directorio > >> src/algoritmo/.gambas > >> dpkg-source: aviso: ignorando borrado del arachivo > >> src/algoritmo/algoritmo.gambas > >> dh_testdir > >> debian/rules build > >> touch build-stamp > >> /usr/local/bin/gbc2 -a src/algoritmo > >> OK > >> gba2 src/algoritmo > >> dh_testdir > >> debian/rules binary > >> dh_testroot > >> dh_clean -k > >> dh_installdirs > >> touch install-stamp > >> dh_testdir -i > >> dh_testroot -i > >> dh_installdocs -i > >> dh_installchangelogs -i > >> dh_install -i > >> dh_installmenu > >> dh_compress -i > >> dh_fixperms -i > >> dh_installdeb -i > >> dh_gencontrol -i > >> dh_md5sums -i > >> dh_builddeb -i > >> dpkg-deb: construyendo el paquete `algoritmo' en > >> `../algoritmo_0.0-1_all.deb'. > >> dh_testdir > >> > >> signfile algoritmo_0.0-1.dsc > >> gpg: `Hecho por Benny Busnego y Alejandro Uribe. Seccion A. > >> Telecomunicaciones UNEFA. Venezuela. >> al_ur30 at ...67...>' omitido: clave secreta no disponible > >> gpg: [stdin]: clearsign failed: clave secreta no disponible > >> dpkg-genchanges >../algoritmo_0.0-1_i386.changes > >> dpkg-buildpackage: binary and diff upload (original source NOT included) > >> dpkg-genchanges: no incluyendo c?digo fuente original en subida > >> dpkg-buildpackage: aviso: Fallo al firmar los archivos .dsc y .changes > >> Guardando archivo CHANGELOG. > >> Los paquetes han sido creados con ?xito. > >> > >> > >> > >> Jos? Luis Redrejo wrote: > >> > > >> > The problem is that your project name begins with "gambas". > >> > Somewhere in the packaging code it removes "gambas" from the project > >> > name,so > >> > it does not found it: > >> > ... > >> > dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> > gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > >> > ... > >> > /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > >> > .. > >> > > >> > It's clear that the tar.gz contains gambas-t1-algoritmoconmutacion > ,but > >> > the > >> > compiler looks for T1-AlgoritmoConmutacion, not > >> > gambas-T1-AlgoritmoConmutacion. > >> > > >> > Try changing your project name. But before doing so, please, try > >> creating > >> > a > >> > rpm package and tell us if it works right, to know if this is a > >> problem > >> > of > >> > the debian packaging or a problem of the common routines for all the > >> > packaging projects. It would make easier debugging the problem. > >> > > >> > Regards. > >> > Jos? L. > >> > > >> > > >> > > >> > > >> > > >> > > >> > 2008/6/3 Alejandro Uribe : > >> > > >> >> > >> >> Here is the log, i note a problem in the line "dpkg-buildpackage: > >> fallo: > >> >> debian/rules build gave error exit status 2", but i don't know why > >> this > >> >> error appears. > >> >> > >> >> Creando paquete para Ubuntu. > >> >> Creando el directorio de construcci?n. > >> >> Creando archivo de escritorio... > >> >> Se est?n debianizando los fuentes. > >> >> Creando paquete... > >> >> dpkg-buildpackage: set CPPFLAGS to default value: > >> >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 > >> >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > >> >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 > >> >> dpkg-buildpackage: set LDFLAGS to default value: > >> -Wl,-Bsymbolic-functions > >> >> dpkg-buildpackage: Paquete fuente gambas-t1-algoritmoconmutacion > >> >> dpkg-buildpackage: Versi?n fuente 0.0-1 > >> >> dpkg-buildpackage: Fuente cambiadas por Hecho por Benny Busnego y > >> >> Alejandro > >> >> Uribe. Seccion A. Telecomunicaciones UNEFA. Venezuela. < > >> >> sakura_bb30 at ...67..., al_ur30 at ...67...> > >> >> dpkg-buildpackage: arquitectura de anfitri?n i386 > >> >> debian/rules clean > >> >> dh_testdir > >> >> dh_testroot > >> >> rm -Rf `find . -name ".gambas"` > >> >> rm -Rf `find . -name "*.gambas"` > >> >> rm -f build-stamp install-stamp > >> >> dh_clean > >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> >> gambas-t1-algoritmoconmutacion_0.0.orig.tar.gz > >> >> dpkg-source -b gambas-t1-algoritmoconmutacion-0.0 > >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> >> gambas-t1-algoritmoconmutacion_0.0-1.diff.gz > >> >> dpkg-source: construyendo gambas-t1-algoritmoconmutacion en > >> >> gambas-t1-algoritmoconmutacion_0.0-1.dsc > >> >> dpkg-source: aviso: ignorando borrado del arachivo > >> >> src/T1_AlgoritmoConmutacion/T1_AlgoritmoConmutacion.gambas > >> >> dpkg-source: aviso: ignorando borrado del directorio > >> >> src/T1_AlgoritmoConmutacion/.gambas > >> >> dh_testdir > >> >> debian/rules build > >> >> touch build-stamp > >> >> /usr/local/bin/gbc2 -a src/T1-AlgoritmoConmutacion > >> >> gbc: project file not found: > >> >> /home/alejandro/gambas-t1-algoritmoconmutacion-0.0/.project > >> >> make: *** [build-stamp] Error 1 > >> >> dpkg-buildpackage: fallo: debian/rules build gave error exit status 2 > >> >> Guardando archivo CHANGELOG. > >> >> Los paquetes han sido creados con ?xito. > >> >> > >> >> I hope you can determine what's the problem here. > >> >> > >> >> Thanks again! > >> >> > >> >> > From: gambas at ...1... > >> >> > To: gambas-user at lists.sourceforge.net > >> >> > Date: Sun, 1 Jun 2008 14:27:26 +0200 > >> >> > Subject: Re: [Gambas-user] Make instalation package don't work > >> >> > > >> >> > On samedi 31 mai 2008, tsakaji30 wrote: > >> >> > > Hello again, another question: i wanted to pack an application > >> that > >> i > >> >> have > >> >> > > made in gambas2 but when i try to use the option "Make > instalation > >> >> package" > >> >> > > (there is in the tools bar), i complete the assistant (i have > >> >> deb-helper > >> >> > > installed) but it don't generate a .deb, only a .tar.gz (with the > >> >> program > >> >> > > and the source code). > >> >> > > > >> >> > > Is this option not implemented yet in Gambas 2-2.5.0? > >> >> > > > >> >> > > Thanks for your answers ;) > >> >> > > >> >> > Can you send the log of the packager? It is written if the textbox > >> of > >> >> the > >> >> > wizard final step. > >> >> > > >> >> > -- > >> >> > Benoit Minisini > >> >> > > >> >> > > >> >> > >> > ------------------------------------------------------------------------- > >> >> > This SF.net email is sponsored by: Microsoft > >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> _________________________________________________________________ > >> >> News, entertainment and everything you care about at Live.com. Get it > >> >> now! > >> >> http://www.live.com/getstarted.aspx > >> >> > >> > ------------------------------------------------------------------------- > >> >> This SF.net email is sponsored by: Microsoft > >> >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------- > >> > This SF.net email is sponsored by: Microsoft > >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17635173.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/index.php > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17655208.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu Jun 5 19:34:15 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 5 Jun 2008 12:34:15 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806051642.21746.ronstk@...239...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <1f1e8c1b0806041015p292fd7a8i340315660318faf6@...627...> <200806042321.38589.gambas@...1...> <200806051642.21746.ronstk@...239...> Message-ID: <1f1e8c1b0806051034g5e78f810tc086ae3a200caaee@...627...> Ron is exactly right... Checkout the application itself at http://vasmcc.googlecode.com it all works right, when the child application (the one embedded into the main gui) consists of only one form On Thu, Jun 5, 2008 at 9:42 AM, Ron Onstenk wrote: > On Wednesday 04 June 2008, Benoit Minisini wrote: >> On mercredi 04 juin 2008, M0E Lnx wrote: >> > After more testing, I have another problem here... >> > >> > The switching works now when reparenting forms into a host form via a >> > panel container >> > But when this form that hosts the other forms is embedded into another >> > program using am embedder object, it doesnt work >> > >> >> Please be more explicit, or, better, send a project that shows the bad >> behaviour. >> >> Regards, >> > > When I understand correct it is something like the mandrake control center. > > MCC opens also other forms inside the main application and you _quit_ > the (sub)form to go back to the main form (window). > > The extra for MOE Lnx is one of the main selections does the job with > 2 forms instead of one and he need a way to switch between the two (sub)forms. > > Ron the I'st :) > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu Jun 5 21:20:22 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 5 Jun 2008 14:20:22 -0500 Subject: [Gambas-user] Detecting Capital letters or digits in a string Message-ID: <1f1e8c1b0806051220y5bd2ea35m8dd0c581cb486810@...627...> IS there a way to detect capital letters in s string? From sourceforge-raindog2 at ...94... Thu Jun 5 21:36:01 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 5 Jun 2008 15:36:01 -0400 Subject: [Gambas-user] Detecting Capital letters or digits in a string In-Reply-To: <1f1e8c1b0806051220y5bd2ea35m8dd0c581cb486810@...627...> References: <1f1e8c1b0806051220y5bd2ea35m8dd0c581cb486810@...627...> Message-ID: <200806051536.01706.sourceforge-raindog2@...94...> On Thursday 05 June 2008 15:20, M0E Lnx wrote: > IS there a way to detect capital letters in s string? I think so. IF mystring LIKE "*[A-Z]*" THEN ' it has at least one capital letter ELSE ' it doesn't END IF http://www.gambasdoc.org/help/lang/like Rob From m0e.lnx at ...626... Thu Jun 5 22:22:42 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 5 Jun 2008 15:22:42 -0500 Subject: [Gambas-user] Detecting Capital letters or digits in a string In-Reply-To: <200806051536.01706.sourceforge-raindog2@...94...> References: <1f1e8c1b0806051220y5bd2ea35m8dd0c581cb486810@...627...> <200806051536.01706.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0806051322j5ad8eae6of23bce23abf4d145@...627...> Kool.... Thanks On Thu, Jun 5, 2008 at 2:36 PM, Rob wrote: > On Thursday 05 June 2008 15:20, M0E Lnx wrote: >> IS there a way to detect capital letters in s string? > > I think so. > > IF mystring LIKE "*[A-Z]*" THEN > ' it has at least one capital letter > ELSE > ' it doesn't > END IF > > http://www.gambasdoc.org/help/lang/like > > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jun 5 22:47:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 5 Jun 2008 22:47:56 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806050614u680ebc17qaabb5fbbb93075e6@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806042321.38589.gambas@...1...> <1f1e8c1b0806050614u680ebc17qaabb5fbbb93075e6@...627...> Message-ID: <200806052247.56640.gambas@...1...> On jeudi 05 juin 2008, M0E Lnx wrote: > I'm unable to send the project because setting up a testing > environment for this thing is a little complicated, but I'll try to > explain it a little better > > My project is made up of several applications. > One of them is a main wrapper for all others (This one is called vasmCC) > In vasmCC, I have an embedder icon that will bring in the other parts > of the application. > > I like to think of the other components as "modules" to the main GUI. > These modules are smaller components designed to accomplish simple > tasks. Normally consist of one form, couple of modules and classes. So > these are child applications that embed into the main gui (vasmCC) via > it's embedder object. > > The problem occurss when one of these child applications uses more > than one form. When I try to switch forms, the embedded (child) > application stalls. The Embedder area goes blank and the embedder (on > vasmCC) does not receive the close signal which means I guess that the > child application is still running, but the next form never showed up. > > If the main form of an application B is embedded into an Embedder control of an application A, this form cannot be switched. Anyway, why did you design your application that way? You can put everything (the main panel and all modules) in the same project. -- Benoit Minisini From ronstk at ...239... Thu Jun 5 23:54:28 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 5 Jun 2008 23:54:28 +0200 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <1f1e8c1b0806051034g5e78f810tc086ae3a200caaee@...627...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806051642.21746.ronstk@...239...> <1f1e8c1b0806051034g5e78f810tc086ae3a200caaee@...627...> Message-ID: <200806052354.28724.ronstk@...239...> On Thursday 05 June 2008, M0E Lnx wrote: > Ron is exactly right... > Checkout the application itself at http://vasmcc.googlecode.com > > it all works right, when the child application (the one embedded into > the main gui) consists of only one form > > > > On Thu, Jun 5, 2008 at 9:42 AM, Ron Onstenk wrote: > > On Wednesday 04 June 2008, Benoit Minisini wrote: > >> On mercredi 04 juin 2008, M0E Lnx wrote: > >> > After more testing, I have another problem here... > >> > > >> > The switching works now when reparenting forms into a host form via a > >> > panel container > >> > But when this form that hosts the other forms is embedded into another > >> > program using am embedder object, it doesnt work > >> > > >> > >> Please be more explicit, or, better, send a project that shows the bad > >> behaviour. > >> > >> Regards, > >> > > > > When I understand correct it is something like the mandrake control center. > > > > MCC opens also other forms inside the main application and you _quit_ > > the (sub)form to go back to the main form (window). > > > > The extra for MOE Lnx is one of the main selections does the job with > > 2 forms instead of one and he need a way to switch between the two (sub)forms. > > > > Ron the I'st :) > > OK My idea to it is to make a module that opens the main form. Using the embeder two times, one with the first and the the other with the second vPanel. Switching the visibility by calling a function in the main module from the vPanels each for this special case and use .Visible/.Show on the vPanel1 for the others. The handling for the both panels must be done from outside the vPanels module mainmod: public alldone as boolean = false public bPanel1 as boolean = false public bPanel2 as boolean = false public vPanel1 as form public vPanel2 as form public frmMain as form vPanel1 = new form1 vpanel1 = new form2 while not alldone vPanel1.Hide ' the right reference to the vPanels or embedder object in your code :) vPanel2.Hide ' if you need this if bPanel1 then frmMain.reparent(vPanel1) vpanel1.embeded = true vPanel1.show end if if bPanel2 then frmMain.reparent(vPanel2) vpanel2.embeded = true vPanel2.show endif wend in the vPanel forms: Public embeded as boolean = false public sub Form_Activate() end sub public sub Button1_Click() ' check if open is done in frmMain or as standalone if embeded then mainmod.bPanel1 = false mainmod.bPanel2 = true endif end sub public sub ButtonDone_Click() mianmod.alldone = true end sub vPanel1 set mainmod.bPanel1 to false on start and mainmod.bPanel2 to true with the button_click Same but oposite numbers for the other panel, now you can switch between these. If all stuff is done set somewhere mainmod.alldone = true and all go back to initial state, as the while loop ends by this. I do not know what .reparent does exactly atm but my feeling tels me the reparent lines must be 'vPanel1.reparent(frmMain)' as setting the frmMain as parent for vPanel. As I read it (the example code) now it say do set vPanel as parent for frmMain. The main point is you should switching the panels/forms from outside those panels/forms using a global main module/class or inside the code of the frmMain and not try to do from inside the vPanels/subforms. Hope this will help a bit. Ron the I'st From rospolosco at ...152... Fri Jun 6 00:40:16 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 6 Jun 2008 00:40:16 +0200 Subject: [Gambas-user] a little puzzle game Message-ID: <200806060040.16501.rospolosco@...152...> I wrote this little puzzle game. Goal of the game: fill the 1 hundred grid cells with numbers from 13 to 100 (1 to 12 are in the puzzle by default). Rules: you can jump 2 cells in horizontal and vertical, 1 cell in oblique. To fill the cell just mouse click on a valid free cell. Bye, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: oneHundred-0.0.2.tar.gz Type: application/x-tgz Size: 10554 bytes Desc: not available URL: From eilert-sprachen at ...221... Fri Jun 6 09:35:37 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 Jun 2008 09:35:37 +0200 Subject: [Gambas-user] Gambas does not print specific letter Message-ID: <4848E8C9.5070608@...221...> This is a strange thing affecting Gambas 1 (I have not converted this app to Gambas 2 yet). For an application, there are several forms using the font Palatino. One of our students is from Turkey, and there are several special letters in Turkish. In her name, there is a capital S with a cedille under it and a lowercase i without the dot (to be found under Latin-A). The program prints into a ps file. With this font (others are ok!), the lowercase i without dot is printed correctly, but the capital S with cedille just disappears. The same font prints all these letters correctly in other applications like OOo, and in Gucharmap I can see that it definitely contains these letters. The temporary ps file does not contain this letter, and of course it won't be printed then... That means, it doesn't leave the Gambas printing engine. By the way, the capital S thing is C59E in UTF-8, it is saved as such in the file (I checked it) and thus should print (well, yes it does with other fonts, just not in Palatino). Anyone here had such a problem? Benoit, did the printing engine change from version 1 to 2, so the problem might go away by converting the project? Thanks for your time! Rolf From eilert-sprachen at ...221... Fri Jun 6 09:59:15 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 Jun 2008 09:59:15 +0200 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <799be1690805291704u3236f43bv40253d13d85337f6@...627...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> <200805290946.28691.sourceforge-raindog2@...94...> <1f1e8c1b0805290858u3d3043a6gf408d279d0091209@...627...> <799be1690805291704u3236f43bv40253d13d85337f6@...627...> Message-ID: <4848EE53.3020501@...221...> Jason Hackney schrieb: > I'd have to agree with you there. When I first grabbed Gambas, I tried > to insert a long, multi-line comment using /*, */. After I figured out > that wasn't going to work, I looked around and saw the " ' '" method > and said to myself, "aw crap, just like VB!". > > So, I empathize with ya, but I've gotten to the point where I don't > care either way now. > Don't know if anyone is still following this thread, but the other day I thought that it might be nearly impossible to implement this in the editor at least. Let me add my ideas here :-) I had some experiments with the editor for one of my own projects some months ago. Trying to make it suitable for my own type of Printer Forms, I found that it does not properly support block mode. At least I didn't find a sensible way of having a block of lines optically changed, e. g. by just saying "from line x to line y" or following an expression in {} over more than one line. For instance, it did make a number of lines gray or whatever, but when you went up with the cursor line by line through the block, the information was lost and they changed back to the color codes within the specific line (each line was parsed for itself again). The same thing happened when you edited one of the lines in the block. It didn't help either to try stopping this intentionally, or at least I didn't find a way to do so ;-) Sure, at this time, for a usual BASIC dialect, only line mode is important. But wouldn't block mode be an important feature in case of block comments? Rolf From gambas at ...1... Fri Jun 6 11:48:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jun 2008 11:48:35 +0200 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <4848EE53.3020501@...221...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> <799be1690805291704u3236f43bv40253d13d85337f6@...627...> <4848EE53.3020501@...221...> Message-ID: <200806061148.35752.gambas@...1...> On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: > Jason Hackney schrieb: > > I'd have to agree with you there. When I first grabbed Gambas, I tried > > to insert a long, multi-line comment using /*, */. After I figured out > > that wasn't going to work, I looked around and saw the " ' '" method > > and said to myself, "aw crap, just like VB!". > > > > So, I empathize with ya, but I've gotten to the point where I don't > > care either way now. > > Don't know if anyone is still following this thread, but the other day I > thought that it might be nearly impossible to implement this in the > editor at least. Let me add my ideas here :-) > > I had some experiments with the editor for one of my own projects some > months ago. Trying to make it suitable for my own type of Printer Forms, > I found that it does not properly support block mode. At least I didn't > find a sensible way of having a block of lines optically changed, e. g. > by just saying "from line x to line y" or following an expression in {} > over more than one line. > > For instance, it did make a number of lines gray or whatever, but when > you went up with the cursor line by line through the block, the > information was lost and they changed back to the color codes within the > specific line (each line was parsed for itself again). The same thing > happened when you edited one of the lines in the block. It didn't help > either to try stopping this intentionally, or at least I didn't find a > way to do so ;-) > > Sure, at this time, for a usual BASIC dialect, only line mode is > important. But wouldn't block mode be an important feature in case of > block comments? > > Rolf > The highlighter can highlight text blocks spanning multiple lines. Just open an html file in the editor and create some html comments if you don't trust me! This is done by keeping for each line the state of highlighter for the beginning of the next line. You define the state at beginning of the next line by setting the Highlight.State property in the Highlight event handler. Regards, -- Benoit Minisini From gambas at ...1... Fri Jun 6 11:50:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jun 2008 11:50:15 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <4848E8C9.5070608@...221...> References: <4848E8C9.5070608@...221...> Message-ID: <200806061150.15403.gambas@...1...> On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: > This is a strange thing affecting Gambas 1 (I have not converted this > app to Gambas 2 yet). > > For an application, there are several forms using the font Palatino. One > of our students is from Turkey, and there are several special letters in > Turkish. In her name, there is a capital S with a cedille under it and a > lowercase i without the dot (to be found under Latin-A). The program > prints into a ps file. > > With this font (others are ok!), the lowercase i without dot is printed > correctly, but the capital S with cedille just disappears. The same font > prints all these letters correctly in other applications like OOo, and > in Gucharmap I can see that it definitely contains these letters. The > temporary ps file does not contain this letter, and of course it won't > be printed then... That means, it doesn't leave the Gambas printing engine. > > By the way, the capital S thing is C59E in UTF-8, it is saved as such in > the file (I checked it) and thus should print (well, yes it does with > other fonts, just not in Palatino). > > Anyone here had such a problem? Benoit, did the printing engine change > from version 1 to 2, so the problem might go away by converting the > project? > > Thanks for your time! > > Rolf > I don't know, just ask Trolltech. Font support in Qt is sometimes strange, so to fix your problem, I can't tell you more than using another font... Regards, -- Benoit Minisini From eilert-sprachen at ...221... Fri Jun 6 12:42:26 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 Jun 2008 12:42:26 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <200806061150.15403.gambas@...1...> References: <4848E8C9.5070608@...221...> <200806061150.15403.gambas@...1...> Message-ID: <48491492.90403@...221...> Benoit Minisini schrieb: > On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: >> This is a strange thing affecting Gambas 1 (I have not converted this >> app to Gambas 2 yet). >> >> For an application, there are several forms using the font Palatino. One >> of our students is from Turkey, and there are several special letters in >> Turkish. In her name, there is a capital S with a cedille under it and a >> lowercase i without the dot (to be found under Latin-A). The program >> prints into a ps file. >> >> With this font (others are ok!), the lowercase i without dot is printed >> correctly, but the capital S with cedille just disappears. The same font >> prints all these letters correctly in other applications like OOo, and >> in Gucharmap I can see that it definitely contains these letters. The >> temporary ps file does not contain this letter, and of course it won't >> be printed then... That means, it doesn't leave the Gambas printing engine. >> >> By the way, the capital S thing is C59E in UTF-8, it is saved as such in >> the file (I checked it) and thus should print (well, yes it does with >> other fonts, just not in Palatino). >> >> Anyone here had such a problem? Benoit, did the printing engine change >> from version 1 to 2, so the problem might go away by converting the >> project? >> >> Thanks for your time! >> >> Rolf >> > > I don't know, just ask Trolltech. Font support in Qt is sometimes strange, so > to fix your problem, I can't tell you more than using another font... > > Regards, > I feared you would say that :-) Ok, as long as it's only one single letter with one font for one single student... But I'll try a sample app for this on Gambas 2 just to make sure. Regards Rolf From eilert-sprachen at ...221... Fri Jun 6 13:13:38 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 Jun 2008 13:13:38 +0200 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <200806061148.35752.gambas@...1...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> <799be1690805291704u3236f43bv40253d13d85337f6@...627...> <4848EE53.3020501@...221...> <200806061148.35752.gambas@...1...> Message-ID: <48491BE2.30901@...221...> Benoit Minisini schrieb: > On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: >> Jason Hackney schrieb: >>> I'd have to agree with you there. When I first grabbed Gambas, I tried >>> to insert a long, multi-line comment using /*, */. After I figured out >>> that wasn't going to work, I looked around and saw the " ' '" method >>> and said to myself, "aw crap, just like VB!". >>> >>> So, I empathize with ya, but I've gotten to the point where I don't >>> care either way now. >> Don't know if anyone is still following this thread, but the other day I >> thought that it might be nearly impossible to implement this in the >> editor at least. Let me add my ideas here :-) >> >> I had some experiments with the editor for one of my own projects some >> months ago. Trying to make it suitable for my own type of Printer Forms, >> I found that it does not properly support block mode. At least I didn't >> find a sensible way of having a block of lines optically changed, e. g. >> by just saying "from line x to line y" or following an expression in {} >> over more than one line. >> >> For instance, it did make a number of lines gray or whatever, but when >> you went up with the cursor line by line through the block, the >> information was lost and they changed back to the color codes within the >> specific line (each line was parsed for itself again). The same thing >> happened when you edited one of the lines in the block. It didn't help >> either to try stopping this intentionally, or at least I didn't find a >> way to do so ;-) >> >> Sure, at this time, for a usual BASIC dialect, only line mode is >> important. But wouldn't block mode be an important feature in case of >> block comments? >> >> Rolf >> > > The highlighter can highlight text blocks spanning multiple lines. Just open > an html file in the editor and create some html comments if you don't trust > me! > > This is done by keeping for each line the state of highlighter for the > beginning of the next line. You define the state at beginning of the next > line by setting the Highlight.State property in the Highlight event handler. > > Regards, > You're damn right, man! :-) Just tried the HighlightEditor example, it just does what it's supposed to do. Ok, so it was my problem as I changed the HighlightEditor example to fit my specific file format. Maybe I did something wrong. Thanks for this hint, Benoit, have a nice weekend! Regards Rolf From rterry at ...1822... Thu Jun 5 01:09:08 2008 From: rterry at ...1822... (richard terry) Date: Thu, 5 Jun 2008 09:09:08 +1000 Subject: [Gambas-user] Some general help on gambas (was columnview question) Message-ID: <200806050909.08491.rterry@...1822...> Search the web for this - its free in pdf file and will give you good examples of most things you will need, including a good example on columnview which you are having trouble with. I actually paid for the book to give the author (hopefully something back). Even though on early gambas, its a good grounding. gambas-beginner-guide.pdf Homer01 if you can't find it I can mail you a copy. Regards Richard From d.paleino at ...626... Fri Jun 6 14:54:59 2008 From: d.paleino at ...626... (David Paleino) Date: Fri, 6 Jun 2008 14:54:59 +0200 Subject: [Gambas-user] Is gambasrad.org alive? Message-ID: <20080606145459.4b022c0b@...626...> Hi all, I was looking for a place to put my Gambas projects, and found gambasrad.org (also gambasforge.net, but that doesn't seem really "usable"...). Is that project alive? I found that the latest "recent activities" were: Recent Changes BTS-Query 06 Jun 2008 BookMan 06 Jun 2008 Intall in Slackware 12 18 Jan 2008 Distributions & Operating Systems 18 Dec 2007 The first two are by me (today)... I submitted those projects for approval, but I doubt they will be ever approved by anyone... About gambasforge.net: Last Sources: 08/10/2007 11:38:36 archive screenshot LNKMUSIC by PxP 06/27/2007 09:30:22 archive IP CALC by robbrad 06/11/2007 21:24:41 by Baras That means, August 2007... Is there any alive project out there? Anyone willing to resuscitate one/both of the above? Eventually merge them? Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From rterry at ...1822... Fri Jun 6 00:19:02 2008 From: rterry at ...1822... (richard terry) Date: Fri, 6 Jun 2008 08:19:02 +1000 Subject: [Gambas-user] Small feature request for IDE Tab Menu Message-ID: <200806060819.02200.rterry@...1822...> Feature: Add a menu item to the popup tab menu allowing you to set the current form as the startup form. Rationale: if in wide screen mode, one has to hit F10, scroll down to where your form is, right mouse click and set as startup. When one is developing and testing forms it would eliminate lots of unecessary steps. Regards Ricahrd From amvargas at ...1922... Fri Jun 6 16:31:37 2008 From: amvargas at ...1922... (=?iso-8859-1?Q?Adrian_Mart=EDnez_Vargas?=) Date: Fri, 6 Jun 2008 10:31:37 -0400 Subject: [Gambas-user] call shared library written in C++ Message-ID: <001b01c8c7e2$077bf680$21141c0a@...1923...> Hello mail list If I have a shared library written in C++ that look like this: // suma.cc: extern "C" { float suma (float a, float b) { return a+b; } } // extern "C" haw to call the function suma(a,b) from gambas? my best Adrian From pmathijssen at ...626... Sat Jun 7 08:06:14 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Sat, 7 Jun 2008 08:06:14 +0200 Subject: [Gambas-user] Some general help on gambas (was columnview question) In-Reply-To: <200806050909.08491.rterry@...1822...> References: <200806050909.08491.rterry@...1822...> Message-ID: Thanks for the tip. This will be very helpfull. Peter 2008/6/5 richard terry : > Search the web for this - its free in pdf file and will give you good > examples > of most things you will need, including a good example on columnview which > you are having trouble with. > > I actually paid for the book to give the author (hopefully something back). > Even though on early gambas, its a good grounding. > > > gambas-beginner-guide.pdf > > Homer01 if you can't find it I can mail you a copy. > > Regards > > Richard > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From micman.manoj at ...626... Sat Jun 7 16:47:33 2008 From: micman.manoj at ...626... (manoj kumar) Date: Sat, 7 Jun 2008 21:47:33 +0700 Subject: [Gambas-user] Some general help on gambas (was columnview question) In-Reply-To: References: <200806050909.08491.rterry@...1822...> Message-ID: <4cfa722b0806070747n74cd5cdfk90202f840e97bef0@...627...> Thanks ! that information was very useful !! 2008/6/7 Peter Mathijssen : > Thanks for the tip. > This will be very helpfull. > > Peter > > 2008/6/5 richard terry : > > > Search the web for this - its free in pdf file and will give you good > > examples > > of most things you will need, including a good example on columnview > which > > you are having trouble with. > > > > I actually paid for the book to give the author (hopefully something > back). > > Even though on early gambas, its a good grounding. > > > > > > gambas-beginner-guide.pdf > > > > Homer01 if you can't find it I can mail you a copy. > > > > Regards > > > > Richard > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- /------>MaNoJkUmAr.A<------\ Known is a Drop,Unknown is an Ocean... ????? ????? ! ????? ????? ! From tomas.eroles at ...277... Sat Jun 7 21:58:10 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Sat, 07 Jun 2008 21:58:10 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142127.13689.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <200805142005.33626.gambas@...1...> <1210791049.4241.9.camel@...1787...> <200805142127.13689.gambas@...1...> Message-ID: <1212868690.7528.8.camel@...1787...> Hello again So much weeks ago we discussed about this subject. I'm looking for more information. I was looking your example, and it looks very nice, Benoit, but I do not understand completely how you have done it. I worked with .NET applications for the net, but there are some years ago, and, sincerely, I do not remember. So, I took a look at Gambasdoc with respect to the web component, but I'm not sure of understanding how does it works. Then, I would like to test this functinality and I've created a small application (blank now), but I do not find how to start. Could anybody help me? That is, which steps must I follow? Thanks in advance El dc 14 de 05 del 2008 a les 21:27 +0200, en/na Benoit Minisini va escriure: > On mercredi 14 mai 2008, Tomas Eroles i Forner wrote: > > Very good example! > > But I have more questions: > > - As Jose Luis says, would be possible to design web forms from GAMBAS? > > No. > > > - How are defined the forms in your application? > > The application is a CGI script, so you have tu use PRINT to send the HTML to > the browser. > > > - And how are you embeeding the GAMBAS code to control the behaviour of > > the application? > > Embedding? There is no "embedding" anywhere... > > > - Does I need anything to add to my Apache to run apps with GAMBAS CGI? > > No. I suggest you replace your Apache by something like thttpd. A light > browser usually speeds up your web application. > > Regards, > From charles at ...1784... Sun Jun 8 18:11:15 2008 From: charles at ...1784... (charlesg) Date: Sun, 8 Jun 2008 09:11:15 -0700 (PDT) Subject: [Gambas-user] doesn't work Message-ID: <17720252.post@...1379...> Ave Cybernautae! On Gambas 2.5 on Ubuntu 8.04 When I run the following with components gb, gb.db, gb.qt enabled the transfer from txtName to txtDate is fine with either or . When I run with gb, gb.db, gb.gtk the transfer does not take place with but only with . And the program starts minimised. Under Gambas 2.6 on Mandriva 2008 it works fine with either gb.qt or gb.gtk. I have seen other posts in this forum where 'tab key does nothing'. Is this a problem? Is there a solution? > PUBLIC SUB txtName_keyRelease() > DIM txtUpper AS String > DIM txtList AS String > > IF key.Code = key.Return OR key.Code = key.Enter OR key.Code = key.Tab > THEN > IF IsNull(txtName.text) THEN > txtName.SetFocus > ELSE 'go to next field > txtDate.SetFocus > STOP EVENT > ENDIF > ELSE > etc... etc.... > > ENDIF > END > -- View this message in context: http://www.nabble.com/%3Ctab%3E-doesn%27t-work-tp17720252p17720252.html Sent from the gambas-user mailing list archive at Nabble.com. From serif at ...1870... Sun Jun 8 18:49:16 2008 From: serif at ...1870... (Mike Brett) Date: Sun, 08 Jun 2008 17:49:16 +0100 Subject: [Gambas-user] Missing gb.qt Message-ID: <484C0D8C.80202@...1870...> Development platform = gambas 2.6.0 on Fedora 8 Target user platform = Debian etch variant (Asus eeePC, based on XandrOS) Because I could not find a version of 'debhelper' for Fed8, I have taken the route of making a gambas test application as if for Fed8, then using 'alien' on the target platform to make the required deb file. As far as I can tell this seemed to go without error. I also installed the gambas2 runtime from the etch repository http://apt.linex.org/linex/gambas/stable/ ./ as detailed on sourceforge. When I attempt to run my application on the target, I get ERROR #27: cannot load component 'gb.qt': cannot find library file Does this indicate that the runtime package I installed simply did not include the file, or does the problem lie in my application file please? I did a dpkg-deb -c gambas2-runtime_2.5-1~etch1_i386.deb on the cached runtime file and could see no mention of the gb.qt component. I'd much appreciate being pointed in the right direction. Thank you. - Mike Brett - From eilert-sprachen at ...221... Mon Jun 9 12:14:13 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Jun 2008 12:14:13 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <200806061150.15403.gambas@...1...> References: <4848E8C9.5070608@...221...> <200806061150.15403.gambas@...1...> Message-ID: <484D0275.3000107@...221...> Benoit Minisini schrieb: > On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: >> This is a strange thing affecting Gambas 1 (I have not converted this >> app to Gambas 2 yet). >> >> For an application, there are several forms using the font Palatino. One >> of our students is from Turkey, and there are several special letters in >> Turkish. In her name, there is a capital S with a cedille under it and a >> lowercase i without the dot (to be found under Latin-A). The program >> prints into a ps file. >> >> With this font (others are ok!), the lowercase i without dot is printed >> correctly, but the capital S with cedille just disappears. The same font >> prints all these letters correctly in other applications like OOo, and >> in Gucharmap I can see that it definitely contains these letters. The >> temporary ps file does not contain this letter, and of course it won't >> be printed then... That means, it doesn't leave the Gambas printing engine. >> >> By the way, the capital S thing is C59E in UTF-8, it is saved as such in >> the file (I checked it) and thus should print (well, yes it does with >> other fonts, just not in Palatino). >> >> Anyone here had such a problem? Benoit, did the printing engine change >> from version 1 to 2, so the problem might go away by converting the >> project? >> >> Thanks for your time! >> >> Rolf >> > > I don't know, just ask Trolltech. Font support in Qt is sometimes strange, so > to fix your problem, I can't tell you more than using another font... > > Regards, > Ok, I just tried to print something, but it doesn't run. Here's my code: PUBLIC SUB Button1_Click() Draw.Begin(printer) Draw.Text(TextBox1.Text, 200, 200) Draw.End END I know that Gambas2 only prints into file, but even if I give a filename, it will say "unknown object: printer" What's wrong here? Rolf From eilert-sprachen at ...221... Mon Jun 9 12:16:42 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Jun 2008 12:16:42 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <200806061150.15403.gambas@...1...> References: <4848E8C9.5070608@...221...> <200806061150.15403.gambas@...1...> Message-ID: <484D030A.2010905@...221...> Benoit Minisini schrieb: > On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: >> This is a strange thing affecting Gambas 1 (I have not converted this >> app to Gambas 2 yet). >> >> For an application, there are several forms using the font Palatino. One >> of our students is from Turkey, and there are several special letters in >> Turkish. In her name, there is a capital S with a cedille under it and a >> lowercase i without the dot (to be found under Latin-A). The program >> prints into a ps file. >> >> With this font (others are ok!), the lowercase i without dot is printed >> correctly, but the capital S with cedille just disappears. The same font >> prints all these letters correctly in other applications like OOo, and >> in Gucharmap I can see that it definitely contains these letters. The >> temporary ps file does not contain this letter, and of course it won't >> be printed then... That means, it doesn't leave the Gambas printing engine. >> >> By the way, the capital S thing is C59E in UTF-8, it is saved as such in >> the file (I checked it) and thus should print (well, yes it does with >> other fonts, just not in Palatino). >> >> Anyone here had such a problem? Benoit, did the printing engine change >> from version 1 to 2, so the problem might go away by converting the >> project? >> >> Thanks for your time! >> >> Rolf >> > > I don't know, just ask Trolltech. Font support in Qt is sometimes strange, so > to fix your problem, I can't tell you more than using another font... > > Regards, > Sorry, it says "Unknown identifier: printer", not "object" Rolf From m0e.lnx at ...626... Mon Jun 9 13:44:44 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 9 Jun 2008 06:44:44 -0500 Subject: [Gambas-user] Problem switching forms on embedded application In-Reply-To: <200806052354.28724.ronstk@...239...> References: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> <200806051642.21746.ronstk@...239...> <1f1e8c1b0806051034g5e78f810tc086ae3a200caaee@...627...> <200806052354.28724.ronstk@...239...> Message-ID: <1f1e8c1b0806090444u26b023afue3e0c20f1fb8dda9@...627...> The idea behind this design for this application is that future developers may contribute modules. I'm trying to eliminate the need for them to modify the general GUI wrapper to implemente their modules. If written successfully as planned, they will only need to write their module and the GUI wrapper will bring it in and implement it. If I understand correctly, it's been said that what I'm trying to do cannot be done (using multiple forms in one of these module applications). As a workaround in a testing environment, I've managed to handle tasks that require more than one step using a wizard object. I would have still been nice to be able to use multiple forms ;) Thanks for the help guys On Thu, Jun 5, 2008 at 4:54 PM, Ron Onstenk wrote: > On Thursday 05 June 2008, M0E Lnx wrote: >> Ron is exactly right... >> Checkout the application itself at http://vasmcc.googlecode.com >> >> it all works right, when the child application (the one embedded into >> the main gui) consists of only one form >> >> >> >> On Thu, Jun 5, 2008 at 9:42 AM, Ron Onstenk wrote: >> > On Wednesday 04 June 2008, Benoit Minisini wrote: >> >> On mercredi 04 juin 2008, M0E Lnx wrote: >> >> > After more testing, I have another problem here... >> >> > >> >> > The switching works now when reparenting forms into a host form via a >> >> > panel container >> >> > But when this form that hosts the other forms is embedded into another >> >> > program using am embedder object, it doesnt work >> >> > >> >> >> >> Please be more explicit, or, better, send a project that shows the bad >> >> behaviour. >> >> >> >> Regards, >> >> >> > >> > When I understand correct it is something like the mandrake control center. >> > >> > MCC opens also other forms inside the main application and you _quit_ >> > the (sub)form to go back to the main form (window). >> > >> > The extra for MOE Lnx is one of the main selections does the job with >> > 2 forms instead of one and he need a way to switch between the two (sub)forms. >> > >> > Ron the I'st :) >> > > > > OK > My idea to it is to make a module that opens the main form. > Using the embeder two times, one with the first and the the other with the second vPanel. > Switching the visibility by calling a function in the main module from the vPanels each > for this special case and use .Visible/.Show on the vPanel1 for the others. > > The handling for the both panels must be done from outside the vPanels > > module mainmod: > public alldone as boolean = false > public bPanel1 as boolean = false > public bPanel2 as boolean = false > > public vPanel1 as form > public vPanel2 as form > public frmMain as form > > vPanel1 = new form1 > vpanel1 = new form2 > > > while not alldone > vPanel1.Hide ' the right reference to the vPanels or embedder object in your code :) > vPanel2.Hide ' if you need this > > if bPanel1 then > frmMain.reparent(vPanel1) > vpanel1.embeded = true > vPanel1.show > end if > > if bPanel2 then > frmMain.reparent(vPanel2) > vpanel2.embeded = true > vPanel2.show > endif > > wend > > > in the vPanel forms: > > Public embeded as boolean = false > public sub Form_Activate() > > end sub > > public sub Button1_Click() > ' check if open is done in frmMain or as standalone > if embeded then > mainmod.bPanel1 = false > mainmod.bPanel2 = true > endif > end sub > > public sub ButtonDone_Click() > mianmod.alldone = true > end sub > > vPanel1 set mainmod.bPanel1 to false on start and mainmod.bPanel2 to true with the button_click > Same but oposite numbers for the other panel, now you can switch between these. > > If all stuff is done set somewhere mainmod.alldone = true and all go back to > initial state, as the while loop ends by this. > > I do not know what .reparent does exactly atm but my feeling tels me the reparent > lines must be 'vPanel1.reparent(frmMain)' as setting the frmMain as parent for vPanel. > As I read it (the example code) now it say do set vPanel as parent for frmMain. > > The main point is you should switching the panels/forms from outside those panels/forms > using a global main module/class or inside the code of the frmMain and not try to do > from inside the vPanels/subforms. > > > Hope this will help a bit. > > Ron the I'st > > > > > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From smiefert at ...784... Mon Jun 9 14:12:20 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 9 Jun 2008 14:12:20 +0200 Subject: [Gambas-user] Get Data from a tableview? Message-ID: <8D42310D957CFB46AA11921A711D4D16B4960FFB@...1899...> Hello, my tableview having 2 Columns and 2 rows like this 1,Mark 2,Steve How can I ge the values? Tableview.current.text is the clicked value but I need the first entry from the clicked row. How can I get this value? I need everytime the id and not the name From smiefert at ...784... Mon Jun 9 14:42:57 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 9 Jun 2008 14:42:57 +0200 Subject: [Gambas-user] TableView? Message-ID: <8D42310D957CFB46AA11921A711D4D16B4961001@...1899...> Hello, my tableview having 2 Columns and 2 rows like this 1,Mark 2,Steve How can I ge the values? Tableview.current.text is the clicked value but I need the first entry from the clicked row. How can I get this value? I need everytime the id and not the name From david_villalobos_c at ...43... Mon Jun 9 18:42:52 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 9 Jun 2008 09:42:52 -0700 (PDT) Subject: [Gambas-user] GridView autoresize Message-ID: <243621.79738.qm@...1671...> Hi all, When I make a double click on the line that divides the column header on a GridView the column resize its width to fit the maximun size, that is normal, but only happends when the user double clicks the column. Is there a way to make this "autoresize" automaticly? Like for example after fill the gridview? Best regards David. From jredrejo at ...626... Mon Jun 9 21:52:18 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Mon, 9 Jun 2008 21:52:18 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <1212868690.7528.8.camel@...1787...> References: <1210786681.4241.3.camel@...1787...> <200805142005.33626.gambas@...1...> <1210791049.4241.9.camel@...1787...> <200805142127.13689.gambas@...1...> <1212868690.7528.8.camel@...1787...> Message-ID: <8eb28a500806091252y75ad09dese71902c79c9168c0@...627...> 2008/6/7 Tomas Eroles i Forner : > Hello again > So much weeks ago we discussed about this subject. I'm looking for more > information. > I was looking your example, and it looks very nice, Benoit, but I do not > understand completely how you have done it. I worked with .NET > applications for the net, but there are some years ago, and, sincerely, > I do not remember. > So, I took a look at Gambasdoc with respect to the web component, but > I'm not sure of understanding how does it works. > > Then, I would like to test this functinality and I've created a small > application (blank now), but I do not find how to start. > > Could anybody help me? That is, which steps must I follow? > > Thanks in advance > > You can take a look to rayuela-ldap at http://linex.educarex.es/debian/pool/main/r/rayuela-ldap/ It's a small application that runs a gambas cgi to import a xml file, and create users accounts in a ldap server. You can ignore the importation of the data and ldap exportation, it does not care for your purpose, but you can see how a cgi made in gambas is done. Hope this helps. Regards. From gambas at ...1... Mon Jun 9 22:51:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jun 2008 22:51:16 +0200 Subject: [Gambas-user] doesn't work In-Reply-To: <17720252.post@...1379...> References: <17720252.post@...1379...> Message-ID: <200806092251.16379.gambas@...1...> On dimanche 08 juin 2008, charlesg wrote: > Ave Cybernautae! > > On Gambas 2.5 on Ubuntu 8.04 > > When I run the following with components gb, gb.db, gb.qt enabled the > transfer from txtName to txtDate is fine with either or . > > When I run with gb, gb.db, gb.gtk the transfer does not take place with > but only with . And the program starts minimised. > > Under Gambas 2.6 on Mandriva 2008 it works fine with either gb.qt or > gb.gtk. > > I have seen other posts in this forum where 'tab key does nothing'. Is this > a problem? Is there a solution? > Upgrading to Gambas 2.6 to get the bug fix? -- Benoit Minisini From pinozollo at ...626... Mon Jun 9 21:17:58 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 9 Jun 2008 15:17:58 -0400 Subject: [Gambas-user] Some general help on gambas (was columnview question) In-Reply-To: <4cfa722b0806070747n74cd5cdfk90202f840e97bef0@...627...> References: <200806050909.08491.rterry@...1822...> <4cfa722b0806070747n74cd5cdfk90202f840e97bef0@...627...> Message-ID: <200806091518.01833.pinozollo@...626...> > > > gambas-beginner-guide.pdf > > > > > > Homer01 if you can't find it I can mail you a copy. > > > > > > Regards > > > > > > Richard Richard, can I download that from somewhere ? Thanks Pino From jeffreyjohnson at ...1747... Tue Jun 10 02:02:07 2008 From: jeffreyjohnson at ...1747... (Jeff Johnson) Date: Mon, 9 Jun 2008 19:02:07 -0500 Subject: [Gambas-user] FTPClient Message-ID: <200806091902.08035.jeffreyjohnson@...1747...> Does anyone know how to use this control? I am able to get it to login in, but putting a file is not working. Also, how am I to to a remote change directory. Any advice would be welcome. From rospolosco at ...152... Tue Jun 10 10:35:58 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 10 Jun 2008 10:35:58 +0200 Subject: [Gambas-user] Some general help on gambas (was columnview question) In-Reply-To: <200806091518.01833.pinozollo@...626...> References: <200806050909.08491.rterry@...1822...> <4cfa722b0806070747n74cd5cdfk90202f840e97bef0@...627...> <200806091518.01833.pinozollo@...626...> Message-ID: <200806101035.58717.rospolosco@...152...> Il luned? 9 giugno 2008 21:17:58 Pino Zollo ha scritto: > > > > gambas-beginner-guide.pdf > > > > > > > > Homer01 if you can't find it I can mail you a copy. > > > > > > > > Regards > > > > > > > > Richard > > Richard, > can I download that from somewhere ? > > Thanks > Pino > You can download it from: http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf Ciao > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jun 10 10:53:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 10:53:50 +0200 Subject: [Gambas-user] Missing gb.qt In-Reply-To: <484C0D8C.80202@...1870...> References: <484C0D8C.80202@...1870...> Message-ID: <200806101053.50273.gambas@...1...> On dimanche 08 juin 2008, Mike Brett wrote: > Development platform = gambas 2.6.0 on Fedora 8 > Target user platform = Debian etch variant (Asus eeePC, based on XandrOS) > > Because I could not find a version of 'debhelper' for Fed8, I have taken > the route of making a gambas test application as if for Fed8, then using > 'alien' on the target platform to make the required deb file. As far as > I can tell this seemed to go without error. > > I also installed the gambas2 runtime from the etch repository > http://apt.linex.org/linex/gambas/stable/ ./ > as detailed on sourceforge. > > When I attempt to run my application on the target, I get > ERROR #27: cannot load component 'gb.qt': cannot find library file > > Does this indicate that the runtime package I installed simply did not > include the file, or does the problem lie in my application file please? > > I did a dpkg-deb -c gambas2-runtime_2.5-1~etch1_i386.deb on the cached > runtime file and could see no mention of the gb.qt component. > > I'd much appreciate being pointed in the right direction. > > Thank you. > > - Mike Brett - > > The runtime is not enough. You need the binary package of each component used by your project. If you make a binary package of a Gambas application from the IDE, these dependencies wiil be automatically included. If you want more details about Gambas packaging, look at http://gambasdoc.org/help/howto/package Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 10 10:54:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 10:54:15 +0200 Subject: [Gambas-user] GridView autoresize In-Reply-To: <243621.79738.qm@...1671...> References: <243621.79738.qm@...1671...> Message-ID: <200806101054.15508.gambas@...1...> On lundi 09 juin 2008, David Villalobos Cambronero wrote: > Hi all, > > When I make a double click on the line that divides the column header on a > GridView the column resize its width to fit the maximun size, that is > normal, but only happends when the user double clicks the column. > > Is there a way to make this "autoresize" automaticly? Like for example > after fill the gridview? > > Best regards > > David. > Do you use gb.qt or gb.gtk? -- Benoit Minisini From rospolosco at ...152... Tue Jun 10 10:55:37 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 10 Jun 2008 10:55:37 +0200 Subject: [Gambas-user] Get Data from a tableview? In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B4960FFB@...1899...> References: <8D42310D957CFB46AA11921A711D4D16B4960FFB@...1899...> Message-ID: <200806101055.37433.rospolosco@...152...> Il luned? 9 giugno 2008 14:12:20 Stefan Miefert ha scritto: > Hello, > > my tableview having 2 Columns and 2 rows like this > > 1,Mark > 2,Steve > > > How can I ge the values? > > Tableview.current.text is the clicked value but I need the first entry from > the clicked row. > > How can I get this value? I need everytime the id and not the name > I hope I understood. I've attached a little example. Bye > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > 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: tableview-0.0.1.tar.gz Type: application/x-tgz Size: 7711 bytes Desc: not available URL: From wig at ...1809... Tue Jun 10 12:31:03 2008 From: wig at ...1809... (wig) Date: Tue, 10 Jun 2008 12:31:03 +0200 (CEST) Subject: [Gambas-user] "automatic" increasing version nr in project? Message-ID: <45783.81.245.220.11.1213093863.squirrel@...1810...> Is there a way to let the last part of the version nr in (Project property, General) increase at every compile? (I use gambas 2.x) From rospolosco at ...152... Tue Jun 10 12:45:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 10 Jun 2008 12:45:14 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <484D030A.2010905@...221...> References: <4848E8C9.5070608@...221...> <200806061150.15403.gambas@...1...> <484D030A.2010905@...221...> Message-ID: <200806101245.15247.rospolosco@...152...> Il luned? 9 giugno 2008 12:16:42 Rolf-Werner Eilert ha scritto: > Benoit Minisini schrieb: > > On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: > >> This is a strange thing affecting Gambas 1 (I have not converted this > >> app to Gambas 2 yet). > >> > >> For an application, there are several forms using the font Palatino. One > >> of our students is from Turkey, and there are several special letters in > >> Turkish. In her name, there is a capital S with a cedille under it and a > >> lowercase i without the dot (to be found under Latin-A). The program > >> prints into a ps file. > >> > >> With this font (others are ok!), the lowercase i without dot is printed > >> correctly, but the capital S with cedille just disappears. The same font > >> prints all these letters correctly in other applications like OOo, and > >> in Gucharmap I can see that it definitely contains these letters. The > >> temporary ps file does not contain this letter, and of course it won't > >> be printed then... That means, it doesn't leave the Gambas printing > >> engine. > >> > >> By the way, the capital S thing is C59E in UTF-8, it is saved as such in > >> the file (I checked it) and thus should print (well, yes it does with > >> other fonts, just not in Palatino). > >> > >> Anyone here had such a problem? Benoit, did the printing engine change > >> from version 1 to 2, so the problem might go away by converting the > >> project? > >> > >> Thanks for your time! > >> > >> Rolf > > > > I don't know, just ask Trolltech. Font support in Qt is sometimes > > strange, so to fix your problem, I can't tell you more than using another > > font... > > > > Regards, > > Sorry, it says "Unknown identifier: printer", not "object" > > Rolf > Hi, you have to add to your project the gb.qt.ext component. Also, look at the Gambas2 local help gb.qt.ext --> Printer or online: http://gambasdoc.org/help/comp/gb.qt.ext/printer Bye, Stefano > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jun 10 12:54:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 12:54:45 +0200 Subject: [Gambas-user] "automatic" increasing version nr in project? In-Reply-To: <45783.81.245.220.11.1213093863.squirrel@...1810...> References: <45783.81.245.220.11.1213093863.squirrel@...1810...> Message-ID: <200806101254.45309.gambas@...1...> On mardi 10 juin 2008, wig wrote: > Is there a way to let the last part of the version nr in (Project > property, General) increase at every compile? > > (I use gambas 2.x) > No. But the last part of the version number is automatically incremented each time you make an executable. Maybe you could use that feature instead? -- Benoit Minisini From eilert-sprachen at ...221... Tue Jun 10 13:03:56 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 10 Jun 2008 13:03:56 +0200 Subject: [Gambas-user] Gambas does not print specific letter In-Reply-To: <200806101245.15247.rospolosco@...152...> References: <4848E8C9.5070608@...221...> <200806061150.15403.gambas@...1...> <484D030A.2010905@...221...> <200806101245.15247.rospolosco@...152...> Message-ID: <484E5F9C.4010608@...221...> Stefano Palmeri schrieb: > Il luned? 9 giugno 2008 12:16:42 Rolf-Werner Eilert ha scritto: >> Benoit Minisini schrieb: >>> On vendredi 06 juin 2008, Rolf-Werner Eilert wrote: >>>> This is a strange thing affecting Gambas 1 (I have not converted this >>>> app to Gambas 2 yet). >>>> >>>> For an application, there are several forms using the font Palatino. One >>>> of our students is from Turkey, and there are several special letters in >>>> Turkish. In her name, there is a capital S with a cedille under it and a >>>> lowercase i without the dot (to be found under Latin-A). The program >>>> prints into a ps file. >>>> >>>> With this font (others are ok!), the lowercase i without dot is printed >>>> correctly, but the capital S with cedille just disappears. The same font >>>> prints all these letters correctly in other applications like OOo, and >>>> in Gucharmap I can see that it definitely contains these letters. The >>>> temporary ps file does not contain this letter, and of course it won't >>>> be printed then... That means, it doesn't leave the Gambas printing >>>> engine. >>>> >>>> By the way, the capital S thing is C59E in UTF-8, it is saved as such in >>>> the file (I checked it) and thus should print (well, yes it does with >>>> other fonts, just not in Palatino). >>>> >>>> Anyone here had such a problem? Benoit, did the printing engine change >>>> from version 1 to 2, so the problem might go away by converting the >>>> project? >>>> >>>> Thanks for your time! >>>> >>>> Rolf >>> I don't know, just ask Trolltech. Font support in Qt is sometimes >>> strange, so to fix your problem, I can't tell you more than using another >>> font... >>> >>> Regards, >> Sorry, it says "Unknown identifier: printer", not "object" >> >> Rolf >> > Hi, > > you have to add to your project the gb.qt.ext component. > > Also, look at the Gambas2 local help > > gb.qt.ext --> Printer > > or online: > > http://gambasdoc.org/help/comp/gb.qt.ext/printer > > Bye, > > Stefano Aaaaah - ok :-) (I'll try this afternoon) The point is, in the local help, when look at "Draw", the old "printer" syntax is still described. If online, "printer" is omitted there. Maybe a keyword "printer" in the help would be good to have something to search for. And a hint that you have to use gb.qt.ext to get it supported. Regards Rolf From wspinto at ...1405... Tue Jun 10 15:00:29 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Tue, 10 Jun 2008 10:00:29 -0300 Subject: [Gambas-user] Gambas-user Digest, Vol 25, Issue 17 In-Reply-To: References: Message-ID: <1213102829.484e7aedeec30@...1540...> Hi Adrian! Use this way. Extern suma(a as float, b as float) As float In "your_library_name" ? suma(10,15) > 25 Reguards, Souza, Wellington > Message: 1 > Date: Fri, 6 Jun 2008 10:31:37 -0400 > From: Adrian Mart?nez Vargas > Subject: [Gambas-user] call shared library written in C++ > To: > Message-ID: <001b01c8c7e2$077bf680$21141c0a at ...1923...> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > > Hello mail list > > > > If I have a shared library written in C++ that look like this: > > > > // suma.cc: > > extern "C" > > { > > float suma (float a, float b) > > { > > return a+b; > > } > > } // extern "C" > > > > haw to call the function suma(a,b) from gambas? > > > > my best > > Adrian ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From david_villalobos_c at ...43... Tue Jun 10 18:11:27 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 10 Jun 2008 09:11:27 -0700 (PDT) Subject: [Gambas-user] GridView autoresize Message-ID: <214413.74344.qm@...1678...> I use qt ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, June 10, 2008 2:54:15 AM Subject: Re: [Gambas-user] GridView autoresize On lundi 09 juin 2008, David Villalobos Cambronero wrote: > Hi all, > > When I make a double click on the line that divides the column header on a > GridView the column resize its width to fit the maximun size, that is > normal, but only happends when the user double clicks the column. > > Is there a way to make this "autoresize" automaticly? Like for example > after fill the gridview? > > Best regards > > David. > Do you use gb.qt or gb.gtk? -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Tue Jun 10 19:07:34 2008 From: ron at ...1740... (Ron) Date: Tue, 10 Jun 2008 19:07:34 +0200 Subject: [Gambas-user] create code option in form designer Message-ID: <484EB4D6.3060005@...1740...> Question. Is there a way to generate the code for an object you designed in the gui. If not wouldn't it be a nice feature? Let say you created a window and dragged a frame in it, and set the size etc etc, would be nice if you could see/save the lines of code you would need to create the objects without using the gui. As for a learning experience, and if you want to let your code generate similar content at runtime. I know you can see the dimensions etc already in the form created if you peek into the file itself. Regards, Ron. From kari.laine at ...1400... Tue Jun 10 21:59:59 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 10 Jun 2008 22:59:59 +0300 Subject: [Gambas-user] sqlite Message-ID: <484EDD3F.7050800@...1400...> Hi, Now I have had almost all the modules to compile in the Gambas. sqlite2 is stilling giving me problems. From their web-site there is only available version 3.5.9. I compiled this and still gambas is not happy because the sqlite.h has changed to sqlite3.h and lisqlite.so has changed to libsqlite3.so . what about the component sqlite2 in Gambas - is it compatible with the series three of the sqlite? So I could just hack in the autoconf files? Best Regards Kari Laine From gambas at ...1... Tue Jun 10 22:29:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 22:29:20 +0200 Subject: [Gambas-user] sqlite In-Reply-To: <484EDD3F.7050800@...1400...> References: <484EDD3F.7050800@...1400...> Message-ID: <200806102229.20650.gambas@...1...> On mardi 10 juin 2008, Kari Laine wrote: > Hi, > > Now I have had almost all the modules to compile in the Gambas. sqlite2 > is stilling giving me problems. From their web-site there is only > available version 3.5.9. I compiled this and still gambas is not happy > because the sqlite.h has changed to sqlite3.h and lisqlite.so has > changed to libsqlite3.so . > > what about the component sqlite2 in Gambas - is it compatible with the > series three of the sqlite? So I could just hack in the autoconf files? > > Best Regards > Kari Laine > The sqlite2 component is independent of the sqlite3 component. The two shared libraries they are based on are different: libsqlite.so & libsqlite3.so. So this is not a problem if you cannot compile the sqlite2 component. This component may even be removed in Gambas 3. Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 10 22:33:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 22:33:52 +0200 Subject: [Gambas-user] create code option in form designer In-Reply-To: <484EB4D6.3060005@...1740...> References: <484EB4D6.3060005@...1740...> Message-ID: <200806102233.52049.gambas@...1...> On mardi 10 juin 2008, Ron wrote: > Question. > > Is there a way to generate the code for an object you designed in the gui. > If not wouldn't it be a nice feature? > > Let say you created a window and dragged a frame in it, and set the size > etc etc, would be nice if you could see/save the lines of code you would > need to create the objects without using the gui. > > As for a learning experience, and if you want to let your code generate > similar content at runtime. > > I know you can see the dimensions etc already in the form created if you > peek into the file itself. > > Regards, > Ron. > The code is generated entirely from the contents of the *.form file. It is just the instanciation of a control inside its container followed by a method call (Move or MoveScaled) and property assignments. The only trick is when you put a "virtual" control inside a form. There is a mark that tells the compiler that this is not a true control, and that it must not pass the container as argument to the control constructor. In other words, I don't find that feature really useful, but if you can really persuade me to it, I will have to modify the compiler so that it can give you the generated code from a form file. :-) -- Benoit Minisini From ron at ...1740... Wed Jun 11 00:05:52 2008 From: ron at ...1740... (Ron) Date: Wed, 11 Jun 2008 00:05:52 +0200 Subject: [Gambas-user] create code option in form designer In-Reply-To: <200806102233.52049.gambas@...1...> References: <484EB4D6.3060005@...1740...> <200806102233.52049.gambas@...1...> Message-ID: <484EFAC0.9040709@...1740...> Benoit Minisini schreef: > On mardi 10 juin 2008, Ron wrote: > >> Question. >> >> Is there a way to generate the code for an object you designed in the gui. >> If not wouldn't it be a nice feature? >> >> Let say you created a window and dragged a frame in it, and set the size >> etc etc, would be nice if you could see/save the lines of code you would >> need to create the objects without using the gui. >> >> As for a learning experience, and if you want to let your code generate >> similar content at runtime. >> >> I know you can see the dimensions etc already in the form created if you >> peek into the file itself. >> >> Regards, >> Ron. >> >> > > The code is generated entirely from the contents of the *.form file. It is > just the instanciation of a control inside its container followed by a method > call (Move or MoveScaled) and property assignments. > > The only trick is when you put a "virtual" control inside a form. There is a > mark that tells the compiler that this is not a true control, and that it > must not pass the container as argument to the control constructor. > > In other words, I don't find that feature really useful, but if you can really > persuade me to it, I will have to modify the compiler so that it can give you > the generated code from a form file. :-) > Maybe we can vote for it, if i'm the only one who want it's, you win. ;-) And for the learning part it's a matter of time, I have to look in the docs less and less... ;) Regards, Ron the 2nd From rterry at ...1822... Wed Jun 11 00:09:37 2008 From: rterry at ...1822... (richard terry) Date: Wed, 11 Jun 2008 08:09:37 +1000 Subject: [Gambas-user] Scrolling a columnview list in code Message-ID: <200806110809.37294.rterry@...1822...> Is there a way to scroll a columnview in code? Scenario: I have a form which loads a column view with search results. To make it easy to see the whole list, it is maximized to the size of the form a the time of selection. However, once the selection is made (e.g it could be from the bottom of the list), I shrink the list to a much smaller size, and show the data entry area underneath. The result is that the selected item 'disappears' from view on the list, whearas I'd like to auto-scroll the list so that it appears at the top (ie like the user manually clicked on the scroll bar and scrolled it back up). Hope this is not too ambiguous. Regards Richard From rterry at ...1822... Wed Jun 11 00:35:09 2008 From: rterry at ...1822... (richard terry) Date: Wed, 11 Jun 2008 08:35:09 +1000 Subject: [Gambas-user] Having some sort of versioning system on local machine Message-ID: <200806110835.09712.rterry@...1822...> Not gambas specific but here goes. I want to have the equivalent of an svn on my local machine, and wondered if that is possible, so that every time I loaded gambas, I load the latest version, but can roll back if I screw something up. Is this possible, if so, any help would be appreciated. Thanks. From rterry at ...1822... Wed Jun 11 00:46:00 2008 From: rterry at ...1822... (richard terry) Date: Wed, 11 Jun 2008 08:46:00 +1000 Subject: [Gambas-user] How does one do some sort of auto-documentation for program Message-ID: <200806110846.00834.rterry@...1822...> I'm pretty meticulous about commenting my code, but would like to have some sort of reference system I can look up akin to the gambas doc's, as it is easier having it in html than having to load class files etc to look at ones comments. Anyone know how to set this sort of thing up? Regards Richard From sourceforge-raindog2 at ...94... Wed Jun 11 00:58:22 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 10 Jun 2008 18:58:22 -0400 Subject: [Gambas-user] How does one do some sort of auto-documentation for program In-Reply-To: <200806110846.00834.rterry@...1822...> References: <200806110846.00834.rterry@...1822...> Message-ID: <200806101858.22669.sourceforge-raindog2@...94...> On Tuesday 10 June 2008 18:46, richard terry wrote: > Anyone know how to set this sort of thing up? Are you talking about something like Perl's "pod" system, where you encapsulate your documentation inside your code? http://www.perl.com/doc/manual/html/pod/perlpod.html I think you could adapt that concept to work with comments in your Gambas code, or adapt Benoit's Wiki generator program to generate static HTML for your own classes. Rob From gambas at ...1... Wed Jun 11 01:10:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jun 2008 01:10:11 +0200 Subject: [Gambas-user] Scrolling a columnview list in code In-Reply-To: <200806110809.37294.rterry@...1822...> References: <200806110809.37294.rterry@...1822...> Message-ID: <200806110110.11396.gambas@...1...> On mercredi 11 juin 2008, richard terry wrote: > Is there a way to scroll a columnview in code? > > Scenario: I have a form which loads a column view with search results. To > make it easy to see the whole list, it is maximized to the size of the form > a the time of selection. > > However, once the selection is made (e.g it could be from the bottom of the > list), I shrink the list to a much smaller size, and show the data entry > area underneath. > > The result is that the selected item 'disappears' from view on the list, > whearas I'd like to auto-scroll the list so that it appears at the top (ie > like the user manually clicked on the scroll bar and scrolled it back up). > > Hope this is not too ambiguous. > > Regards > > Richard > Try the item EnsureVisible method. -- Benoit Minisini From ron at ...1740... Wed Jun 11 01:25:35 2008 From: ron at ...1740... (Ron) Date: Wed, 11 Jun 2008 01:25:35 +0200 Subject: [Gambas-user] Adding a form to a workspace, grideditor Message-ID: <484F0D6F.3040405@...1740...> Is this valid? --- PUBLIC SUB tbnDevices_Click() DIM doc AS NEW FDevices wrkMain.Show wrkMain.Add(doc) END --- FDevices is a Form , like the test form from GridEditor wrkMain is my Workspace The problem is, FDevices contains the GridEditor demo code, and it runs ok if I open it from a menu item with FDevices.Show But if I open it by adding it to my workspace, it errors with: "Can't find a connection called 'devices'" it refers to the mysql connection Grideditor uses, my connection is called 'devices' and like I said it runs when I open it with .Show. All the code is in Form_Open() Am I doing something not allowed? Gambas 2.6 svn Regards, Ron the 2nd From rterry at ...1822... Tue Jun 10 02:36:28 2008 From: rterry at ...1822... (richard terry) Date: Tue, 10 Jun 2008 10:36:28 +1000 Subject: [Gambas-user] Some general help on gambas (was columnview question) In-Reply-To: <200806091518.01833.pinozollo@...626...> References: <200806050909.08491.rterry@...1822...> <4cfa722b0806070747n74cd5cdfk90202f840e97bef0@...627...> <200806091518.01833.pinozollo@...626...> Message-ID: <200806101036.28215.rterry@...1822...> On Tue, 10 Jun 2008 05:17:58 am Pino Zollo wrote: > > > > gambas-beginner-guide.pdf > > > > > > > > Homer01 if you can't find it I can mail you a copy. > > > > > > > > Regards > > > > > > > > Richard > > Richard, > can I download that from somewhere ? Try; http://www.filewatcher.com/m/gambas-beginner-guide.pdf.5773915.0.0.html > > Thanks > Pino > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kari.laine at ...1400... Wed Jun 11 01:44:26 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 11 Jun 2008 02:44:26 +0300 Subject: [Gambas-user] sqlite In-Reply-To: <200806102229.20650.gambas@...1...> References: <484EDD3F.7050800@...1400...> <200806102229.20650.gambas@...1...> Message-ID: <484F11DA.8020305@...1400...> Benoit Minisini kirjoitti: >> > > The sqlite2 component is independent of the sqlite3 component. The two shared > libraries they are based on are different: libsqlite.so & libsqlite3.so. > > So this is not a problem if you cannot compile the sqlite2 component. This > component may even be removed in Gambas 3. Thanks Benoit! Could you also answer second question of mine. I remember having seen package gb.report somewhere... and a mention about report making module. Has there been that kind of module or have I been dreaming? Has it been discontinued. And now when I got your attention :-) I have used many distros. Redhat until they went commercial...all the major distros and I ended with SUSE. It is best distro for many others too. BUT installing gambas with all the supporting packages is a main issue. I practised to make packages for SUSE 10.3 and I succeeded to make packages witch worked somehow. Problem is the depended packages which are not all available in right format in SUSE. So to package Gambas those other packages have to be packaged also. This is huge project and naturally it have to be done for X86_64 arch also. Therefore it would be nice if about 5 people would cooperatively start doing this. I can take part on this and host those packages (if the trafic is not horrible). Best Regards Kari Laine FINLAND From eilert-sprachen at ...221... Wed Jun 11 11:19:39 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 11 Jun 2008 11:19:39 +0200 Subject: [Gambas-user] Error compiling from svn for 3.0 Message-ID: <484F98AB.6060102@...221...> Just fyi, Benoit: When I try to compile from svn, I get the following error (I guess it starts here): Making all in gb.qt make[2]: Entering directory `/home/tester/gambastest/trunk/gb.qt' make all-recursive make[3]: Entering directory `/home/tester/gambastest/trunk/gb.qt' Making all in src make[4]: Entering directory `/home/tester/gambastest/trunk/gb.qt/src' Making all in ext make[5]: Entering directory `/home/tester/gambastest/trunk/gb.qt/src/ext' ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp /usr/bin//moc -o CLCDNumber_moc.cpp CLCDNumber.h ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CLCDNumber.lo -MD -MP -MF .deps/CLCDNumber.Tpo -c -o CLCDNumber.lo CLCDNumber.cpp /usr/bin//moc -o CDial_moc.cpp CDial.h ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial.lo -MD -MP -MF .deps/CDial.Tpo -c -o CDial.lo CDial.cpp ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT garray.lo -MD -MP -MF .deps/garray.Tpo -c -o garray.lo garray.cpp ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gstring.lo -MD -MP -MF .deps/gstring.Tpo -c -o gstring.lo gstring.cpp CLCDNumber.h:0: Warning: No relevant classes found. No output generated. ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gdocument.lo -MD -MP -MF .deps/gdocument.Tpo -c -o gdocument.lo gdocument.cpp /usr/bin//moc -o gview_moc.cpp gview.h ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gview.lo -MD -MP -MF .deps/gview.Tpo -c -o gview.lo gview.cpp /usr/bin//moc -o CEditor_moc.cpp CEditor.h ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CEditor.lo -MD -MP -MF .deps/CEditor.Tpo -c -o CEditor.lo CEditor.cpp mv -f .deps/gstring.Tpo .deps/gstring.Plo ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c -o CDraw.lo CDraw.cpp mv -f .deps/garray.Tpo .deps/garray.Plo /usr/bin//moc -o CDrawing_moc.cpp CDrawing.h CDrawing.h:0: Warning: No relevant classes found. No output generated. ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDrawing.lo -MD -MP -MF .deps/CDrawing.Tpo -c -o CDrawing.lo CDrawing.cpp mv -f .deps/main.Tpo .deps/main.Plo /usr/bin//moc -o CPrinter_moc.cpp CPrinter.h CPrinter.h:0: Warning: No relevant classes found. No output generated. ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CPrinter.lo -MD -MP -MF .deps/CPrinter.Tpo -c -o CPrinter.lo CPrinter.cpp mv -f .deps/CDraw.Tpo .deps/CDraw.Plo /usr/bin//moc -o CTextEdit_moc.cpp CTextEdit.h ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CTextEdit.lo -MD -MP -MF .deps/CTextEdit.Tpo -c -o CTextEdit.lo CTextEdit.cpp mv -f .deps/CLCDNumber.Tpo .deps/CLCDNumber.Plo ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CLCDNumber_moc.lo -MD -MP -MF .deps/CLCDNumber_moc.Tpo -c -o CLCDNumber_moc.lo CLCDNumber_moc.cpp mv -f .deps/CDrawing.Tpo .deps/CDrawing.Plo ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp mv -f .deps/CLCDNumber_moc.Tpo .deps/CLCDNumber_moc.Plo ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gview_moc.lo -MD -MP -MF .deps/gview_moc.Tpo -c -o gview_moc.lo gview_moc.cpp CDial_moc.cpp:12:2: error: #error "The header file 'CDial.h' doesn't include ." mv -f .deps/CDial.Tpo .deps/CDial.Plo ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CEditor_moc.lo -MD -MP -MF .deps/CEditor_moc.Tpo -c -o CEditor_moc.lo CEditor_moc.cpp CEditor_moc.cpp:12:2: error: #error "The header file 'CEditor.h' doesn't include ." gview_moc.cpp:12:2: error: #error "The header file 'gview.h' doesn't include ." CDial_moc.cpp:39: error: ?const QMetaObject CDial::staticMetaObject? is not a static member of ?class CDial? CDial_moc.cpp:39: error: variable ?const QMetaObject CDial::staticMetaObject? has initializer but incomplete type CDial_moc.cpp:44: error: prototype for ?const QMetaObject* CDial::metaObject() const? does not match any in class ?CDial? CDial.h:51: error: candidate is: virtual QMetaObject* CDial::metaObject() const CDial_moc.cpp:44: error: ?const QMetaObject* CDial::metaObject() const? cannot be overloaded CDial.h:51: error: with ?virtual QMetaObject* CDial::metaObject() const? CDial_moc.cpp: In member function ?const QMetaObject* CDial::metaObject() const?: CDial_moc.cpp:46: error: cannot convert ?QMetaObject* (*)()? to ?const QMetaObject*? in return CDial_moc.cpp: At global scope: CDial_moc.cpp:49: error: no ?void* CDial::qt_metacast(const char*)? member function declared in class ?CDial? CDial_moc.cpp: In member function ?void* CDial::qt_metacast(const char*)?: CDial_moc.cpp:54: error: ?qt_metacast? is not a member of ?QObject? CDial_moc.cpp: At global scope: CDial_moc.cpp:57: error: ?int CDial::qt_metacall? is not a static member of ?class CDial? CDial_moc.cpp:57: error: incomplete type ?QMetaObject? used in nested name specifier CDial_moc.cpp:57: error: expected primary-expression before ?int? CDial_moc.cpp:57: error: expected primary-expression before ?void? CDial_moc.cpp:57: error: initializer expression list treated as compound expression CDial_moc.cpp:58: error: expected ?,? or ?;? before ?{? token make[5]: *** [CDial_moc.lo] Fehler 1 make[5]: *** Warte auf noch nicht beendete Prozesse... mv -f .deps/CEditor.Tpo .deps/CEditor.Plo CEditor_moc.cpp:43: error: ?const QMetaObject CEditor::staticMetaObject? is not a static member of ?class CEditor? CEditor_moc.cpp:43: error: variable ?const QMetaObject CEditor::staticMetaObject? has initializer but incomplete type CEditor_moc.cpp:48: error: prototype for ?const QMetaObject* CEditor::metaObject() const? does not match any in class ?CEditor? CEditor.h:62: error: candidate is: virtual QMetaObject* CEditor::metaObject() const CEditor_moc.cpp:48: error: ?const QMetaObject* CEditor::metaObject() const? cannot be overloaded CEditor.h:62: error: with ?virtual QMetaObject* CEditor::metaObject() const? CEditor_moc.cpp: In member function ?const QMetaObject* CEditor::metaObject() const?: CEditor_moc.cpp:50: error: cannot convert ?QMetaObject* (*)()? to ?const QMetaObject*? in return CEditor_moc.cpp: At global scope: CEditor_moc.cpp:53: error: no ?void* CEditor::qt_metacast(const char*)? member function declared in class ?CEditor? CEditor_moc.cpp: In member function ?void* CEditor::qt_metacast(const char*)?: CEditor_moc.cpp:58: error: ?qt_metacast? is not a member of ?QObject? CEditor_moc.cpp: At global scope: CEditor_moc.cpp:61: error: ?int CEditor::qt_metacall? is not a static member of ?class CEditor? CEditor_moc.cpp:61: error: incomplete type ?QMetaObject? used in nested name specifier CEditor_moc.cpp:61: error: expected primary-expression before ?int? CEditor_moc.cpp:61: error: expected primary-expression before ?void? CEditor_moc.cpp:61: error: initializer expression list treated as compound expression CEditor_moc.cpp:62: error: expected ?,? or ?;? before ?{? token mv -f .deps/CPrinter.Tpo .deps/CPrinter.Plo make[5]: *** [CEditor_moc.lo] Fehler 1 mv -f .deps/gdocument.Tpo .deps/gdocument.Plo gview_moc.cpp:51: error: ?const QMetaObject GEditor::staticMetaObject? is not a static member of ?class GEditor? gview_moc.cpp:51: error: variable ?const QMetaObject GEditor::staticMetaObject? has initializer but incomplete type gview_moc.cpp:56: error: prototype for ?const QMetaObject* GEditor::metaObject() const? does not match any in class ?GEditor? gview.h:53: error: candidate is: virtual QMetaObject* GEditor::metaObject() const gview_moc.cpp:56: error: ?const QMetaObject* GEditor::metaObject() const? cannot be overloaded gview.h:53: error: with ?virtual QMetaObject* GEditor::metaObject() const? gview_moc.cpp: In member function ?const QMetaObject* GEditor::metaObject() const?: gview_moc.cpp:58: error: cannot convert ?QMetaObject* (*)()? to ?const QMetaObject*? in return gview_moc.cpp: At global scope: gview_moc.cpp:61: error: no ?void* GEditor::qt_metacast(const char*)? member function declared in class ?GEditor? gview_moc.cpp: In member function ?void* GEditor::qt_metacast(const char*)?: gview_moc.cpp:66: error: ?qt_metacast? is not a member of ?QGridView? gview_moc.cpp: At global scope: gview_moc.cpp:69: error: ?int GEditor::qt_metacall? is not a static member of ?class GEditor? gview_moc.cpp:69: error: incomplete type ?QMetaObject? used in nested name specifier gview_moc.cpp:69: error: expected primary-expression before ?int? gview_moc.cpp:69: error: expected primary-expression before ?void? gview_moc.cpp:69: error: initializer expression list treated as compound expression gview_moc.cpp:70: error: expected ?,? or ?;? before ?{? token make[5]: *** [gview_moc.lo] Fehler 1 mv -f .deps/gview.Tpo .deps/gview.Plo mv -f .deps/CTextEdit.Tpo .deps/CTextEdit.Plo make[5]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src/ext' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/tester/gambastest/trunk' make: *** [all] Fehler 2 tester at ...1924...:~/gambastest/trunk> From d.paleino at ...626... Wed Jun 11 11:45:39 2008 From: d.paleino at ...626... (David Paleino) Date: Wed, 11 Jun 2008 11:45:39 +0200 Subject: [Gambas-user] Error compiling from svn for 3.0 References: <484F98AB.6060102@...221...> Message-ID: <20080611114539.00ec47db@...626...> On Wed, 11 Jun 2008 11:19:39 +0200, Rolf-Werner Eilert wrote: > CEditor_moc.cpp:12:2: error: #error "The header file 'CEditor.h' doesn't include ." > gview_moc.cpp:12:2: error: #error "The header file 'gview.h' doesn't include ." I believe the error is here. Try opening CEditor.h and gview.h and adding, at the top of those files: #include That should fix the problem (but other similar errors might happen as well). My two cents, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From gambas at ...1... Wed Jun 11 11:55:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jun 2008 11:55:38 +0200 Subject: [Gambas-user] Error compiling from svn for 3.0 In-Reply-To: <484F98AB.6060102@...221...> References: <484F98AB.6060102@...221...> Message-ID: <200806111155.38793.gambas@...1...> On mercredi 11 juin 2008, Rolf-Werner Eilert wrote: > Just fyi, Benoit: When I try to compile from svn, I get the following > error (I guess it starts here): > > Making all in gb.qt > make[2]: Entering directory `/home/tester/gambastest/trunk/gb.qt' > make all-recursive > make[3]: Entering directory `/home/tester/gambastest/trunk/gb.qt' > Making all in src > make[4]: Entering directory `/home/tester/gambastest/trunk/gb.qt/src' > Making all in ext > make[5]: Entering directory `/home/tester/gambastest/trunk/gb.qt/src/ext' > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c > -o main.lo main.cpp > /usr/bin//moc -o CLCDNumber_moc.cpp CLCDNumber.h > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CLCDNumber.lo -MD -MP -MF > .deps/CLCDNumber.Tpo -c -o CLCDNumber.lo CLCDNumber.cpp > /usr/bin//moc -o CDial_moc.cpp CDial.h > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial.lo -MD -MP -MF .deps/CDial.Tpo -c > -o CDial.lo CDial.cpp > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT garray.lo -MD -MP -MF .deps/garray.Tpo > -c -o garray.lo garray.cpp > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT gstring.lo -MD -MP -MF > .deps/gstring.Tpo -c -o gstring.lo gstring.cpp > CLCDNumber.h:0: Warning: No relevant classes found. No output generated. > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT gdocument.lo -MD -MP -MF > .deps/gdocument.Tpo -c -o gdocument.lo gdocument.cpp > /usr/bin//moc -o gview_moc.cpp gview.h > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT gview.lo -MD -MP -MF .deps/gview.Tpo -c > -o gview.lo gview.cpp > /usr/bin//moc -o CEditor_moc.cpp CEditor.h > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CEditor.lo -MD -MP -MF > .deps/CEditor.Tpo -c -o CEditor.lo CEditor.cpp > mv -f .deps/gstring.Tpo .deps/gstring.Plo > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c > -o CDraw.lo CDraw.cpp > mv -f .deps/garray.Tpo .deps/garray.Plo > /usr/bin//moc -o CDrawing_moc.cpp CDrawing.h > CDrawing.h:0: Warning: No relevant classes found. No output generated. > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDrawing.lo -MD -MP -MF > .deps/CDrawing.Tpo -c -o CDrawing.lo CDrawing.cpp > mv -f .deps/main.Tpo .deps/main.Plo > /usr/bin//moc -o CPrinter_moc.cpp CPrinter.h > CPrinter.h:0: Warning: No relevant classes found. No output generated. > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CPrinter.lo -MD -MP -MF > .deps/CPrinter.Tpo -c -o CPrinter.lo CPrinter.cpp > mv -f .deps/CDraw.Tpo .deps/CDraw.Plo > /usr/bin//moc -o CTextEdit_moc.cpp CTextEdit.h > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CTextEdit.lo -MD -MP -MF > .deps/CTextEdit.Tpo -c -o CTextEdit.lo CTextEdit.cpp > mv -f .deps/CLCDNumber.Tpo .deps/CLCDNumber.Plo > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CLCDNumber_moc.lo -MD -MP -MF > .deps/CLCDNumber_moc.Tpo -c -o CLCDNumber_moc.lo CLCDNumber_moc.cpp > mv -f .deps/CDrawing.Tpo .deps/CDrawing.Plo > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp > mv -f .deps/CLCDNumber_moc.Tpo .deps/CLCDNumber_moc.Plo > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT gview_moc.lo -MD -MP -MF > .deps/gview_moc.Tpo -c -o gview_moc.lo gview_moc.cpp > CDial_moc.cpp:12:2: error: #error "The header file 'CDial.h' doesn't > include ." > mv -f .deps/CDial.Tpo .deps/CDial.Plo > ../../doltcompile g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED > -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include -I../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CEditor_moc.lo -MD -MP -MF > .deps/CEditor_moc.Tpo -c -o CEditor_moc.lo CEditor_moc.cpp > CEditor_moc.cpp:12:2: error: #error "The header file 'CEditor.h' doesn't > include ." > gview_moc.cpp:12:2: error: #error "The header file 'gview.h' doesn't > include ." > CDial_moc.cpp:39: error: ?const QMetaObject CDial::staticMetaObject? is > not a static member of ?class CDial? > CDial_moc.cpp:39: error: variable ?const QMetaObject > CDial::staticMetaObject? has initializer but incomplete type > CDial_moc.cpp:44: error: prototype for ?const QMetaObject* > CDial::metaObject() const? does not match any in class ?CDial? > CDial.h:51: error: candidate is: virtual QMetaObject* > CDial::metaObject() const > CDial_moc.cpp:44: error: ?const QMetaObject* CDial::metaObject() const? > cannot be overloaded > CDial.h:51: error: with ?virtual QMetaObject* CDial::metaObject() const? > CDial_moc.cpp: In member function ?const QMetaObject* > CDial::metaObject() const?: > CDial_moc.cpp:46: error: cannot convert ?QMetaObject* (*)()? to ?const > QMetaObject*? in return > CDial_moc.cpp: At global scope: > CDial_moc.cpp:49: error: no ?void* CDial::qt_metacast(const char*)? > member function declared in class ?CDial? > CDial_moc.cpp: In member function ?void* CDial::qt_metacast(const char*)?: > CDial_moc.cpp:54: error: ?qt_metacast? is not a member of ?QObject? > CDial_moc.cpp: At global scope: > CDial_moc.cpp:57: error: ?int CDial::qt_metacall? is not a static member > of ?class CDial? > CDial_moc.cpp:57: error: incomplete type ?QMetaObject? used in nested > name specifier > CDial_moc.cpp:57: error: expected primary-expression before ?int? > CDial_moc.cpp:57: error: expected primary-expression before ?void? > CDial_moc.cpp:57: error: initializer expression list treated as compound > expression > CDial_moc.cpp:58: error: expected ?,? or ?;? before ?{? token > make[5]: *** [CDial_moc.lo] Fehler 1 > make[5]: *** Warte auf noch nicht beendete Prozesse... > mv -f .deps/CEditor.Tpo .deps/CEditor.Plo > CEditor_moc.cpp:43: error: ?const QMetaObject CEditor::staticMetaObject? > is not a static member of ?class CEditor? > CEditor_moc.cpp:43: error: variable ?const QMetaObject > CEditor::staticMetaObject? has initializer but incomplete type > CEditor_moc.cpp:48: error: prototype for ?const QMetaObject* > CEditor::metaObject() const? does not match any in class ?CEditor? > CEditor.h:62: error: candidate is: virtual QMetaObject* > CEditor::metaObject() const > CEditor_moc.cpp:48: error: ?const QMetaObject* CEditor::metaObject() > const? cannot be overloaded > CEditor.h:62: error: with ?virtual QMetaObject* CEditor::metaObject() > const? CEditor_moc.cpp: In member function ?const QMetaObject* > CEditor::metaObject() const?: > CEditor_moc.cpp:50: error: cannot convert ?QMetaObject* (*)()? to ?const > QMetaObject*? in return > CEditor_moc.cpp: At global scope: > CEditor_moc.cpp:53: error: no ?void* CEditor::qt_metacast(const char*)? > member function declared in class ?CEditor? > CEditor_moc.cpp: In member function ?void* CEditor::qt_metacast(const > char*)?: > CEditor_moc.cpp:58: error: ?qt_metacast? is not a member of ?QObject? > CEditor_moc.cpp: At global scope: > CEditor_moc.cpp:61: error: ?int CEditor::qt_metacall? is not a static > member of ?class CEditor? > CEditor_moc.cpp:61: error: incomplete type ?QMetaObject? used in nested > name specifier > CEditor_moc.cpp:61: error: expected primary-expression before ?int? > CEditor_moc.cpp:61: error: expected primary-expression before ?void? > CEditor_moc.cpp:61: error: initializer expression list treated as > compound expression > CEditor_moc.cpp:62: error: expected ?,? or ?;? before ?{? token > mv -f .deps/CPrinter.Tpo .deps/CPrinter.Plo > make[5]: *** [CEditor_moc.lo] Fehler 1 > mv -f .deps/gdocument.Tpo .deps/gdocument.Plo > gview_moc.cpp:51: error: ?const QMetaObject GEditor::staticMetaObject? > is not a static member of ?class GEditor? > gview_moc.cpp:51: error: variable ?const QMetaObject > GEditor::staticMetaObject? has initializer but incomplete type > gview_moc.cpp:56: error: prototype for ?const QMetaObject* > GEditor::metaObject() const? does not match any in class ?GEditor? > gview.h:53: error: candidate is: virtual QMetaObject* > GEditor::metaObject() const > gview_moc.cpp:56: error: ?const QMetaObject* GEditor::metaObject() > const? cannot be overloaded > gview.h:53: error: with ?virtual QMetaObject* GEditor::metaObject() const? > gview_moc.cpp: In member function ?const QMetaObject* > GEditor::metaObject() const?: > gview_moc.cpp:58: error: cannot convert ?QMetaObject* (*)()? to ?const > QMetaObject*? in return > gview_moc.cpp: At global scope: > gview_moc.cpp:61: error: no ?void* GEditor::qt_metacast(const char*)? > member function declared in class ?GEditor? > gview_moc.cpp: In member function ?void* GEditor::qt_metacast(const > char*)?: gview_moc.cpp:66: error: ?qt_metacast? is not a member of > ?QGridView? gview_moc.cpp: At global scope: > gview_moc.cpp:69: error: ?int GEditor::qt_metacall? is not a static > member of ?class GEditor? > gview_moc.cpp:69: error: incomplete type ?QMetaObject? used in nested > name specifier > gview_moc.cpp:69: error: expected primary-expression before ?int? > gview_moc.cpp:69: error: expected primary-expression before ?void? > gview_moc.cpp:69: error: initializer expression list treated as compound > expression > gview_moc.cpp:70: error: expected ?,? or ?;? before ?{? token > make[5]: *** [gview_moc.lo] Fehler 1 > mv -f .deps/gview.Tpo .deps/gview.Plo > mv -f .deps/CTextEdit.Tpo .deps/CTextEdit.Plo > make[5]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src/ext' > make[4]: *** [all-recursive] Fehler 1 > make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/tester/gambastest/trunk' > make: *** [all] Fehler 2 > tester at ...1924...:~/gambastest/trunk> > You did something wrong I think: try to do a "make clean" before recompiling, or a "./reconf" if needed. Regards, -- Benoit Minisini From gambas at ...1... Wed Jun 11 11:56:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jun 2008 11:56:45 +0200 Subject: [Gambas-user] Adding a form to a workspace, grideditor In-Reply-To: <484F0D6F.3040405@...1740...> References: <484F0D6F.3040405@...1740...> Message-ID: <200806111156.45514.gambas@...1...> On mercredi 11 juin 2008, Ron wrote: > Is this valid? > > --- > PUBLIC SUB tbnDevices_Click() > > DIM doc AS NEW FDevices > > wrkMain.Show > wrkMain.Add(doc) > > END > --- > FDevices is a Form , like the test form from GridEditor > wrkMain is my Workspace > > The problem is, FDevices contains the GridEditor demo code, and it runs > ok if I open it from a menu item with > FDevices.Show > > But if I open it by adding it to my workspace, it errors with: > "Can't find a connection called 'devices'" > > it refers to the mysql connection Grideditor uses, my connection is > called 'devices' and like I said it runs when I open it with .Show. > > All the code is in Form_Open() > Am I doing something not allowed? > > Gambas 2.6 svn > > Regards, > Ron the 2nd > I think the problem is in the GridEditor demo code, but I can't say more. -- Benoit Minisini From ronstk at ...239... Wed Jun 11 11:58:58 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 11 Jun 2008 11:58:58 +0200 Subject: [Gambas-user] create code option in form designer In-Reply-To: <484EFAC0.9040709@...1740...> References: <484EB4D6.3060005@...1740...> <200806102233.52049.gambas@...1...> <484EFAC0.9040709@...1740...> Message-ID: <200806111158.58992.ronstk@...239...> On Wednesday 11 June 2008, Ron wrote: > Benoit Minisini schreef: > > On mardi 10 juin 2008, Ron wrote: > > > >> Question. > >> > >> Is there a way to generate the code for an object you designed in the gui. > >> If not wouldn't it be a nice feature? > >> > >> Let say you created a window and dragged a frame in it, and set the size > >> etc etc, would be nice if you could see/save the lines of code you would > >> need to create the objects without using the gui. > >> > >> As for a learning experience, and if you want to let your code generate > >> similar content at runtime. > >> > >> I know you can see the dimensions etc already in the form created if you > >> peek into the file itself. > >> > >> Regards, > >> Ron. > >> > >> > > > > The code is generated entirely from the contents of the *.form file. It is > > just the instanciation of a control inside its container followed by a method > > call (Move or MoveScaled) and property assignments. > > > > The only trick is when you put a "virtual" control inside a form. There is a > > mark that tells the compiler that this is not a true control, and that it > > must not pass the container as argument to the control constructor. > > > > In other words, I don't find that feature really useful, but if you can really > > persuade me to it, I will have to modify the compiler so that it can give you > > the generated code from a form file. :-) > > > > Maybe we can vote for it, if i'm the only one who want it's, you win. ;-) > And for the learning part it's a matter of time, I have to look in the > docs less and less... ;) > > Regards, > Ron the 2nd > My point of interest is to be able to construct the form under programs control. Special to have a main form where a bunch of controls are involved, placed in series of i.e.text boxes where the amount of how many changes during runtime and depends on external parameters unknown at design time. The minor part of creating the form is the time involved for to build the form. A pro is to have the exact code to add controls on the form the right way the compiler undrstands and prevent mistakes. Ron the 2nd is not the only one however I do understand we belong not to the general major group. I vote for 'please add=yes' and ask if you will spend some time on it. Regards, Ron the 1st (Are all those Ron's ... and Dutch. What accident happens here?) P.S. Ik vind het wel grappig Ron de zoveelste :) From smiefert at ...784... Wed Jun 11 12:56:20 2008 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 11 Jun 2008 12:56:20 +0200 Subject: [Gambas-user] Execute external program? Message-ID: <8D42310D957CFB46AA11921A711D4D16B66AA33F@...1899...> Hello, i want to start ie. Firefox or better , the actual system webbrowser and load a page. How can I do this in gambas? From gambas at ...1... Wed Jun 11 13:06:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jun 2008 13:06:58 +0200 Subject: [Gambas-user] Execute external program? In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B66AA33F@...1899...> References: <8D42310D957CFB46AA11921A711D4D16B66AA33F@...1899...> Message-ID: <200806111306.58205.gambas@...1...> On mercredi 11 juin 2008, Stefan Miefert wrote: > Hello, > > i want to start ie. Firefox or better , the actual system webbrowser and > load a page. How can I do this in gambas? > Use the gb.desktop component and its method Desktop.Open() with the URL as argument. Regards, -- Benoit Minisini From amvargas at ...1922... Tue Jun 10 17:45:01 2008 From: amvargas at ...1922... (=?iso-8859-1?Q?Adrian_Mart=EDnez_Vargas?=) Date: Tue, 10 Jun 2008 11:45:01 -0400 Subject: [Gambas-user] haw to call the "C or C++" function suma(a, b) from gambas? Message-ID: <004d01c8cb10$f1cf0250$21141c0a@...1923...> Hello mail list If I have a shared library written in C++ that look like this: // suma.cc: extern "C" { float suma (float a, float b) { return a+b; } } // extern "C" haw to call the function suma(a,b) from gambas? my best Dr. Adrian Mart?nez Vargas Revista Miner?a y Geolog?a (Editor Principal) ISMM, Las Coloradas, s/n Moa, Holgu?n, Cuba CP. 83329 http://www.ismm.edu.cu/revistamg/index.htm From gambas at ...1... Wed Jun 11 23:44:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jun 2008 23:44:02 +0200 Subject: [Gambas-user] haw to call the "C or C++" function suma(a, b) from gambas? In-Reply-To: <004d01c8cb10$f1cf0250$21141c0a@...1923...> References: <004d01c8cb10$f1cf0250$21141c0a@...1923...> Message-ID: <200806112344.02707.gambas@...1...> On mardi 10 juin 2008, Adrian Mart?nez Vargas wrote: > Hello mail list > > If I have a shared library written in C++ that look like this: > > > // suma.cc: > extern "C" > { > float suma (float a, float b) > { > return a+b; > } > } // extern "C" > > haw to call the function suma(a,b) from gambas? > > > > my best > Dr. Adrian Mart?nez Vargas > Revista Miner?a y Geolog?a (Editor Principal) > ISMM, Las Coloradas, s/n > Moa, Holgu?n, > Cuba > CP. 83329 > http://www.ismm.edu.cu/revistamg/index.htm > > EXTERN suma(A AS Single, B AS Single) AS Single IN "mylibrary.so:X" ' where X is the version number of the library. PRINT suma(1.0, 2.0) See the wiki documentation for more details. Regards, -- Benoit Minisini From o.s.p at ...69... Thu Jun 12 16:22:41 2008 From: o.s.p at ...69... (o.s.p) Date: Thu, 12 Jun 2008 14:22:41 +0000 Subject: [Gambas-user] Feature Request: loading gz projects Message-ID: <48513131.7040308@...69...> hallo this FR borns from the fact that i'm using a usb memory (fat16) to strore a my little app that i develop on two machines, a pc and a laptop. i've strored the project on this as .gz. if the ide would be able to open compressed projects i can use it directly without the need of decompression or if stored on fat as plain text, loosing attributes... bye and thanks! From gambas at ...1... Thu Jun 12 16:28:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jun 2008 16:28:20 +0200 Subject: [Gambas-user] Feature Request: loading gz projects In-Reply-To: <48513131.7040308@...69...> References: <48513131.7040308@...69...> Message-ID: <200806121628.20432.gambas@...1...> On jeudi 12 juin 2008, o.s.p wrote: > hallo > this FR borns from the fact that i'm using a usb memory (fat16) to > strore a my little app that i develop on two machines, > a pc and a laptop. > i've strored the project on this as .gz. > if the ide would be able to open compressed projects i can use it > directly without the need of decompression or if stored on fat as plain > text, loosing attributes... > bye and thanks! > It would be very difficult to modify the sources of all gambas programs and components to support that. But I think that you can use 'fuse' to mount your .gz file as a directory. If someone that knows 'fuse' well could confirm... -- Benoit Minisini From o.s.p at ...69... Thu Jun 12 16:36:18 2008 From: o.s.p at ...69... (o.s.p) Date: Thu, 12 Jun 2008 14:36:18 +0000 Subject: [Gambas-user] Feature Request: loading gz projects In-Reply-To: <200806121628.20432.gambas@...1...> References: <48513131.7040308@...69...> <200806121628.20432.gambas@...1...> Message-ID: <48513462.2020108@...69...> Benoit Minisini ha scritto: > On jeudi 12 juin 2008, o.s.p wrote: > >> hallo >> this FR borns from the fact that i'm using a usb memory (fat16) to >> strore a my little app that i develop on two machines, >> a pc and a laptop. >> i've strored the project on this as .gz. >> if the ide would be able to open compressed projects i can use it >> directly without the need of decompression or if stored on fat as plain >> text, loosing attributes... >> bye and thanks! >> >> > > It would be very difficult to modify the sources of all gambas programs and > components to support that. > > But I think that you can use 'fuse' to mount your .gz file as a directory. If > someone that knows 'fuse' well could confirm... > too difficult... the ide is able to create a compressed source archive; it would be nice if it would can automatically decompress the sources on a linux tmp directory, use it and save everything back to the compressed archive. i hope to have been more clear! salud. From m0e.lnx at ...626... Thu Jun 12 16:41:38 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 12 Jun 2008 09:41:38 -0500 Subject: [Gambas-user] Feature Request: loading gz projects In-Reply-To: <48513462.2020108@...69...> References: <48513131.7040308@...69...> <200806121628.20432.gambas@...1...> <48513462.2020108@...69...> Message-ID: <1f1e8c1b0806120741t6a434071u8b4c7136b87b8b78@...627...> I for one think this would be too much... If you're writing code, you *should* be able to compress / decompress archives IMO Just my 2 cents On Thu, Jun 12, 2008 at 9:36 AM, o.s.p wrote: > Benoit Minisini ha scritto: >> On jeudi 12 juin 2008, o.s.p wrote: >> >>> hallo >>> this FR borns from the fact that i'm using a usb memory (fat16) to >>> strore a my little app that i develop on two machines, >>> a pc and a laptop. >>> i've strored the project on this as .gz. >>> if the ide would be able to open compressed projects i can use it >>> directly without the need of decompression or if stored on fat as plain >>> text, loosing attributes... >>> bye and thanks! >>> >>> >> >> It would be very difficult to modify the sources of all gambas programs and >> components to support that. >> >> But I think that you can use 'fuse' to mount your .gz file as a directory. If >> someone that knows 'fuse' well could confirm... >> > too difficult... > the ide is able to create a compressed source archive; > it would be nice if it would can automatically decompress the sources on > a linux tmp directory, use it and save everything back to the compressed > archive. > i hope to have been more clear! > salud. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jun 12 16:41:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jun 2008 16:41:30 +0200 Subject: [Gambas-user] Feature Request: loading gz projects In-Reply-To: <48513462.2020108@...69...> References: <48513131.7040308@...69...> <200806121628.20432.gambas@...1...> <48513462.2020108@...69...> Message-ID: <200806121641.30705.gambas@...1...> On jeudi 12 juin 2008, o.s.p wrote: > Benoit Minisini ha scritto: > > On jeudi 12 juin 2008, o.s.p wrote: > >> hallo > >> this FR borns from the fact that i'm using a usb memory (fat16) to > >> strore a my little app that i develop on two machines, > >> a pc and a laptop. > >> i've strored the project on this as .gz. > >> if the ide would be able to open compressed projects i can use it > >> directly without the need of decompression or if stored on fat as plain > >> text, loosing attributes... > >> bye and thanks! > > > > It would be very difficult to modify the sources of all gambas programs > > and components to support that. > > > > But I think that you can use 'fuse' to mount your .gz file as a > > directory. If someone that knows 'fuse' well could confirm... > > too difficult... > the ide is able to create a compressed source archive; > it would be nice if it would can automatically decompress the sources on > a linux tmp directory, use it and save everything back to the compressed > archive. > i hope to have been more clear! > salud. > I didn't see the problem like that. :-) But the project would be able to be compressed back to its original emplacement only when the project is closed or when quitting the IDE. If the IDE crashes, or is aborted by other means, then you might lose your changes if you are not aware. I put your suggestion in the TODO file... Regards, -- Benoit Minisini From o.s.p at ...69... Thu Jun 12 16:53:39 2008 From: o.s.p at ...69... (o.s.p) Date: Thu, 12 Jun 2008 14:53:39 +0000 Subject: [Gambas-user] Feature Request: loading gz projects In-Reply-To: <200806121641.30705.gambas@...1...> References: <48513131.7040308@...69...> <200806121628.20432.gambas@...1...> <48513462.2020108@...69...> <200806121641.30705.gambas@...1...> Message-ID: <48513873.5070704@...69...> Benoit Minisini ha scritto: > On jeudi 12 juin 2008, o.s.p wrote: > >> Benoit Minisini ha scritto: >> >>> On jeudi 12 juin 2008, o.s.p wrote: >>> >>>> hallo >>>> this FR borns from the fact that i'm using a usb memory (fat16) to >>>> strore a my little app that i develop on two machines, >>>> a pc and a laptop. >>>> i've strored the project on this as .gz. >>>> if the ide would be able to open compressed projects i can use it >>>> directly without the need of decompression or if stored on fat as plain >>>> text, loosing attributes... >>>> bye and thanks! >>>> >>> It would be very difficult to modify the sources of all gambas programs >>> and components to support that. >>> >>> But I think that you can use 'fuse' to mount your .gz file as a >>> directory. If someone that knows 'fuse' well could confirm... >>> >> too difficult... >> the ide is able to create a compressed source archive; >> it would be nice if it would can automatically decompress the sources on >> a linux tmp directory, use it and save everything back to the compressed >> archive. >> i hope to have been more clear! >> salud. >> >> > > I didn't see the problem like that. :-) > :) > But the project would be able to be compressed back to its original > emplacement only when the project is closed or when quitting the IDE. of course! or when i hit the save button/menu.... > If the > IDE crashes, or is aborted by other means, then you might lose your changes > if you are not aware. > as usual.... what i do now: on pc: write some code save export to compressed source at night at home on laptop: decompress on my linux disk write some bugs :) save export compressed (when i remember to do it) end beautiful ide why don't you to that for me? > I put your suggestion in the TODO file... > > Regards, > thank you! From charles at ...1784... Fri Jun 13 09:20:04 2008 From: charles at ...1784... (charlesg) Date: Fri, 13 Jun 2008 00:20:04 -0700 (PDT) Subject: [Gambas-user] Introductory Gambas 2.5 tutorial on Ubuntu Hardy Message-ID: <17816619.post@...1379...> I have made a short tutorial aimed at users with a little VB experience who are new to Linux (i.e like me :confused:)!. http://www.kalaharix.wordpress.com http://www.kalaharix.wordpress.com -- View this message in context: http://www.nabble.com/Introductory-Gambas-2.5-tutorial-on-Ubuntu-Hardy-tp17816619p17816619.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Fri Jun 13 10:44:19 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 13 Jun 2008 10:44:19 +0200 Subject: [Gambas-user] ComboBox with autocomplete? Message-ID: <48523363.6060104@...221...> Does the ComboBox have an autocomplete function (partially taking the next best fitting item from the list and proposing it)? If yes, how can I activate it? Thanks Rolf From gambas at ...1... Fri Jun 13 12:36:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jun 2008 12:36:39 +0200 Subject: [Gambas-user] Introductory Gambas 2.5 tutorial on Ubuntu Hardy In-Reply-To: <17816619.post@...1379...> References: <17816619.post@...1379...> Message-ID: <200806131236.39367.gambas@...1...> On vendredi 13 juin 2008, charlesg wrote: > I have made a short tutorial aimed at users with a little VB experience who > are new to Linux (i.e like me :confused:)!. > http://www.kalaharix.wordpress.com http://www.kalaharix.wordpress.com Nice tutorial! -- Benoit Minisini From warren at ...1582... Fri Jun 13 15:52:44 2008 From: warren at ...1582... (Bob Warren) Date: Fri, 13 Jun 2008 10:52:44 -0300 Subject: [Gambas-user] Introductory Gambas 2.5 tutorial on Ubuntu, Hardy Message-ID: <48527BAC.4050004@...1582...> Charles wrote: >I have made a short tutorial aimed at users with a little VB experience who are new to Linux (i.e like me :confused:)!. http://www.kalaharix.wordpress.com ---------------------------------------------------- And I thought I was alone! Many thanks for that, Charles. Best regards, Bob Warren From gambas at ...1... Fri Jun 13 18:59:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jun 2008 18:59:43 +0200 Subject: [Gambas-user] Release of Gambas 2.7 Message-ID: <200806131859.43772.gambas@...1...> Hi, This new release of Gambas is mainly a bugfix release: * Clicking on a virtual property in the property sheet does not crash anymore when the property help is displayed. * The automatic completion can deal with multiple local variable declarations on the same line. * The stack backtrace list width is saved correctly. * Gambas projects can be safely compiled as root. * Core dumps are ignored when making an executable. * Draw.Circle() has been fixed. * Focus management, Embedder, and the Window.Reparent() method have been fixed in gb.gtk. * There is a new example that draws barcodes. * Japanese, Russian and Swedish translations were updated. Here is the full changelog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Clicking on a virtual property in the property sheet does not crash anymore when the property help is displayed. * BUG: The automatic completion can deal with multiple local variable declarations on the same line now. * BUG: The stack backtrace list width is saved correctly now. * BUG: Do not display the current opened project in the list of recently opened projects. * NEW: Add a popup menu to the console window. * NEW: Japanese translation updated. * NEW: Swedish translation updated. * NEW: Russian translation updated. [DATABASE MANAGER] * NEW: Russian translation updated. [EXAMPLES] * BUG: Fix the DataReportExample example. * NEW: New Barcode example made by Charles Guerin and modified by me. [HELP] * BUG: Makefile are not installed anymore. [INTERPRETER] * BUG: Fix a bug in DateAdd() that made this function corrupt the next date to string conversion, which then lead to other bad weird things. [COMPILER] * BUG: The owner and group of all files generated by the compiler ('.startup', '.info', '.list', object files) are now set to the owner and group of the '.project' file. This way, any project can be safely compiled as root, without locking it for other users. [ARCHIVER] * NEW: Ignore core dump files when making an executable. [GB.DRAW] * BUG: Fix Draw.Circle center that was shifted one pixel to the top left. [GB.FORM] * BUG: Setting the Root property of the DirView control sets the Current property to the same value. * NEW: Russian translation updated. [GB.GTK] * BUG: The focus now follows the Z-order, as in gb.qt. * BUG: Fix the XEMBED protocol support. * BUG: Window.Reparent() now works correctly when embedding or unembedding a top-level window. [GB.NET.SMTP] * BUG: Try to use the fully-qualified domain name when sending the EHLO command to the SMTP server. That actually works only if the system domain name has been set to the DNS domain name. * NEW: Do not use MIME parts when it is useless. [GB.PCRE] * BUG: Fix crashes due to bad uses of interpreter API. [GB.QT] * BUG: Fix the XEMBED protocol support. * BUG: Adding an item to a ComboBox with a bad index should not print any warning message anymore. * BUG: Fix the drawing of the frame of cached DrawingArea controls. * NEW: XEMBED support was upgraded to the 1.3 version of QtXEmbed classes. * NEW: Control.Font now always returned the same Font object, as in gb.gtk. [GB.QTE] * BUG: Compilation works again. [GB.XML] * BUG: XMLDocument.Open() now can open a file located inside the project. ------------------------------------------------------------------------------- Regards, -- Benoit Minisini From m0e.lnx at ...626... Fri Jun 13 19:24:37 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 13 Jun 2008 12:24:37 -0500 Subject: [Gambas-user] Release of Gambas 2.7 In-Reply-To: <200806131859.43772.gambas@...1...> References: <200806131859.43772.gambas@...1...> Message-ID: <1f1e8c1b0806131024u9607b1p19b2ac1545f3e225@...627...> Sweeeet! ;) On Fri, Jun 13, 2008 at 11:59 AM, Benoit Minisini wrote: > Hi, > > This new release of Gambas is mainly a bugfix release: > > * Clicking on a virtual property in the property sheet does not crash anymore > when the property help is displayed. > > * The automatic completion can deal with multiple local variable declarations > on the same line. > > * The stack backtrace list width is saved correctly. > > * Gambas projects can be safely compiled as root. > > * Core dumps are ignored when making an executable. > > * Draw.Circle() has been fixed. > > * Focus management, Embedder, and the Window.Reparent() method have been fixed > in gb.gtk. > > * There is a new example that draws barcodes. > > * Japanese, Russian and Swedish translations were updated. > > Here is the full changelog: > > ------------------------------------------------------------------------------- > > [DEVELOPMENT ENVIRONMENT] > * BUG: Clicking on a virtual property in the property sheet does not crash > anymore when the property help is displayed. > * BUG: The automatic completion can deal with multiple local variable > declarations on the same line now. > * BUG: The stack backtrace list width is saved correctly now. > * BUG: Do not display the current opened project in the list of recently > opened projects. > * NEW: Add a popup menu to the console window. > * NEW: Japanese translation updated. > * NEW: Swedish translation updated. > * NEW: Russian translation updated. > > [DATABASE MANAGER] > * NEW: Russian translation updated. > > [EXAMPLES] > * BUG: Fix the DataReportExample example. > * NEW: New Barcode example made by Charles Guerin and modified by me. > > [HELP] > * BUG: Makefile are not installed anymore. > > [INTERPRETER] > * BUG: Fix a bug in DateAdd() that made this function corrupt the next > date to string conversion, which then lead to other bad weird things. > > [COMPILER] > * BUG: The owner and group of all files generated by the compiler > ('.startup', '.info', '.list', object files) are now set to the owner and > group of the '.project' file. This way, any project can be safely > compiled as root, without locking it for other users. > > [ARCHIVER] > * NEW: Ignore core dump files when making an executable. > > [GB.DRAW] > * BUG: Fix Draw.Circle center that was shifted one pixel to the top left. > > [GB.FORM] > * BUG: Setting the Root property of the DirView control sets the Current > property to the same value. > * NEW: Russian translation updated. > > [GB.GTK] > * BUG: The focus now follows the Z-order, as in gb.qt. > * BUG: Fix the XEMBED protocol support. > * BUG: Window.Reparent() now works correctly when embedding or unembedding > a top-level window. > > [GB.NET.SMTP] > * BUG: Try to use the fully-qualified domain name when sending the EHLO > command to the SMTP server. That actually works only if the system domain > name has been set to the DNS domain name. > * NEW: Do not use MIME parts when it is useless. > > [GB.PCRE] > * BUG: Fix crashes due to bad uses of interpreter API. > > [GB.QT] > * BUG: Fix the XEMBED protocol support. > * BUG: Adding an item to a ComboBox with a bad index should not print any > warning message anymore. > * BUG: Fix the drawing of the frame of cached DrawingArea controls. > * NEW: XEMBED support was upgraded to the 1.3 version of QtXEmbed classes. > * NEW: Control.Font now always returned the same Font object, as in gb.gtk. > > [GB.QTE] > * BUG: Compilation works again. > > [GB.XML] > * BUG: XMLDocument.Open() now can open a file located inside the project. > > ------------------------------------------------------------------------------- > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 13 21:52:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jun 2008 21:52:09 +0200 Subject: [Gambas-user] FTPClient In-Reply-To: <200806091902.08035.jeffreyjohnson@...1747...> References: <200806091902.08035.jeffreyjohnson@...1747...> Message-ID: <200806132152.09254.gambas@...1...> On mardi 10 juin 2008, Jeff Johnson wrote: > Does anyone know how to use this control? I am able to get it to login in, > but putting a file is not working. Also, how am I to to a remote change > directory. Any advice would be welcome. > Without any news from Daniel Campos, I looked inside the gb.net.curl source code: 1) I fixed a bug that may prevent putting a file from working. Can you try to use the latest /branches/2.0 version from the svn repository (revision 1413)? 2) Apparently, there is no current working directory. It seems that you have to always specify an absolute path. Regards, -- Benoit Minisini From amvargas at ...1922... Sat Jun 14 01:23:55 2008 From: amvargas at ...1922... (=?iso-8859-1?Q?Adrian_Mart=EDnez_Vargas?=) Date: Fri, 13 Jun 2008 19:23:55 -0400 Subject: [Gambas-user] haw to call the "C or C++" function suma(a, b) from gambas? References: <004d01c8cb10$f1cf0250$21141c0a@...1923...> <200806112344.02707.gambas@...1...> Message-ID: <009b01c8cdac$8e2a3960$21141c0a@...1923...> It really work very nice (better than visual basic), now I can do math in C++ static classes and GUIs with Gambas. The only that y see is missing is that Gambas be cross plataform (widows +linux +Unix, etc.) MY BEST TO YOW Benoit Adrian ----- Original Message ----- From: "Benoit Minisini" To: "Adrian Mart?nez Vargas" ; "mailing list for gambas users" Sent: Wednesday, June 11, 2008 5:44 PM Subject: Re: [Gambas-user] haw to call the "C or C++" function suma(a, b) from gambas? On mardi 10 juin 2008, Adrian Mart?nez Vargas wrote: > Hello mail list > > If I have a shared library written in C++ that look like this: > > > // suma.cc: > extern "C" > { > float suma (float a, float b) > { > return a+b; > } > } // extern "C" > > haw to call the function suma(a,b) from gambas? > > > > my best > Dr. Adrian Mart?nez Vargas > Revista Miner?a y Geolog?a (Editor Principal) > ISMM, Las Coloradas, s/n > Moa, Holgu?n, > Cuba > CP. 83329 > http://www.ismm.edu.cu/revistamg/index.htm > > EXTERN suma(A AS Single, B AS Single) AS Single IN "mylibrary.so:X" ' where X is the version number of the library. PRINT suma(1.0, 2.0) See the wiki documentation for more details. Regards, -- Benoit Minisini From rterry at ...1822... Fri Jun 13 00:53:56 2008 From: rterry at ...1822... (richard terry) Date: Fri, 13 Jun 2008 08:53:56 +1000 Subject: [Gambas-user] Ctrl Z (Und) not working consistantly Message-ID: <200806130853.56965.rterry@...1822...> For many of the development versions now, Ctrl Z dosn't consistently work. I'm using version 1409, but it has been present for a long time. What stops it are some funny editor behaviours with things like automatically putting in quote pairs. One can end up with "" "" and back spacing over the second "" dosn't work, so one has to hightlight them and hit delete. When doing a Ctrl Z sequentially to revert to previous code lines (which I find I do often if I've stuffed something up-), when the editor gets to the point where the odd syntax behaviour occurred (eg the """ "") then it will. go no futher and 'forgets' the Ctrl Z stack of changes. Hope that is not too unclear, but I'm certain anyone using the editor alot will have noticed this. Regards Richard From gambas at ...1... Sat Jun 14 12:48:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jun 2008 12:48:45 +0200 Subject: [Gambas-user] Ctrl Z (Und) not working consistantly In-Reply-To: <200806130853.56965.rterry@...1822...> References: <200806130853.56965.rterry@...1822...> Message-ID: <200806141248.45570.gambas@...1...> On vendredi 13 juin 2008, richard terry wrote: > For many of the development versions now, Ctrl Z dosn't consistently work. > > I'm using version 1409, but it has been present for a long time. > > What stops it are some funny editor behaviours with things like > automatically putting in quote pairs. One can end up with "" "" and back > spacing over the second "" dosn't work, so one has to hightlight them and > hit delete. > > When doing a Ctrl Z sequentially to revert to previous code lines (which I > find I do often if I've stuffed something up-), when the editor gets to the > point where the odd syntax behaviour occurred (eg the """ "") then it > will. go no futher and 'forgets' the Ctrl Z stack of changes. > > Hope that is not too unclear, but I'm certain anyone using the editor alot > will have noticed this. > > Regards > > Richard > I know! There is a bad interaction between undo/redo and code rewrite that I was not able to fix. :-( -- Benoit Minisini From simonart.dominique at ...11... Mon Jun 16 01:05:42 2008 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 16 Jun 2008 01:05:42 +0200 Subject: [Gambas-user] about compilation of Gambas Message-ID: <4855A046.2010102@...11...> Hi everybody, I'm not familiar with Linux, know nothing about svn and use OpenSuse 10.3. I actually use Gambas2 V2.0 and want to uptadate to v2.7 from trunk, I followed the guide found in the online documentation (by the way, the name of the repository is not correct in the doc but I managed to retrieve an old message from this list with the right name) I think the downloading was correct and I get a folder 'gambas' with 3 sub-folders: 'branches', 'tags' and 'trunk'. Here is my first question : 1) The Gambas folder is quite big : 1.4 Go, 289139 files and 72558 subfolders. Is this a normal situation? With the dependancies, I did not found : mysql-devel, mysql-shared, firebird. Next, I started ./reconf-all and ./configure -C (some minor options were discarded here, but nothing important for me) finally, I started make and it ended with the following messages (see the joined text file) so I did not start the 'make install' process) 2) What is wrong here? Thanks in advance, regards Dominique Simonart -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Gambas2Output.txt URL: From eilert-sprachen at ...221... Mon Jun 16 12:13:26 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 16 Jun 2008 12:13:26 +0200 Subject: [Gambas-user] Release of Gambas 2.7 In-Reply-To: <200806131859.43772.gambas@...1...> References: <200806131859.43772.gambas@...1...> Message-ID: <48563CC6.1070601@...221...> Benoit Minisini schrieb: > Hi, > > This new release of Gambas is mainly a bugfix release: > Thank you Benoit, compiled and runs great here. One thing I just came about is that when you change the name of a control, the name in the displayed version doesn't change at once. This can be confusing sometimes. Hope you know what I mean... Regards Rolf From david_villalobos_c at ...43... Mon Jun 16 14:26:54 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 16 Jun 2008 05:26:54 -0700 (PDT) Subject: [Gambas-user] Future support for Gambas Message-ID: <466162.90140.qm@...1658...> Hi Benoit & All, I am very happy because next Tuesday I will start teaching Gambas in a University (to some teacher and IT professionals), last Saturday I went there to prepare everything. Of course they will pay for it, and of course I have planned to make you a donation ;-) just let's wait that they pay. But one of the things they want to do is try to make all their systems in Gambas, and they made a very interesting question: What about Gambas in 5, or 10, or 15 years? Will it still exist? Or Benoit and his team will say: Let's stop working in Gambas? The main question is, will Gambas have support in the future? I wrote this mail because I'm very happy that in my third world country (Costa Rica) we (and I :-D) are starting in Linux and teach Linux to others, so I want to share it with all of you. Benoit, please let me know your comments Best regards David From gambas at ...1... Mon Jun 16 14:44:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 14:44:57 +0200 Subject: [Gambas-user] Release of Gambas 2.7 In-Reply-To: <48563CC6.1070601@...221...> References: <200806131859.43772.gambas@...1...> <48563CC6.1070601@...221...> Message-ID: <200806161444.57966.gambas@...1...> On lundi 16 juin 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > Hi, > > > > This new release of Gambas is mainly a bugfix release: > > Thank you Benoit, compiled and runs great here. > > One thing I just came about is that when you change the name of a > control, the name in the displayed version doesn't change at once. This > can be confusing sometimes. > > Hope you know what I mean... > > > Regards > > Rolf > Yes. But this is not really fully a bug: for example, TextBox and TextArea Text property is just initialized with the name of the control. When this name change, the property keep its value (because you can change it before the name change). This is not necessarily the case for other controls. I admit this is a bit confusing... :-) -- Benoit Minisini From eilert-sprachen at ...221... Mon Jun 16 15:05:12 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 16 Jun 2008 15:05:12 +0200 Subject: [Gambas-user] Release of Gambas 2.7 In-Reply-To: <200806161444.57966.gambas@...1...> References: <200806131859.43772.gambas@...1...> <48563CC6.1070601@...221...> <200806161444.57966.gambas@...1...> Message-ID: <48566508.8070505@...221...> Benoit Minisini schrieb: > On lundi 16 juin 2008, Rolf-Werner Eilert wrote: >> Benoit Minisini schrieb: >>> Hi, >>> >>> This new release of Gambas is mainly a bugfix release: >> Thank you Benoit, compiled and runs great here. >> >> One thing I just came about is that when you change the name of a >> control, the name in the displayed version doesn't change at once. This >> can be confusing sometimes. >> >> Hope you know what I mean... >> >> >> Regards >> >> Rolf >> > > Yes. But this is not really fully a bug: for example, TextBox and TextArea > Text property is just initialized with the name of the control. When this > name change, the property keep its value (because you can change it before > the name change). This is not necessarily the case for other controls. > > I admit this is a bit confusing... :-) > Ok, that's true. This morning, I continued to create some dialogs for a project of mine, and after spreading ComboBoxes, ValueBoxes, TextBoxes, SpinBoxes and Buttons all over the place :-) I began changing their names to something more useful than SpinBox1 or ComboBox3. Of course, ComboBoxes and TextBoxes didn't change their contents, but ValueBoxes and SpinBoxes should have - at least they did, after I closed the project and re-openened it. Regards Rolf From gambas at ...1... Mon Jun 16 15:11:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 15:11:30 +0200 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <4855A046.2010102@...11...> References: <4855A046.2010102@...11...> Message-ID: <200806161511.30970.gambas@...1...> On lundi 16 juin 2008, Dominique SIMONART wrote: > Hi everybody, > > I'm not familiar with Linux, know nothing about svn and use OpenSuse 10.3. > I actually use Gambas2 V2.0 and want to uptadate to v2.7 from trunk, I > followed the guide found in the online documentation > (by the way, the name of the repository is not correct in the doc but I > managed to retrieve an old message from this list with the right name) The svn path indicated in the download page of web site are the correct one. But for downloading a specific release, you don't have to read the subversion repository. I generate tar.gz archives that you can download from sourceforge. Links are on the download page too. > I think the downloading was correct and I get a folder 'gambas' with 3 > sub-folders: 'branches', 'tags' and 'trunk'. > Here is my first question : > 1) The Gambas folder is quite big : 1.4 Go, 289139 files and 72558 > subfolders. Is this a normal situation? LOL: you downloaded EVERYTHING! The current development version (3.x), the stable version (2.x), all releases (2.0, 2.1, 2.2... 2.7), all specific branches (temporary modifications made by specific developers). Thanks to you, I know now how much room it takes. :-) The organization is the following: '/branches/2.0' is the next 2.x version. '/trunk' is the current development tree (next 3.0 version) '/tags' contains each release of Gambas. > > With the dependancies, I did not found : mysql-devel, mysql-shared, > firebird. > Next, I started ./reconf-all and ./configure -C (some minor options > were discarded here, but nothing important for me) > finally, I started make and it ended with the following messages (see > the joined text file) so I did not start the 'make install' process) > 2) What is wrong here? Hmm. Don't know... Which exact versions of qt are installed on your system? -- Benoit Minisini From dcamposf at ...626... Mon Jun 16 15:18:51 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 16 Jun 2008 15:18:51 +0200 Subject: [Gambas-user] Future support for Gambas In-Reply-To: <466162.90140.qm@...1658...> References: <466162.90140.qm@...1658...> Message-ID: <7259b5ae0806160618n121db4b2x44b2faca69ab111e@...627...> 10 years? Anybody using a PC in 10 years? May be 5 yes... 2008/6/16 David Villalobos Cambronero : > Hi Benoit & All, > > I am very happy because next Tuesday I will start teaching Gambas in a > University (to some teacher and IT professionals), last Saturday I went > there to prepare everything. > > Of course they will pay for it, and of course I have planned to make you a > donation ;-) just let's wait that they pay. > > But one of the things they want to do is try to make all their systems in > Gambas, and they made a very interesting question: > > What about Gambas in 5, or 10, or 15 years? Will it still exist? Or Benoit > and his team will say: Let's stop working in Gambas? The main question is, > will Gambas have support in the future? > > I wrote this mail because I'm very happy that in my third world country > (Costa Rica) we (and I :-D) are starting in Linux and teach Linux to others, > so I want to share it with all of you. > > Benoit, please let me know your comments > > Best regards > > David > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 16 15:31:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 15:31:03 +0200 Subject: [Gambas-user] Future support for Gambas In-Reply-To: <466162.90140.qm@...1658...> References: <466162.90140.qm@...1658...> Message-ID: <200806161531.03695.gambas@...1...> On lundi 16 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit & All, > > I am very happy because next Tuesday I will start teaching Gambas in a > University (to some teacher and IT professionals), last Saturday I went > there to prepare everything. > > Of course they will pay for it, and of course I have planned to make you a > donation ;-) just let's wait that they pay. Let's hope that they pay you *a lot* :-) > > But one of the things they want to do is try to make all their systems in > Gambas, and they made a very interesting question: > > What about Gambas in 5, or 10, or 15 years? Will it still exist? Or Benoit > and his team will say: Let's stop working in Gambas? The main question is, > will Gambas have support in the future? > > I wrote this mail because I'm very happy that in my third world country > (Costa Rica) we (and I :-D) are starting in Linux and teach Linux to > others, so I want to share it with all of you. > > Benoit, please let me know your comments > > Best regards > > David > Practically, it is simple: I make Gambas and support it mostly for free, provided that I have a job that allows me to live, and make theatre - acting classes are very expensive! First point: if they want support, they must pay, there is no magic! But as it is free software, they don't have to necessarily pay the guy (or the guys) who write it. The sources are there, anybody can read it, understand it, and support it. It is just a matter of skill, time and elbow grease. Fortunately, I use Gambas in my job for two years, and so my salary is now directly connected to Gambas. So for the next years, support and development will be there. But of course you can't know the future! Second point: At the moment, other Gambas developers do it really for free, so their contribution is less important than mine. If I stop Gambas now, it will die for sure, as a language that any newbie can use is something that apparently frighten other advanced developers that could replace me. Maybe a mix of Visual Basic traumatism and eliticism? But you can't know the future too: if I succeed in making Gambas a web application development platform for example, as it is planned, it may attract other kind of developers. Third point: You can ask them to replace Gambas by Visual Basic (for example) in their question, and look at the answers. They are not necessarily worse for Gambas than Visual Basic. :-) They must understand that the most important is to keep the developers of the final application or the documentation within reach. The developer of the language itself is less important. How many Visual Basic applications run on the earth, with the sources, the documentation and the developers nowhere to be found? My 2 cents. -- Benoit Minisini From gambas at ...1... Mon Jun 16 15:32:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 15:32:11 +0200 Subject: [Gambas-user] Future support for Gambas In-Reply-To: <7259b5ae0806160618n121db4b2x44b2faca69ab111e@...627...> References: <466162.90140.qm@...1658...> <7259b5ae0806160618n121db4b2x44b2faca69ab111e@...627...> Message-ID: <200806161532.11028.gambas@...1...> On lundi 16 juin 2008, Daniel Campos wrote: > 10 years? Anybody using a PC in 10 years? May be 5 yes... > I'm not sure I will be able to develop Gambas on a EEE pc. I need space. :-) -- Benoit Minisini From simonart.dominique at ...11... Mon Jun 16 16:30:02 2008 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 16 Jun 2008 16:30:02 +0200 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806161511.30970.gambas@...1...> References: <4855A046.2010102@...11...> <200806161511.30970.gambas@...1...> Message-ID: <485678EA.3040806@...11...> Thanks Benoit, sorry for my evident ignorance! Benoit Minisini a ?crit : > On lundi 16 juin 2008, Dominique SIMONART wrote: > >> Hi everybody, >> >> I'm not familiar with Linux, know nothing about svn and use OpenSuse 10.3. >> I actually use Gambas2 V2.0 and want to uptadate to v2.7 from trunk, I >> followed the guide found in the online documentation >> (by the way, the name of the repository is not correct in the doc but I >> managed to retrieve an old message from this list with the right name) >> > > The svn path indicated in the download page of web site are the correct one. > But for downloading a specific release, you don't have to read the subversion > repository. I generate tar.gz archives that you can download from > sourceforge. Links are on the download page too. > So, in order to install the last version I just have to type $ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 Right? >> I think the downloading was correct and I get a folder 'gambas' with 3 >> sub-folders: 'branches', 'tags' and 'trunk'. >> Here is my first question : >> 1) The Gambas folder is quite big : 1.4 Go, 289139 files and 72558 >> subfolders. Is this a normal situation? >> > > LOL: you downloaded EVERYTHING! The current development version (3.x), the > stable version (2.x), all releases (2.0, 2.1, 2.2... 2.7), all specific > branches (temporary modifications made by specific developers). Thanks to > you, I know now how much room it takes. :-) > > The organization is the following: > > '/branches/2.0' is the next 2.x version. > '/trunk' is the current development tree (next 3.0 version) > '/tags' contains each release of Gambas. > > since I downloaded everything :-) : 1) I started the compilation in the 'trunk' subfolder. Wich version of Gambas could I get at the end? 2) what could be safety deleted? >> With the dependancies, I did not found : mysql-devel, mysql-shared, >> firebird. >> Next, I started ./reconf-all and ./configure -C (some minor options >> were discarded here, but nothing important for me) >> finally, I started make and it ended with the following messages (see >> the joined text file) so I did not start the 'make install' process) >> 2) What is wrong here? >> > > Hmm. Don't know... Which exact versions of qt are installed on your system? > > v3.3.8-76.2 Thanks for you patience! regards, From gambas at ...1... Mon Jun 16 17:22:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 17:22:27 +0200 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <485678EA.3040806@...11...> References: <4855A046.2010102@...11...> <200806161511.30970.gambas@...1...> <485678EA.3040806@...11...> Message-ID: <200806161722.27837.gambas@...1...> On lundi 16 juin 2008, Dominique SIMONART wrote: > Thanks Benoit, > sorry for my evident ignorance! > > Benoit Minisini a ?crit : > > On lundi 16 juin 2008, Dominique SIMONART wrote: > >> Hi everybody, > >> > >> I'm not familiar with Linux, know nothing about svn and use OpenSuse > >> 10.3. I actually use Gambas2 V2.0 and want to uptadate to v2.7 from > >> trunk, I followed the guide found in the online documentation > >> (by the way, the name of the repository is not correct in the doc but I > >> managed to retrieve an old message from this list with the right name) > > > > The svn path indicated in the download page of web site are the correct > > one. But for downloading a specific release, you don't have to read the > > subversion repository. I generate tar.gz archives that you can download > > from sourceforge. Links are on the download page too. > > So, in order to install the last version I just have to type > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > Right? > Yes, but this is not the "last version", but the "next 2.x version". > >> I think the downloading was correct and I get a folder 'gambas' with 3 > >> sub-folders: 'branches', 'tags' and 'trunk'. > >> Here is my first question : > >> 1) The Gambas folder is quite big : 1.4 Go, 289139 files and 72558 > >> subfolders. Is this a normal situation? > > > > LOL: you downloaded EVERYTHING! The current development version (3.x), > > the stable version (2.x), all releases (2.0, 2.1, 2.2... 2.7), all > > specific branches (temporary modifications made by specific developers). > > Thanks to you, I know now how much room it takes. :-) > > > > The organization is the following: > > > > '/branches/2.0' is the next 2.x version. > > '/trunk' is the current development tree (next 3.0 version) > > '/tags' contains each release of Gambas. > > since I downloaded everything :-) : > 1) I started the compilation in the 'trunk' subfolder. Wich version of > Gambas could I get at the end? "trunk" is for the development version, i.e. the next "3.0" version. > 2) what could be safety deleted? /trunk, any subdirectoru of /tags and /branches. > > >> With the dependancies, I did not found : mysql-devel, mysql-shared, > >> firebird. > >> Next, I started ./reconf-all and ./configure -C (some minor options > >> were discarded here, but nothing important for me) > >> finally, I started make and it ended with the following messages (see > >> the joined text file) so I did not start the 'make install' process) > >> 2) What is wrong here? > > > > Hmm. Don't know... Which exact versions of qt are installed on your > > system? > > v3.3.8-76.2 > > Which distribution do you use? -- Benoit Minisini From david_villalobos_c at ...43... Mon Jun 16 17:49:59 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 16 Jun 2008 08:49:59 -0700 (PDT) Subject: [Gambas-user] Future support for Gambas Message-ID: <586247.50959.qm@...1667...> OK, I let them know ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, June 16, 2008 7:31:03 AM Subject: Re: [Gambas-user] Future support for Gambas On lundi 16 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit & All, > > I am very happy because next Tuesday I will start teaching Gambas in a > University (to some teacher and IT professionals), last Saturday I went > there to prepare everything. > > Of course they will pay for it, and of course I have planned to make you a > donation ;-) just let's wait that they pay. Let's hope that they pay you *a lot* :-) > > But one of the things they want to do is try to make all their systems in > Gambas, and they made a very interesting question: > > What about Gambas in 5, or 10, or 15 years? Will it still exist? Or Benoit > and his team will say: Let's stop working in Gambas? The main question is, > will Gambas have support in the future? > > I wrote this mail because I'm very happy that in my third world country > (Costa Rica) we (and I :-D) are starting in Linux and teach Linux to > others, so I want to share it with all of you. > > Benoit, please let me know your comments > > Best regards > > David > Practically, it is simple: I make Gambas and support it mostly for free, provided that I have a job that allows me to live, and make theatre - acting classes are very expensive! First point: if they want support, they must pay, there is no magic! But as it is free software, they don't have to necessarily pay the guy (or the guys) who write it. The sources are there, anybody can read it, understand it, and support it. It is just a matter of skill, time and elbow grease. Fortunately, I use Gambas in my job for two years, and so my salary is now directly connected to Gambas. So for the next years, support and development will be there. But of course you can't know the future! Second point: At the moment, other Gambas developers do it really for free, so their contribution is less important than mine. If I stop Gambas now, it will die for sure, as a language that any newbie can use is something that apparently frighten other advanced developers that could replace me. Maybe a mix of Visual Basic traumatism and eliticism? But you can't know the future too: if I succeed in making Gambas a web application development platform for example, as it is planned, it may attract other kind of developers. Third point: You can ask them to replace Gambas by Visual Basic (for example) in their question, and look at the answers. They are not necessarily worse for Gambas than Visual Basic. :-) They must understand that the most important is to keep the developers of the final application or the documentation within reach. The developer of the language itself is less important. How many Visual Basic applications run on the earth, with the sources, the documentation and the developers nowhere to be found? My 2 cents. -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From simonart.dominique at ...11... Mon Jun 16 18:12:37 2008 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 16 Jun 2008 18:12:37 +0200 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806161722.27837.gambas@...1...> References: <4855A046.2010102@...11...> <200806161511.30970.gambas@...1...> <485678EA.3040806@...11...> <200806161722.27837.gambas@...1...> Message-ID: <485690F5.7040906@...11...> Benoit Minisini a ?crit : > On lundi 16 juin 2008, Dominique SIMONART wrote: > <----- removed lines here --------------> >> So, in order to install the last version I just have to type >> $ svn checkout >> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 >> Right? >> > > Yes, but this is not the "last version", but the "next 2.x version". > oups, yes of course, I thank about 'the last stable version' but that was not what I wrote :-[ ! <--------------- removed lines here ---------------> >>>> With the dependancies, I did not found : mysql-devel, mysql-shared, >>>> firebird. >>>> Next, I started ./reconf-all and ./configure -C (some minor options >>>> were discarded here, but nothing important for me) >>>> finally, I started make and it ended with the following messages (see >>>> the joined text file) so I did not start the 'make install' process) >>>> 2) What is wrong here? >>>> >>> Hmm. Don't know... Which exact versions of qt are installed on your >>> system? >>> >> v3.3.8-76.2 >> > > Which distribution do you use? > OpenSuse 10.3 (Kde) with online updates thanks again, Dominique From kari.laine at ...1400... Mon Jun 16 20:44:17 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 16 Jun 2008 21:44:17 +0300 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <485690F5.7040906@...11...> References: <4855A046.2010102@...11...> <200806161511.30970.gambas@...1...> <485678EA.3040806@...11...> <200806161722.27837.gambas@...1...> <485690F5.7040906@...11...> Message-ID: <4856B481.1090006@...1400...> I also use SUSE 10.3 and at last got all the modules to compile except that Qt Embedded thing. That one I could not find anywhere - and I am sure I won't need it. My long term goal is to produce RPMs for SUSE for the needed components, like OmniORB, SDL, unixODBC and other so that Gambas can be compiled without effort on SUSE. I even got the ODBC thing to go with MySQL. unixODBC project is in not very good shape (that's bad). Hopefully it will be reviwed... There seems to another project called iODBC, which I haven't looked yet. Next I will learn that SDL thing. Kari Dominique SIMONART kirjoitti: > Benoit Minisini a ?crit : > >> On lundi 16 juin 2008, Dominique SIMONART wrote: >> >> > <----- removed lines here --------------> > >>> So, in order to install the last version I just have to type >>> $ svn checkout >>> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 >>> Right? >>> >>> >> Yes, but this is not the "last version", but the "next 2.x version". >> >> > oups, yes of course, I thank about 'the last stable version' but that > was not what I wrote :-[ ! > > <--------------- removed lines here ---------------> > >>>>> With the dependancies, I did not found : mysql-devel, mysql-shared, >>>>> firebird. >>>>> Next, I started ./reconf-all and ./configure -C (some minor options >>>>> were discarded here, but nothing important for me) >>>>> finally, I started make and it ended with the following messages (see >>>>> the joined text file) so I did not start the 'make install' process) >>>>> 2) What is wrong here? >>>>> >>>>> >>>> Hmm. Don't know... Which exact versions of qt are installed on your >>>> system? >>>> >>>> >>> v3.3.8-76.2 >>> >>> >> Which distribution do you use? >> >> > OpenSuse 10.3 (Kde) with online updates > > thanks again, > Dominique > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gbv at ...1076... Mon Jun 16 21:19:20 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Mon, 16 Jun 2008 19:19:20 +0000 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <4856B481.1090006@...1400...> References: <4855A046.2010102@...11...> <485690F5.7040906@...11...> <4856B481.1090006@...1400...> Message-ID: <200806161919.21361.gbv@...1076...> Hello, El Monday 16 June 2008 18:44:17 Kari Laine escribi?: > I also use SUSE 10.3 and at last got all the modules to compile except > that Qt Embedded thing. That one I could not find anywhere - and I am > sure I won't need it. > > My long term goal is to produce RPMs for SUSE for the needed components, > like OmniORB, SDL, unixODBC and other so that Gambas can be compiled > without effort on SUSE. You can check my rpms for opensuse at the repositories here: http://download.opensuse.org/repositories/home:/gbvalor/ Any help is welcome ;-) Regards, Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From kari.laine at ...1400... Mon Jun 16 22:02:05 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 16 Jun 2008 23:02:05 +0300 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806161919.21361.gbv@...1076...> References: <4855A046.2010102@...11...> <485690F5.7040906@...11...> <4856B481.1090006@...1400...> <200806161919.21361.gbv@...1076...> Message-ID: <4856C6BD.6070701@...1400...> Guillermo Ballester Valor kirjoitti: > You can check my rpms for opensuse at the repositories here: > > http://download.opensuse.org/repositories/home:/gbvalor/ > > Any help is welcome ;-) > > Regards, > > Guillermo > Hi ! I will test them today (night :-) ) One thing I don't understand is that when I tried to package Gambas I ended up to problem with for example SDL-package in SUSE. There was nowhere to find SDL-image or SDL-mixer in packages which comes with suse. So now I in a thought that new SDL package have to be made for SUSE. How does you packages handle this? I am totally newbie with building rpm-packages. Succeeded to build the main package but I couldn't figure out the dependencies for others. Hopefully you have time to set me straight. Best Regards Kari From kari.laine at ...1400... Mon Jun 16 23:18:33 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 17 Jun 2008 00:18:33 +0300 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806161919.21361.gbv@...1076...> References: <4855A046.2010102@...11...> <485690F5.7040906@...11...> <4856B481.1090006@...1400...> <200806161919.21361.gbv@...1076...> Message-ID: <4856D8A9.6080902@...1400...> Guillermo Ballester Valor kirjoitti: > You can check my rpms for opensuse at the repositories here: > > http://download.opensuse.org/repositories/home:/gbvalor/ > > Any help is welcome ;-) > > Regards, > > Guillermo > Hi again Guillermo, would it be possible to put up the src-rpms also or at least the spec-files? I noticed the gambas-corba is missing - but I haven't yet done any programming with it so I don't know how good it was in the first place. I just installed all the rpms and it seems to work. GOOD JOB. Thanks. Best Regards Kari From gbv at ...1076... Mon Jun 16 23:30:59 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Mon, 16 Jun 2008 21:30:59 +0000 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <4856D8A9.6080902@...1400...> References: <4855A046.2010102@...11...> <200806161919.21361.gbv@...1076...> <4856D8A9.6080902@...1400...> Message-ID: <200806162131.00165.gbv@...1076...> Hello, El Monday 16 June 2008 21:18:33 Kari Laine escribi?: > Guillermo Ballester Valor kirjoitti: > > You can check my rpms for opensuse at the repositories here: > > > > http://download.opensuse.org/repositories/home:/gbvalor/ > > > > Any help is welcome ;-) > > > > Regards, > > > > Guillermo > > Hi again Guillermo, > > would it be possible to put up the src-rpms also or at least the > spec-files? I noticed the gambas-corba is missing - but I haven't yet done > any programming with it so I don't know how good it was in the first place. > I just installed all the rpms and it seems to work. GOOD JOB. Thanks. > The src rpms are also in the repositories. You can extract the spec file from it . For example, if you have downloaded 'gambas2.src.rpm' rpm2cpio gambas2.src.rpm | cpio -i will split the src.rpm in all its parts. You can find the spec file there. And yes, gambas-corba is missing. I've still not found the way to do it, basically cannot find the needed libraries. Guillermo > Best Regards > Kari > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From bruno.crepax at ...69... Tue Jun 17 13:18:06 2008 From: bruno.crepax at ...69... (bruno) Date: Tue, 17 Jun 2008 13:18:06 +0200 Subject: [Gambas-user] Error lauching Gambas 2.2.7.0 Message-ID: <1213701486.8309.5.camel@...1929...> Hello All. When i launch Gambas 2.2.7.0 a message Box Appear with this Message: [11] unknown symbol 'border' in class 'container'. sidepanel.border_write.57 I use Ubuntu 8.0.4 P.S Gambas 2.2.4.1 Work OK. Someone has an Idea ???? From bruno.crepax at ...69... Tue Jun 17 15:35:07 2008 From: bruno.crepax at ...69... (bruno) Date: Tue, 17 Jun 2008 15:35:07 +0200 Subject: [Gambas-user] Re error launch Gambas 2.2.7.0 Message-ID: <1213709707.9076.3.camel@...1929...> Re Post Scriptum installed Trunk Gambas3 2.99 Work Well From ron at ...1740... Tue Jun 17 15:55:32 2008 From: ron at ...1740... (Ron) Date: Tue, 17 Jun 2008 15:55:32 +0200 Subject: [Gambas-user] Form editor group functionality Message-ID: <4857C254.4060208@...1740...> Hi, I'm missing a group function inside the form editor, ie you select a bunch of controls (main object first, then children) and choose 'group' from the menu to make them stick together. Is this possible? Now I cut them from the form, select the frame or whatever I want to join them to, and paste them on it again. But this way you lose it's position etc. I know you must work the other way around, ie first define your frame etc and then place the buttons, but sometimes you decide to create a extra frame to place a part of the buttons on. Or is it there already, and I just have to RTFM? Regards, Ron the 2nd. From nxgtrturbo at ...626... Tue Jun 17 18:29:11 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 17 Jun 2008 09:29:11 -0700 Subject: [Gambas-user] Or inside a Case Message-ID: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> Hi, I have a problem, I am not really sure how to get an Or working inside a case, the compiler doesn't complain about any syntax problems, but the code just doesn't works: SELECT CASE something.text CASE "hola" or "hello" do something1 CASE "adios" or "bye" do something2 END SELECT -- Thanks in Advance From rospolosco at ...152... Tue Jun 17 18:40:15 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 17 Jun 2008 18:40:15 +0200 Subject: [Gambas-user] Or inside a Case In-Reply-To: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> References: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> Message-ID: <200806171840.16278.rospolosco@...152...> Il marted? 17 giugno 2008 18:29:11 Nx GT-R BOY ha scritto: > Hi, I have a problem, I am not really sure how to get an Or working inside > a case, the compiler doesn't complain about any syntax problems, but the > code just doesn't works: > > > > SELECT CASE something.text > > CASE "hola" or "hello" > > do something1 > > CASE "adios" or "bye" > > do something2 > > END SELECT try CASE "hola" , "hello" it should work ciao From bruno.crepax at ...69... Tue Jun 17 18:49:35 2008 From: bruno.crepax at ...69... (bruno) Date: Tue, 17 Jun 2008 18:49:35 +0200 Subject: [Gambas-user] Or inside a Case In-Reply-To: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> References: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> Message-ID: <1213721375.13834.1.camel@...1929...> this work: SELECT CASE "adios" CASE "hola", "hello" TextBox1.text = "Hola Hello" CASE "adios", "bye" TextBox1.text = "Adios Bye" END SELECT Bye. Il giorno mar, 17/06/2008 alle 09.29 -0700, Nx GT-R BOY ha scritto: > Hi, I have a problem, I am not really sure how to get an Or working inside a > case, the compiler doesn't complain about any syntax problems, but the code > just doesn't works: > > > > SELECT CASE something.text > > CASE "hola" or "hello" > > do something1 > > CASE "adios" or "bye" > > do something2 > > END SELECT > > From Karl.Reinl at ...9... Tue Jun 17 18:38:54 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 17 Jun 2008 18:38:54 +0200 Subject: [Gambas-user] Or inside a Case In-Reply-To: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> References: <688afe140806170929i1b5eb8cap695bfb5d0229b78f@...627...> Message-ID: <1213720734.8279.1.camel@...40...> Salut, just CASE "hola", "hello", "Hallo", hALLO" Am Dienstag, den 17.06.2008, 09:29 -0700 schrieb Nx GT-R BOY: > Hi, I have a problem, I am not really sure how to get an Or working inside a > case, the compiler doesn't complain about any syntax problems, but the code > just doesn't works: > > > > SELECT CASE something.text > > CASE "hola" or "hello" > > do something1 > > CASE "adios" or "bye" > > do something2 > > END SELECT > > From kari.laine at ...1400... Wed Jun 18 14:06:34 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 18 Jun 2008 15:06:34 +0300 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806162131.00165.gbv@...1076...> References: <4855A046.2010102@...11...> <200806161919.21361.gbv@...1076...> <4856D8A9.6080902@...1400...> <200806162131.00165.gbv@...1076...> Message-ID: <4858FA4A.5030802@...1400...> Guillermo Ballester Valor kirjoitti: > Hell > > > The src rpms are also in the repositories. You can extract the spec file from > it . For example, if you have downloaded 'gambas2.src.rpm' > > rpm2cpio gambas2.src.rpm | cpio -i > > will split the src.rpm in all its parts. You can find the spec file there. > > And yes, gambas-corba is missing. I've still not found the way to do it, > basically cannot find the needed libraries. > Hi, What libraries you don't find? It is omniORB that Gambas orb uses. It is not packaged with SUSE. Best Regards Kari Laine From wspinto at ...1405... Wed Jun 18 14:33:44 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 18 Jun 2008 09:33:44 -0300 Subject: [Gambas-user] qt mobile to celular programs In-Reply-To: References: Message-ID: <1213792424.485900a89bcb6@...1540...> Hi Benoit! Have an hope in short future the gambas include in your libs the qt.mobile library. Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Wed Jun 18 14:40:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jun 2008 14:40:27 +0200 Subject: [Gambas-user] qt mobile to celular programs In-Reply-To: <1213792424.485900a89bcb6@...1540...> References: <1213792424.485900a89bcb6@...1540...> Message-ID: <200806181440.27471.gambas@...1...> On mercredi 18 juin 2008, Wellington de Souza Pinto wrote: > Hi Benoit! > > Have an hope in short future the gambas include in your libs the qt.mobile > library. > > Reguards, > > Souza, Wellington What's that? Isn't it what the gb.qte component uses? -- Benoit Minisini From gambas at ...1... Wed Jun 18 14:41:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jun 2008 14:41:16 +0200 Subject: [Gambas-user] Form editor group functionality In-Reply-To: <4857C254.4060208@...1740...> References: <4857C254.4060208@...1740...> Message-ID: <200806181441.16895.gambas@...1...> On mardi 17 juin 2008, Ron wrote: > Hi, > > I'm missing a group function inside the form editor, ie you select a > bunch of controls (main object first, then children) and choose 'group' > from the > menu to make them stick together. Is this possible? > > Now I cut them from the form, select the frame or whatever I want to > join them to, and paste them on it again. > But this way you lose it's position etc. > > I know you must work the other way around, ie first define your frame > etc and then place the buttons, but sometimes you decide to create a > extra frame to place a part of the buttons on. > > Or is it there already, and I just have to RTFM? > > Regards, > Ron the 2nd. > Sorry, I don't understand what you want exactly. -- Benoit Minisini From gambas at ...1... Wed Jun 18 14:43:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jun 2008 14:43:06 +0200 Subject: [Gambas-user] Release of Gambas 2.7 In-Reply-To: <48566508.8070505@...221...> References: <200806131859.43772.gambas@...1...> <200806161444.57966.gambas@...1...> <48566508.8070505@...221...> Message-ID: <200806181443.06196.gambas@...1...> On lundi 16 juin 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > On lundi 16 juin 2008, Rolf-Werner Eilert wrote: > >> Benoit Minisini schrieb: > >>> Hi, > >>> > >>> This new release of Gambas is mainly a bugfix release: > >> > >> Thank you Benoit, compiled and runs great here. > >> > >> One thing I just came about is that when you change the name of a > >> control, the name in the displayed version doesn't change at once. This > >> can be confusing sometimes. > >> > >> Hope you know what I mean... > >> > >> > >> Regards > >> > >> Rolf > > > > Yes. But this is not really fully a bug: for example, TextBox and > > TextArea Text property is just initialized with the name of the control. > > When this name change, the property keep its value (because you can > > change it before the name change). This is not necessarily the case for > > other controls. > > > > I admit this is a bit confusing... :-) > > Ok, that's true. This morning, I continued to create some dialogs for a > project of mine, and after spreading ComboBoxes, ValueBoxes, TextBoxes, > SpinBoxes and Buttons all over the place :-) I began changing their > names to something more useful than SpinBox1 or ComboBox3. > > Of course, ComboBoxes and TextBoxes didn't change their contents, but > ValueBoxes and SpinBoxes should have - at least they did, after I closed > the project and re-openened it. > > Regards > > Rolf > Maybe I should always display the name of the control in TextBox and TextArea, and not the value of the Text property. After all, initializing TextBox or TextArea is not frequent... I did that because VB did that I think. :-) Regards, -- Benoit Minisini From ron at ...1740... Wed Jun 18 16:52:52 2008 From: ron at ...1740... (Ron) Date: Wed, 18 Jun 2008 16:52:52 +0200 Subject: [Gambas-user] Form editor group functionality In-Reply-To: <200806181441.16895.gambas@...1...> References: <4857C254.4060208@...1740...> <200806181441.16895.gambas@...1...> Message-ID: <48592144.1020107@...1740...> Benoit Minisini schreef: > On mardi 17 juin 2008, Ron wrote: > >> Hi, >> >> I'm missing a group function inside the form editor, ie you select a >> bunch of controls (main object first, then children) and choose 'group' >> from the >> menu to make them stick together. Is this possible? >> >> Now I cut them from the form, select the frame or whatever I want to >> join them to, and paste them on it again. >> But this way you lose it's position etc. >> >> I know you must work the other way around, ie first define your frame >> etc and then place the buttons, but sometimes you decide to create a >> extra frame to place a part of the buttons on. >> >> Or is it there already, and I just have to RTFM? >> >> Regards, >> Ron the 2nd. >> >> > > Sorry, I don't understand what you want exactly. > > I'll try to explain. The ability to make buttons or other objects a child of another object after they where placed on a form. So you select them and say they must become a child object of the first selected object. (for example a frame you added after those objects) Normaly you select an object and drag another to it, but now I want to do it afterwards. Kinda like group function in Visio. But since no one besides Benoit replied, I guess i'm doing something wrong, or it is already there somewhere, or it's not a big deal. Regards, Ron. From eilert-sprachen at ...221... Wed Jun 18 17:50:48 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Jun 2008 17:50:48 +0200 Subject: [Gambas-user] Form editor group functionality In-Reply-To: <48592144.1020107@...1740...> References: <4857C254.4060208@...1740...> <200806181441.16895.gambas@...1...> <48592144.1020107@...1740...> Message-ID: <48592ED8.30106@...221...> Ron schrieb: > Benoit Minisini schreef: >> On mardi 17 juin 2008, Ron wrote: >> >>> Hi, >>> >>> I'm missing a group function inside the form editor, ie you select a >>> bunch of controls (main object first, then children) and choose 'group' >>> from the >>> menu to make them stick together. Is this possible? >>> >>> Now I cut them from the form, select the frame or whatever I want to >>> join them to, and paste them on it again. >>> But this way you lose it's position etc. >>> >>> I know you must work the other way around, ie first define your frame >>> etc and then place the buttons, but sometimes you decide to create a >>> extra frame to place a part of the buttons on. >>> >>> Or is it there already, and I just have to RTFM? >>> >>> Regards, >>> Ron the 2nd. >>> >>> >> Sorry, I don't understand what you want exactly. >> >> > I'll try to explain. > > The ability to make buttons or other objects a child of another object > after they where placed on a form. > So you select them and say they must become a child object of the first > selected object. (for example a frame you added after those objects) > > Normaly you select an object and drag another to it, but now I want to > do it afterwards. > > Kinda like group function in Visio. > > But since no one besides Benoit replied, I guess i'm doing something > wrong, or it is already there somewhere, or it's not a big deal. > > Regards, > Ron. > Just tried it. No big deal, if I guessed what you meant. - You have a couple of controls (input boxes, buttons, stuff like that) - You make a new frame (I used a frame, but a panel should do as well) - You click the first control, than hit and keep "Ctrl" pressed, click the other ones (they get black squares instead of white ones) - You hit Ctrl-C or Ctrl-X, respectively - You click the frame - You hit Ctrl-V Is this what you meant? Rolf From simonart.dominique at ...11... Wed Jun 18 19:15:38 2008 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Wed, 18 Jun 2008 19:15:38 +0200 Subject: [Gambas-user] about compilation of Gambas In-Reply-To: <200806161919.21361.gbv@...1076...> References: <4855A046.2010102@...11...> <485690F5.7040906@...11...> <4856B481.1090006@...1400...> <200806161919.21361.gbv@...1076...> Message-ID: <485942BA.6060703@...11...> Hello, Guillermo Ballester Valor a ?crit : > Hello, > > El Monday 16 June 2008 18:44:17 Kari Laine escribi?: > >> I also use SUSE 10.3 and at last got all the modules to compile except >> that Qt Embedded thing. That one I could not find anywhere - and I am >> sure I won't need it. >> >> My long term goal is to produce RPMs for SUSE for the needed components, >> like OmniORB, SDL, unixODBC and other so that Gambas can be compiled >> without effort on SUSE. >> > > You can check my rpms for opensuse at the repositories here: > > http://download.opensuse.org/repositories/home:/gbvalor/ > > Any help is welcome ;-) > > Regards, > > Guillermo > > I've downloaded all of the rpms files and installed them with yast (opensuse 10.3) without problems Now, when I run gambas in a terminal, I get the message below. This application has raised an unexpected error and must abort. [6] Type mismatch: wanted Object, got String instead. FOption.ReadConfig.25 There is something wrong with my system but I cannot understand how this is possible because I just applied the official proposed updates from OpenSuse repositories. any ideas? The problem is also that now I don't have gambas anymore :'( regards, Dominique Simonart From gambas at ...1... Wed Jun 18 19:49:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jun 2008 19:49:02 +0200 Subject: [Gambas-user] Gambas Review In-Reply-To: <67d55ef00806171114o39d36feeief7278886717fcd8@...627...> References: <67d55ef00806171114o39d36feeief7278886717fcd8@...627...> Message-ID: <200806181949.02929.gambas@...1...> On mardi 17 juin 2008, you wrote: > Hello, > > I'm writing to inform you that your project, Gambas, has recently been > reviewed on Penguin > Sightings. > Have a look at it! > > And feel free to link back to this review on your site, if you want, to > give your users an outsider's opinion of your program. > > > Thanks, > > Mark > www.penguinsightings.org Thanks for the review: I will forward your mail to the mailing-list for the people who are interested in reading it. Regards, -- Benoit Minisini From ron at ...1740... Wed Jun 18 22:11:21 2008 From: ron at ...1740... (Ron) Date: Wed, 18 Jun 2008 22:11:21 +0200 Subject: [Gambas-user] Form editor group functionality In-Reply-To: <48592ED8.30106@...221...> References: <4857C254.4060208@...1740...> <200806181441.16895.gambas@...1...> <48592144.1020107@...1740...> <48592ED8.30106@...221...> Message-ID: <48596BE9.2060407@...1740...> Rolf-Werner Eilert schreef: > Ron schrieb: > >> Benoit Minisini schreef: >> >>> On mardi 17 juin 2008, Ron wrote: >>> >>> >>>> Hi, >>>> >>>> I'm missing a group function inside the form editor, ie you select a >>>> bunch of controls (main object first, then children) and choose 'group' >>>> from the >>>> menu to make them stick together. Is this possible? >>>> >>>> Now I cut them from the form, select the frame or whatever I want to >>>> join them to, and paste them on it again. >>>> But this way you lose it's position etc. >>>> >>>> I know you must work the other way around, ie first define your frame >>>> etc and then place the buttons, but sometimes you decide to create a >>>> extra frame to place a part of the buttons on. >>>> >>>> Or is it there already, and I just have to RTFM? >>>> >>>> Regards, >>>> Ron the 2nd. >>>> >>>> >>>> >>> Sorry, I don't understand what you want exactly. >>> >>> >>> >> I'll try to explain. >> >> The ability to make buttons or other objects a child of another object >> after they where placed on a form. >> So you select them and say they must become a child object of the first >> selected object. (for example a frame you added after those objects) >> >> Normaly you select an object and drag another to it, but now I want to >> do it afterwards. >> >> Kinda like group function in Visio. >> >> But since no one besides Benoit replied, I guess i'm doing something >> wrong, or it is already there somewhere, or it's not a big deal. >> >> Regards, >> Ron. >> >> > > > Just tried it. No big deal, if I guessed what you meant. > > - You have a couple of controls (input boxes, buttons, stuff like that) > > - You make a new frame (I used a frame, but a panel should do as well) > > - You click the first control, than hit and keep "Ctrl" pressed, click > the other ones (they get black squares instead of white ones) > > - You hit Ctrl-C or Ctrl-X, respectively > > - You click the frame > > - You hit Ctrl-V > > Is this what you meant? > > Rolf > > Rolf, You describe the procedure I use now, the drawback is, that when you paste the selected objects, their position gets lost. ie they will be placed in the left hand corner of the object. I'm missing a function which doesn't involve cut and paste, just one that redefines the hierarchy and leave the postitions and sizes alone. The right mouse click menu after selecting the objects the way you describe seem to be the right place to have such a function. Because most of the time the objects are already on the correct positions, just the frame or object beneath it is new. I'm picky I know ;-) Regards, Ron the 2nd From ron at ...1740... Thu Jun 19 14:59:18 2008 From: ron at ...1740... (Ron) Date: Thu, 19 Jun 2008 14:59:18 +0200 Subject: [Gambas-user] Datacontrol boxes different height Message-ID: <485A5826.2040301@...1740...> Hi, a default textbox is 24 pixels heigh. a default datacontrol box is 128 pixels heigh, if you resize it to 24 px with your mouse, the contents doesn't fit properly, you get a scrollbar when you put some text (one line) in it. you have to manually enter 25 px before it fits correctly. Regards, Ron From bruno.crepax at ...69... Thu Jun 19 15:07:22 2008 From: bruno.crepax at ...69... (bruno) Date: Thu, 19 Jun 2008 15:07:22 +0200 Subject: [Gambas-user] Error lauching Gambas2 2.7.0 in Ubuntu 8.04 Message-ID: <1213880842.8228.1.camel@...1929...> ?Hello All. When i launch Gambas 2.2.7.0 a message Box Appear with this Message: [11] unknown symbol 'border' in class 'container'. sidepanel.border_write.57 I use Ubuntu 8.0.4 P.S Gambas 2.2.4.1 Work OK. Someone has an Idea ???? From ron at ...1740... Thu Jun 19 15:11:43 2008 From: ron at ...1740... (Ron) Date: Thu, 19 Jun 2008 15:11:43 +0200 Subject: [Gambas-user] Datacontrol boxes different height In-Reply-To: <485A5826.2040301@...1740...> References: <485A5826.2040301@...1740...> Message-ID: <485A5B0F.9090800@...1740...> > > Hi, > > a default textbox is 24 pixels heigh. > > a default datacontrol box is 128 pixels heigh, if you resize it to 24 px > with your mouse, the contents doesn't fit properly, > you get a scrollbar when you put some text (one line) in it. > > you have to manually enter 25 px before it fits correctly. > > > Regards, > Ron > Note. I forgot to add, this is when the database field name, is type string, unlimited. From leonardo at ...1237... Thu Jun 19 16:01:35 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 19 Jun 2008 16:01:35 +0200 Subject: [Gambas-user] Gambas review on italian magazine "Gnu-Linux Magazine" Message-ID: <485A66BF.70601@...1237...> I would like to inform all the community that on the copy of July 2008 of the italian magazine "Gnu-Linux Magazine" there is a reviews of our lovely Gambas :-) You can find the summary of the magazine here: http://www.edmaster.it/?p=prodotti&idcat=3&idprod=5&idnum=89 Here is the traslation of the summary of the article: SVILUPPO * SIAMO TUTTI PROGRAMMATORI Guida all?uso dell?IDE Gambas. Come Visual Basic ma Open Source DEVELOPMENT * WE ARE ALL PROGRAMMERS Guide to the use of Gambas IDE. Like Visual Basic but Open Source -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Thu Jun 19 18:16:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 18:16:54 +0200 Subject: [Gambas-user] Datacontrol boxes different height In-Reply-To: <485A5B0F.9090800@...1740...> References: <485A5826.2040301@...1740...> <485A5B0F.9090800@...1740...> Message-ID: <200806191816.54872.gambas@...1...> On jeudi 19 juin 2008, Ron wrote: > > Hi, > > > > a default textbox is 24 pixels heigh. > > > > a default datacontrol box is 128 pixels heigh, if you resize it to 24 px > > with your mouse, the contents doesn't fit properly, > > you get a scrollbar when you put some text (one line) in it. > > > > you have to manually enter 25 px before it fits correctly. > > > > > > Regards, > > Ron > > Note. > I forgot to add, this is when the database field name, is type string, > unlimited. > OK, it is fixed in revision #1416. Note that the default size is not in pixels internally, but in multiple of Desktop.Scale. Regards, -- Benoit Minisini From gambas at ...1... Thu Jun 19 18:20:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 18:20:01 +0200 Subject: [Gambas-user] Error lauching Gambas2 2.7.0 in Ubuntu 8.04 In-Reply-To: <1213880842.8228.1.camel@...1929...> References: <1213880842.8228.1.camel@...1929...> Message-ID: <200806191820.01414.gambas@...1...> On jeudi 19 juin 2008, bruno wrote: > Hello All. > > When i launch Gambas 2.2.7.0 > > a message Box Appear with this Message: > > [11] unknown symbol 'border' in class 'container'. > sidepanel.border_write.57 > > > I use Ubuntu 8.0.4 > > > P.S Gambas 2.2.4.1 Work OK. > > Someone has an Idea ???? > > Can you give more details? How you installed Gambas, what is the output of the compilation process if you compiled it, and so on... Can't read minds yet! Note that the version numbers are 2.7.0 and 2.4.1. Regards, -- Benoit Minisini From bruno.crepax at ...69... Thu Jun 19 19:16:18 2008 From: bruno.crepax at ...69... (bruno) Date: Thu, 19 Jun 2008 19:16:18 +0200 Subject: [Gambas-user] Error lauching Gambas2 2.7.0 in Ubuntu 8.04 In-Reply-To: <200806191820.01414.gambas@...1...> References: <1213880842.8228.1.camel@...1929...> <200806191820.01414.gambas@...1...> Message-ID: <1213895778.9025.10.camel@...1929...> Sorry !. Up to version 2.4.1 everything worked well. I have problems starting from version 2.5 2.6 2.7 onwards. the trunk version 2.99 instead works. I run the following steps. 1) sudo apt-get install build-essential g++ automake autoconf libbz2-dev libgnorba-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl3-dev libgtkglext1-dev libqt3-mt-dev kdebase-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev build-essential libbonobo2-dev libcos4-dev libomniorb4-dev firebird2.0-dev librsvg2-dev libpoppler-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libartsc0-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libarts1-dev kdelibs4-dev libffi4-dev libxtst-dev gettext 2) cd /usr/src sudo tar xvfj /home/myhome/gambas2-2.7.0.tar.bz2 3) cd /usr/src/gambas2-2.7.0 sudo ./configure -C sudo make sudo make install ----- Result of congigure -C (only the lasts Rows) configure: creating ./config.status config.status: creating Makefile config.status: creating help/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.qte ************************************************************ Result of Make (only the lasts Rows) creating gb.qt.la (cd .libs && rm -f gb.qt.la && ln -s ../gb.qt.la gb.qt.la) make[5]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt/src' make[4]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt/src' make[4]: Entering directory `/usr/src/gambas2-2.7.0/gb.qt' make[4]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt' make[3]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt' make[2]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt' Making all in gb.qte make[2]: Entering directory `/usr/src/gambas2-2.7.0/gb.qte' make all-recursive make[3]: Entering directory `/usr/src/gambas2-2.7.0/gb.qte' make[4]: Entering directory `/usr/src/gambas2-2.7.0/gb.qte' make[4]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qte' make[3]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qte' make[2]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qte' Making all in gb.qt.kde make[2]: Entering directory `/usr/src/gambas2-2.7.0/gb.qt.kde' make all-recursive make[3]: Entering directory `/usr/src/gambas2-2.7.0/gb.qt.kde' Making all in src make[4]: Entering directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src' Making all in html make[5]: Entering directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src/html' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -I/usr/include/kde/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -I/usr/include/kde/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o In file included from main.cpp:25: CWebBrowser.h:28:24: error: khtml_part.h: No such file or directory CWebBrowser.h:29:24: error: kstatusbar.h: No such file or directory In file included from main.cpp:25: CWebBrowser.h:53: error: ISO C++ forbids declaration of 'KHTMLPart' with no type CWebBrowser.h:53: error: expected ';' before '*' token CWebBrowser.h:81: error: expected ',' or '...' before '&' token CWebBrowser.h:81: error: ISO C++ forbids declaration of 'KURL' with no type CWebBrowser.h:84: error: 'KParts' has not been declared CWebBrowser.h:84: error: expected ',' or '...' before '*' token make[5]: *** [main.lo] Error 1 make[5]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src/html' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas2-2.7.0' make: *** [all] Error 2 Result of Make install (only the lasts Rows) In file included from main.cpp:25: CWebBrowser.h:28:24: error: khtml_part.h: No such file or directory CWebBrowser.h:29:24: error: kstatusbar.h: No such file or directory In file included from main.cpp:25: CWebBrowser.h:53: error: ISO C++ forbids declaration of 'KHTMLPart' with no type CWebBrowser.h:53: error: expected ';' before '*' token CWebBrowser.h:81: error: expected ',' or '...' before '&' token CWebBrowser.h:81: error: ISO C++ forbids declaration of 'KURL' with no type CWebBrowser.h:84: error: 'KParts' has not been declared CWebBrowser.h:84: error: expected ',' or '...' before '*' token make[3]: *** [main.lo] Error 1 make[3]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src/html' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas2-2.7.0/gb.qt.kde' make: *** [install-recursive] Error 1 ----------------------------- Merci pour la patience. ?Regards, Bruno Crepaldi ----------------------------------------------------------------------------------- Il giorno gio, 19/06/2008 alle 18.20 +0200, Benoit Minisini ha scritto: > Can you give more details? How you installed Gambas, what is the > output of the > compilation process if you compiled it, and so on... Can't read minds > yet! > > Note that the version numbers are 2.7.0 and 2.4.1. > > Regards, From bruno.crepax at ...69... Thu Jun 19 19:43:32 2008 From: bruno.crepax at ...69... (bruno) Date: Thu, 19 Jun 2008 19:43:32 +0200 Subject: [Gambas-user] Error lauching Gambas2 2.7.0 in Ubuntu 8.04 In-Reply-To: <200806191820.01414.gambas@...1...> References: <1213880842.8228.1.camel@...1929...> <200806191820.01414.gambas@...1...> Message-ID: <1213897412.25032.2.camel@...1929...> Alarm returned now version 2.7.0 works well. I do not know what I have to work (I am sorry not to know because now works) Maybe I uninstalled some program? Boooh! However recompiling everything now goes! . Thanks to all. Bruno. Il giorno gio, 19/06/2008 alle 18.20 +0200, Benoit Minisini ha scritto: > On jeudi 19 juin 2008, bruno wrote: > > Hello All. > > > > When i launch Gambas 2.2.7.0 > > > > a message Box Appear with this Message: > > > > [11] unknown symbol 'border' in class 'container'. > > sidepanel.border_write.57 > > > > > > I use Ubuntu 8.0.4 > > > > > > P.S Gambas 2.2.4.1 Work OK. > > > > Someone has an Idea ???? > > > > > > Can you give more details? How you installed Gambas, what is the output of the > compilation process if you compiled it, and so on... Can't read minds yet! > > Note that the version numbers are 2.7.0 and 2.4.1. > > Regards, > From ron at ...1740... Thu Jun 19 20:12:43 2008 From: ron at ...1740... (Ron) Date: Thu, 19 Jun 2008 20:12:43 +0200 Subject: [Gambas-user] Combobox change event question Message-ID: <485AA19B.6070701@...1740...> Hi, the change event of a combobox is only triggered if a combobox is not set to read-only. So it detects only the content change of the textbox which is part of the combo box. If you have a box which is read-only you can only detect some activity via the clicked event, but then you also get an event when they don't select another value of course. Is this the way it should be? Regards, Ron. From gambas at ...1... Thu Jun 19 20:19:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 20:19:57 +0200 Subject: [Gambas-user] Combobox change event question In-Reply-To: <485AA19B.6070701@...1740...> References: <485AA19B.6070701@...1740...> Message-ID: <200806192019.57241.gambas@...1...> On jeudi 19 juin 2008, Ron wrote: > Hi, > > the change event of a combobox is only triggered if a combobox is not > set to read-only. > > So it detects only the content change of the textbox which is part of > the combo box. Yes. The Change event comes from its interal TextBox. It means that the text inside the TextBox has changed. > If you have a box which is read-only you can only detect some activity > via the clicked event, Yes. > but then you also get an event when they don't select another value of > course. I don't understand, what do you mean ? > > Is this the way it should be? Yes. -- Benoit Minisini From gambas at ...1... Thu Jun 19 20:20:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 20:20:27 +0200 Subject: [Gambas-user] Gambas review on italian magazine "Gnu-Linux Magazine" In-Reply-To: <485A66BF.70601@...1237...> References: <485A66BF.70601@...1237...> Message-ID: <200806192020.27033.gambas@...1...> On jeudi 19 juin 2008, Leonardo Miliani wrote: > I would like to inform all the community that on the copy of July 2008 > of the italian magazine "Gnu-Linux Magazine" there is a reviews of our > lovely Gambas :-) > > You can find the summary of the magazine here: > http://www.edmaster.it/?p=prodotti&idcat=3&idprod=5&idnum=89 > > Here is the traslation of the summary of the article: > SVILUPPO > * SIAMO TUTTI PROGRAMMATORI > Guida all?uso dell?IDE Gambas. Come Visual Basic ma Open Source > > DEVELOPMENT > * WE ARE ALL PROGRAMMERS > Guide to the use of Gambas IDE. Like Visual Basic but Open Source If you can scan the pages of the article, it would be cool. Just to see it, I cannot speak Italian! -- Benoit Minisini From marcos at ...1756... Thu Jun 19 20:14:43 2008 From: marcos at ...1756... (Marcos Antonio Pandolfo Jr) Date: Thu, 19 Jun 2008 15:14:43 -0300 Subject: [Gambas-user] error calling external function from c library Message-ID: <0c0101c8d238$5ad3f160$0100a8c0@...1757...> Hi Im using Centos 5 and Gambas 2.0.0 and when I call a external function in a C library this error occurs and Gambas crash with error #6.... EXTERN TEF_inicia(Resultado AS String, Funcao AS String, Valor AS String, CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS String, ParamAdic AS String) IN "libclisitef" EXEC "IniciaFuncaoSiTefInterativoA" DIM la AS String TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", "{MARCOS}", "{}") The variable "la" receive the return from function TEF_inicia. This is the error that appears in console: *** glibc detected *** teste: double free or corruption (!prev): 0x0989bed8 *** ======= Backtrace: ========= /lib/libc.so.6[0x9c2aa6] /lib/libc.so.6(cfree+0x90)[0x9c5fc0] teste[0x804b59f] teste[0x8069584] teste[0x806113c] teste[0x80617cb] /lib/libc.so.6(__libc_start_main+0xdc)[0x971dec] teste[0x804a5f1] ======= Memory map: ======== 001a8000-001a9000 r-xp 001a8000 00:00 0 [vdso] 001a9000-00289000 r-xp 00000000 fd:00 21541420 /usr/lib/libstdc++.so.6.0.8 00289000-0028c000 r-xp 000e0000 fd:00 21541420 /usr/lib/libstdc++.so.6.0.8 0028c000-0028e000 rwxp 000e3000 fd:00 21541420 /usr/lib/libstdc++.so.6.0.8 0028e000-00294000 rwxp 0028e000 00:00 0 007e8000-00818000 r-xp 00000000 fd:00 21541346 /usr/lib/liblcms.so.1.0.15 00818000-00819000 rwxp 00030000 fd:00 21541346 /usr/lib/liblcms.so.1.0.15 00819000-0081c000 rwxp 00819000 00:00 0 00849000-0085b000 r-xp 00000000 fd:00 21541417 /usr/lib/libXft.so.2.1.2 0085b000-0085c000 rwxp 00012000 fd:00 21541417 /usr/lib/libXft.so.2.1.2 0085e000-008c6000 r-xp 00000000 fd:00 21541348 /usr/lib/libmng.so.1.0.0 008c6000-008c9000 rwxp 00067000 fd:00 21541348 /usr/lib/libmng.so.1.0.0 0093a000-00953000 r-xp 00000000 fd:00 36339783 /lib/ld-2.5.so 00953000-00954000 r-xp 00019000 fd:00 36339783 /lib/ld-2.5.so 00954000-00955000 rwxp 0001a000 fd:00 36339783 /lib/ld-2.5.so 00957000-00959000 r-xp 00000000 fd:00 21536871 /usr/lib/libXau.so.6.0.0 00959000-0095a000 rwxp 00001000 fd:00 21536871 /usr/lib/libXau.so.6.0.0 0095c000-00a96000 r-xp 00000000 fd:00 36339785 /lib/libc-2.5.so 00a96000-00a98000 r-xp 0013a000 fd:00 36339785 /lib/libc-2.5.so 00a98000-00a99000 rwxp 0013c000 fd:00 36339785 /lib/libc-2.5.so 00a99000-00a9c000 rwxp 00a99000 00:00 0 00a9e000-00ac3000 r-xp 00000000 fd:00 36339805 /lib/libm-2.5.so 00ac3000-00ac4000 r-xp 00024000 fd:00 36339805 /lib/libm-2.5.so 00ac4000-00ac5000 rwxp 00025000 fd:00 36339805 /lib/libm-2.5.so 00ac7000-00ac9000 r-xp 00000000 fd:00 36339787 /lib/libdl-2.5.so 00ac9000-00aca000 r-xp 00001000 fd:00 36339787 /lib/libdl-2.5.so 00aca000-00acb000 rwxp 00002000 fd:00 36339787 /lib/libdl-2.5.so 00acd000-00ae0000 r-xp 00000000 fd:00 36339789 /lib/libpthread-2.5.so 00ae0000-00ae1000 r-xp 00012000 fd:00 36339789 /lib/libpthread-2.5.so 00ae1000-00ae2000 rwxp 00013000 fd:00 36339789 /lib/libpthread-2.5.so 00ae2000-00ae4000 rwxp 00ae2000 00:00 0 00ae6000-00af8000 r-xp 00000000 fd:00 21536867 /usr/lib/libz.so.1.2.3 00af8000-00af9000 rwxp 00011000 fd:00 21536867 /usr/lib/libz.so.1.2.3 00afb000-00b00000 r-xp 00000000 fd:00 21536872 /usr/lib/libXdmcp.so.6.0.0 00b00000-00b01000 rwxp 00004000 fd:00 21536872 /usr/lib/libXdmcp.so.6.0.0 00b03000-00c02000 r-xp 00000000 fd:00 21536873 /usr/lib/libX11.so.6.2.0 00c02000-00c06000 rwxp 000fe000 fd:00 21536873 /usr/lib/libX11.so.6.2.0 00c08000-00c17000 r-xp 00000000 fd:00 21537268 /usr/lib/libXext.so.6.4.0 00c17000-00c18000 rwxp 0000e000 fd:00 21537268 /usr/lib/libXext.so.6.4.0 00c1a000-00c97000 r-xp 00000000 fd:00 21536868 /usr/lib/libfreetype.so.6.3.10 00c97000-00c9a000 rwxp 0007d000 fd:00 21536868 /usr/lib/libfreetype.so.6.3.10 00c9c000-00cbb000 r-xp 00000000 fd:00 36339814 /lib/libexpat.so.0.5.0 00cbb000-00cbd000 rwxp 0001e000 fd:00 36339814 /lib/libexpat.so.0.5.0 00cbf000-00ce6000 r-xp 00000000 fd:00 21536869 /usr/lib/libfontconfig.so.1.1.0 00ce6000-00cee000 rwxp 00027000 fd:00 21536869 /usr/lib/libfontconfig.so.1.1.0 00cf0000-00cf8000 r-xp 00000000 fd:00 21536874 /usr/lib/libXrender.so.1.3.0 00cf8000-00cf9000 rwxp 00007000 fd:00 21536874 /usr/lib/libXrender.so.1.3.0 00cfb000-00d20000 r-xp 00000000 fd:00 21536870 /usr/lib/libpng12.so.0.10.0 00d20000-00d21000 rwxp 00024000 fd:00 21536870 /usr/lib/libpng12.so.0.10.0 00d23000-00d25000 r-xp 00000000 fd:00 21537301 /usr/lib/libXinerama.so.1.0.0 00d25000-00d26000 rwxp 00001000 fd:00 21537301 /usr/lib/libXinerama.so.1.0.0 00d28000-00d2c000 r-xp 00000000 fd:00 21537458 /usr/lib/libXfixes.so.3.1.0 00d2c000-00d2d000 rwxp 00003000 fd:00 21537458 /usr/lib/libXfixes.so.3.1.0 00d2f000-00d32000 r-xp 00000000 fd:00 21537382 /usr/lib/libXrandr.so.2.0.0 00d32000-00d33000 rwxp 00002000 fd:00 21537382 /usr/lib/libXrandr.so.2.0.0 00d35000-00d3e000 r-xp 00000000 fd:00 21537461 /usr/lib/libXcursor.so.1.0.2 00d3e000-00d3f000 rwxp 00008000 fd:00 21537461 /usr/lib/libXcursor.so.1.0.2 00d4c000-00d6d000 r-xp 00000000 fd:00 21541344 /usr/lib/libjpeg.so.62.0.0 00d6d000-00d6e000 rwxp 00020000 fd:00 21541344 /usr/lib/libjpeg.so.62.0.0 00d70000-00d87000 r-xp 00000000 fd:00 21541103 /usr/lib/libICE.so.6.3.0 00d87000-00d88000 rwxp 00016000 fd:00 21541103 /usr/lib/libICE.so.6.3.0 00d88000-00d8a000 rwxp 00d88000 00:00 0 00d8c000-00d97000 r-xp 00000000 fd:00 36339904 /lib/libgcc_s-4.1.1-20070105.so.1 00d97000-00d98000 rwxp 0000a000 fd:00 36339904 /lib/libgcc_s-4.1.1-20070105.so.1 00d9a000-00da2000 r-xp 00000000 fd:00 21541263 /usr/lib/libSM.so.6.0.0 00da2000-00da3000 rwxp 00007000 fd:00 21541263 /usr/lib/libSM.so.6.0.0 00fdb000-00fe4000 r-xp 00000000 fd:00 36339752 /lib/libnss_files-2.5.so 00fe4000-00fe5000 r-xp 00008000 fd:00 36339752 /lib/libnss_files-2.5.so 00fe5000-00fe6000 rwxp 00009000 fd:00 36339752 /lib/libnss_files-2.5.so 02000000-02837000 r-xp 00000000 fd:00 22021333 /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.6 02837000-02878000 rwxp 00837000 fd:00 22021333 /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.6 02878000-0287b000 rwxp 02878000 00:00 0 08048000-0806f000 r-xp 00000000 fd:00 21536857 /usr/local/bin/gbx2 0806f000-08074000 rw-p 00027000 fd:00 21536857 /usr/local/bin/gbx2 08074000-08076000 rw-p 08074000 00:00 0 0988d000-098ae000 rw-p 0988d000 00:00 0 b7b00000-b7b21000 rw-p b7b00000 00:00 0 b7b21000-b7c00000 ---p b7b21000 00:00 0 b7ce8000-b7ee8000 r--p 00000000 fd:00 21535779 /usr/lib/locale/locale-archive b7ee8000-b7eef000 rw-p b7ee8000 00:00 0 b7efd000-b7efe000 rw-p b7efd000 00:00 0 b7efe000-b7f05000 r--s 00000000 fd:00 21595010 /usr/lib/gconv/gconv-modules.cache b7f05000-b7f07000 rw-p b7f05000 00:00 0 bfaf3000-bfb08000 rwxp bfaf3000 00:00 0 [stack] bfb08000-bfb09000 rw-p bfb08000 00:00 0 Thanks Abra?os Marcos Pandolfo Jr ADS Telecom From gambas at ...1... Thu Jun 19 20:36:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 20:36:01 +0200 Subject: [Gambas-user] error calling external function from c library In-Reply-To: <0c0101c8d238$5ad3f160$0100a8c0@...1757...> References: <0c0101c8d238$5ad3f160$0100a8c0@...1757...> Message-ID: <200806192036.01536.gambas@...1...> On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote: > Hi > > Im using Centos 5 and Gambas 2.0.0 and when I call a external function in > a C library this error occurs and Gambas crash with error #6.... > > EXTERN TEF_inicia(Resultado AS String, Funcao AS String, Valor AS String, > CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS > String, ParamAdic AS String) IN "libclisitef" EXEC > "IniciaFuncaoSiTefInterativoA" > > DIM la AS String > TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", > "{MARCOS}", "{}") > The variable "la" receive the return from function TEF_inicia. > You incorrectly use the extern function. Did you read the documentation about EXTERN declaration on the wiki? If the first argument of the called function is a 'char **', you cannot declare it as String. You must allocate some memory and send the pointer to this allocation. I will post an example on the wiki page. Regards, -- Benoit Minisini From ron at ...1740... Thu Jun 19 20:47:19 2008 From: ron at ...1740... (Ron) Date: Thu, 19 Jun 2008 20:47:19 +0200 Subject: [Gambas-user] Combobox change event question In-Reply-To: <200806192019.57241.gambas@...1...> References: <485AA19B.6070701@...1740...> <200806192019.57241.gambas@...1...> Message-ID: <485AA9B7.8070001@...1740...> Benoit Minisini schreef: > On jeudi 19 juin 2008, Ron wrote: > >> Hi, >> >> the change event of a combobox is only triggered if a combobox is not >> set to read-only. >> >> So it detects only the content change of the textbox which is part of >> the combo box. >> > > Yes. The Change event comes from its interal TextBox. It means that the text > inside the TextBox has changed. > > >> If you have a box which is read-only you can only detect some activity >> via the clicked event, >> > > Yes. > > >> but then you also get an event when they don't select another value of >> course. >> > > I don't understand, what do you mean ? > > Well, if a user clicked the combobox but after looking at the list decides to select the entry that was selected already before he clicked it, you get a clicked event, but no change occured, thats why I thought the changed event was for that, butit isn't as you pointed out. Well you can store and compare both string values afterwards, as a work around. Ok thanks. Regards, Ron. From gambas at ...1... Thu Jun 19 20:53:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 20:53:18 +0200 Subject: [Gambas-user] Combobox change event question In-Reply-To: <485AA9B7.8070001@...1740...> References: <485AA19B.6070701@...1740...> <200806192019.57241.gambas@...1...> <485AA9B7.8070001@...1740...> Message-ID: <200806192053.18419.gambas@...1...> On jeudi 19 juin 2008, Ron wrote: > Benoit Minisini schreef: > > On jeudi 19 juin 2008, Ron wrote: > >> Hi, > >> > >> the change event of a combobox is only triggered if a combobox is not > >> set to read-only. > >> > >> So it detects only the content change of the textbox which is part of > >> the combo box. > > > > Yes. The Change event comes from its interal TextBox. It means that the > > text inside the TextBox has changed. > > > >> If you have a box which is read-only you can only detect some activity > >> via the clicked event, > > > > Yes. > > > >> but then you also get an event when they don't select another value of > >> course. > > > > I don't understand, what do you mean ? > > Well, if a user clicked the combobox but after looking at the list > decides to select the entry that was selected already before he clicked it, > you get a clicked event, but no change occured, thats why I thought the > changed event was for that, butit isn't as you pointed out. > > Well you can store and compare both string values afterwards, as a work > around. > > Ok thanks. > > Regards, > Ron. > Do you use gb.qt or gb.gtk ? -- Benoit Minisini From ron at ...1740... Thu Jun 19 20:56:29 2008 From: ron at ...1740... (Ron) Date: Thu, 19 Jun 2008 20:56:29 +0200 Subject: [Gambas-user] Combobox change event question In-Reply-To: <200806192053.18419.gambas@...1...> References: <485AA19B.6070701@...1740...> <200806192019.57241.gambas@...1...> <485AA9B7.8070001@...1740...> <200806192053.18419.gambas@...1...> Message-ID: <485AABDD.4070305@...1740...> Benoit Minisini schreef: > On jeudi 19 juin 2008, Ron wrote: > >> Benoit Minisini schreef: >> >>> On jeudi 19 juin 2008, Ron wrote: >>> >>>> Hi, >>>> >>>> the change event of a combobox is only triggered if a combobox is not >>>> set to read-only. >>>> >>>> So it detects only the content change of the textbox which is part of >>>> the combo box. >>>> >>> Yes. The Change event comes from its interal TextBox. It means that the >>> text inside the TextBox has changed. >>> >>> >>>> If you have a box which is read-only you can only detect some activity >>>> via the clicked event, >>>> >>> Yes. >>> >>> >>>> but then you also get an event when they don't select another value of >>>> course. >>>> >>> I don't understand, what do you mean ? >>> >> Well, if a user clicked the combobox but after looking at the list >> decides to select the entry that was selected already before he clicked it, >> you get a clicked event, but no change occured, thats why I thought the >> changed event was for that, butit isn't as you pointed out. >> >> Well you can store and compare both string values afterwards, as a work >> around. >> >> Ok thanks. >> >> Regards, >> Ron. >> >> > > Do you use gb.qt or gb.gtk ? > > Benoit, gb.qt and gambas 2.7.0 Regards, Ron. From marcos at ...1756... Thu Jun 19 21:16:36 2008 From: marcos at ...1756... (Marcos Antonio Pandolfo Jr) Date: Thu, 19 Jun 2008 16:16:36 -0300 Subject: [Gambas-user] error calling external function from c library References: <0c0101c8d238$5ad3f160$0100a8c0@...1757...> <200806192036.01536.gambas@...1...> Message-ID: <0c3001c8d241$02e8fd70$0100a8c0@...1757...> In gambas 2.7.0 appears Illegal instruction in the call of function TEF_inicia: EXTERN TEF_inicia(Resultado AS Pointer, Funcao AS String, Valor AS String, CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS String, ParamAdic AS String) IN "libclisitef" EXEC "IniciaFuncaoSiTefInterativoA" PUBLIC SUB Main() DIM la AS Pointer DIM lala AS String la = Alloc(4) TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", "{MARCOS}", "{}") 'gambas say illegal instruction in this line lala = StrPtr(la) Free(la) PRINT lala Now is the call correct ? Thanks so much for the help and sorry my poor english. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, June 19, 2008 3:36 PM Subject: Re: [Gambas-user] error calling external function from c library > On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote: > > Hi > > > > Im using Centos 5 and Gambas 2.0.0 and when I call a external function in > > a C library this error occurs and Gambas crash with error #6.... > > > > EXTERN TEF_inicia(Resultado AS String, Funcao AS String, Valor AS String, > > CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS > > String, ParamAdic AS String) IN "libclisitef" EXEC > > "IniciaFuncaoSiTefInterativoA" > > > > DIM la AS String > > TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", > > "{MARCOS}", "{}") > > The variable "la" receive the return from function TEF_inicia. > > > > You incorrectly use the extern function. Did you read the documentation about > EXTERN declaration on the wiki? If the first argument of the called function > is a 'char **', you cannot declare it as String. You must allocate some > memory and send the pointer to this allocation. I will post an example on the > wiki page. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Thu Jun 19 21:47:48 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 19 Jun 2008 14:47:48 -0500 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools Message-ID: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> I've been writing gambas for a while now... continuosly developing 2 applications. I'd like to distribute my software in a way that the end user can compile in a way similar to how the gambas tarball compiles. ./configure && make && make install instead of distributing binaries. Does anyone have a clue how this is done? From rospolosco at ...152... Thu Jun 19 23:04:41 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 19 Jun 2008 23:04:41 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> Message-ID: <200806192304.41941.rospolosco@...152...> Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: > I've been writing gambas for a while now... continuosly developing 2 > applications. > I'd like to distribute my software in a way that the end user can > compile in a way similar to how the gambas tarball compiles. > > ./configure && make && make install > > instead of distributing binaries. > > Does anyone have a clue how this is done? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user In the IDE menu go to: Project --> Make --> Installation Package and then select "Autotools" when the wizard asks for the type of package you want to create. Stefano From m0e.lnx at ...626... Thu Jun 19 23:34:32 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 19 Jun 2008 16:34:32 -0500 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806192304.41941.rospolosco@...152...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806192304.41941.rospolosco@...152...> Message-ID: <1f1e8c1b0806191434k435b6f07i995c30dac175359@...627...> Sweet mother of God!... I did not know that Very nice. Thank you for providing such a kool way to do this On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri wrote: > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: >> I've been writing gambas for a while now... continuosly developing 2 >> applications. >> I'd like to distribute my software in a way that the end user can >> compile in a way similar to how the gambas tarball compiles. >> >> ./configure && make && make install >> >> instead of distributing binaries. >> >> Does anyone have a clue how this is done? >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > In the IDE menu go to: > > Project --> Make --> Installation Package > > and then select "Autotools" when the wizard asks > for the type of package you want to create. > > Stefano > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Thu Jun 19 23:45:07 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 19 Jun 2008 23:45:07 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <1f1e8c1b0806191434k435b6f07i995c30dac175359@...627...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806192304.41941.rospolosco@...152...> <1f1e8c1b0806191434k435b6f07i995c30dac175359@...627...> Message-ID: <200806192345.07715.rospolosco@...152...> Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: > Sweet mother of God!... > > > I did not know that > > Very nice. Thank you for providing such a kool way to do this > Not me. Thanks Benoit and Laurent Carlier. > On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri wrote: > > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: > >> I've been writing gambas for a while now... continuosly developing 2 > >> applications. > >> I'd like to distribute my software in a way that the end user can > >> compile in a way similar to how the gambas tarball compiles. > >> > >> ./configure && make && make install > >> > >> instead of distributing binaries. > >> > >> Does anyone have a clue how this is done? > >> > >> ------------------------------------------------------------------------ > >>- Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/index.php > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > In the IDE menu go to: > > > > Project --> Make --> Installation Package > > > > and then select "Autotools" when the wizard asks > > for the type of package you want to create. > > > > Stefano > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Thu Jun 19 23:52:01 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 19 Jun 2008 16:52:01 -0500 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806192345.07715.rospolosco@...152...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806192304.41941.rospolosco@...152...> <1f1e8c1b0806191434k435b6f07i995c30dac175359@...627...> <200806192345.07715.rospolosco@...152...> Message-ID: <1f1e8c1b0806191452n1bbe3600q913160b498aafad@...627...> One minor problem though... I just did my application with this after some testing... here are the results running configure without arguments does not install the binary to the system running it with the --prefix=/usr argument results in a new directory in /usr called usr... so the binary really ends up in /usr/usr/vpackager.gambas How do I fix this? On Thu, Jun 19, 2008 at 4:45 PM, Stefano Palmeri wrote: > Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: >> Sweet mother of God!... >> >> >> I did not know that >> >> Very nice. Thank you for providing such a kool way to do this >> > > Not me. Thanks Benoit and Laurent Carlier. > > >> On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri > wrote: >> > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: >> >> I've been writing gambas for a while now... continuosly developing 2 >> >> applications. >> >> I'd like to distribute my software in a way that the end user can >> >> compile in a way similar to how the gambas tarball compiles. >> >> >> >> ./configure && make && make install >> >> >> >> instead of distributing binaries. >> >> >> >> Does anyone have a clue how this is done? >> >> >> >> ------------------------------------------------------------------------ >> >>- Check out the new SourceForge.net Marketplace. >> >> It's the best place to buy or sell services for >> >> just about anything Open Source. >> >> http://sourceforge.net/services/buy/index.php >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > In the IDE menu go to: >> > >> > Project --> Make --> Installation Package >> > >> > and then select "Autotools" when the wizard asks >> > for the type of package you want to create. >> > >> > Stefano >> > >> > ------------------------------------------------------------------------- >> > Check out the new SourceForge.net Marketplace. >> > It's the best place to buy or sell services for >> > just about anything Open Source. >> > http://sourceforge.net/services/buy/index.php >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jun 19 23:53:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jun 2008 23:53:41 +0200 Subject: [Gambas-user] error calling external function from c library In-Reply-To: <0c3001c8d241$02e8fd70$0100a8c0@...1757...> References: <0c0101c8d238$5ad3f160$0100a8c0@...1757...> <200806192036.01536.gambas@...1...> <0c3001c8d241$02e8fd70$0100a8c0@...1757...> Message-ID: <200806192353.41341.gambas@...1...> On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote: > In gambas 2.7.0 appears Illegal instruction in the call of function > TEF_inicia: > > EXTERN TEF_inicia(Resultado AS Pointer, Funcao AS String, Valor AS String, > CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS > String, ParamAdic AS String) IN "libclisitef" EXEC > "IniciaFuncaoSiTefInterativoA" > > PUBLIC SUB Main() > DIM la AS Pointer > DIM lala AS String > > la = Alloc(4) > TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", > "{MARCOS}", "{}") 'gambas say illegal instruction in this line > lala = StrPtr(la) > Free(la) > PRINT lala > > Now is the call correct ? > > Thanks so much for the help and sorry my poor english. > > I don't know: you must ensure that the EXTERN declaration exactly matches the binary interface of the called function (i.e. its C declaration), and the called function may crash too, not Gambas itself. -- Benoit Minisini From rterry at ...1822... Thu Jun 19 14:58:08 2008 From: rterry at ...1822... (richard terry) Date: Thu, 19 Jun 2008 22:58:08 +1000 Subject: [Gambas-user] Difficulty interpreting listview documentation Message-ID: <200806192258.08546.rterry@...1822...> I'm pretty cretinous at interpreting docs. e.g: DIM hListView AS ListView DIM hListViewItem AS .ListViewItem hListViewItem = hListView [ Key AS String ] Just how does one use .ListViewItem, because if you copy and past the above example into code, the interpretor bauks at the .ListViewItem. Any help appreciated. Richard From rterry at ...1822... Thu Jun 19 13:24:17 2008 From: rterry at ...1822... (richard terry) Date: Thu, 19 Jun 2008 21:24:17 +1000 Subject: [Gambas-user] Tiny feature request for Heirachy tree Message-ID: <200806192124.17878.rterry@...1822...> What: A search text box to search the tree Rationale: When one has dozens and dozens of controls on the form one can "lose" a control in the IDE gui by doing something inadvertant as setting a x/y value to a inappropriately large number, but by clicking on it in the heirachy, one my then get the focus back, change the property and restitute the situation. Dosn't happen often, but when it does, boy is it hard to find where the control is. Regards Richard From rterry at ...1822... Fri Jun 20 01:06:01 2008 From: rterry at ...1822... (richard terry) Date: Fri, 20 Jun 2008 09:06:01 +1000 Subject: [Gambas-user] Search not finding commented out text Message-ID: <200806200906.01526.rterry@...1822...> I sometimes comment out a line whilst developing, meaning to come back to it. I've noticed that the search function then doesn't find the text. Is this intentional or could it be an option to search within commented text as well (Build I think 1413 at the moment). Richard From marcos at ...1756... Fri Jun 20 03:15:15 2008 From: marcos at ...1756... (Marcos Antonio Pandolfo Jr) Date: Thu, 19 Jun 2008 22:15:15 -0300 Subject: [Gambas-user] error calling external function from c library References: <0c0101c8d238$5ad3f160$0100a8c0@...1757...><200806192036.01536.gambas@...1...><0c3001c8d241$02e8fd70$0100a8c0@...1757...> <200806192353.41341.gambas@...1...> Message-ID: <0df001c8d273$189885a0$0100a8c0@...1757...> Benoit Thanks soo much for your help.... I attach a example writed in C that contains the call of some functions in this library. The function that I have problem is the ContinuaFuncaoSiTefInterativo... I believe that you seeing this example you resolve the problem.... I dont have experience to visualize the solution..... If you need I can send the libraries.... The documentation of these libraries are writted in portugues and I think that will be useless to you. Regards ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, June 19, 2008 6:53 PM Subject: Re: [Gambas-user] error calling external function from c library > On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote: > > In gambas 2.7.0 appears Illegal instruction in the call of function > > TEF_inicia: > > > > EXTERN TEF_inicia(Resultado AS Pointer, Funcao AS String, Valor AS String, > > CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS > > String, ParamAdic AS String) IN "libclisitef" EXEC > > "IniciaFuncaoSiTefInterativoA" > > > > PUBLIC SUB Main() > > DIM la AS Pointer > > DIM lala AS String > > > > la = Alloc(4) > > TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", > > "{MARCOS}", "{}") 'gambas say illegal instruction in this line > > lala = StrPtr(la) > > Free(la) > > PRINT lala > > > > Now is the call correct ? > > > > Thanks so much for the help and sorry my poor english. > > > > > > I don't know: you must ensure that the EXTERN declaration exactly matches the > binary interface of the called function (i.e. its C declaration), and the > called function may crash too, not Gambas itself. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > 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: testedllia.c Type: application/octet-stream Size: 14163 bytes Desc: not available URL: From rospolosco at ...152... Fri Jun 20 10:00:24 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Jun 2008 10:00:24 +0200 Subject: [Gambas-user] Search not finding commented out text In-Reply-To: <200806200906.01526.rterry@...1822...> References: <200806200906.01526.rterry@...1822...> Message-ID: <200806201000.25129.rospolosco@...152...> Il venerd? 20 giugno 2008 01:06:01 richard terry ha scritto: > I sometimes comment out a line whilst developing, meaning to come back to > it. I've noticed that the search function then doesn't find the text. > > Is this intentional or could it be an option to search within commented > text as well (Build I think 1413 at the moment). > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Did you check the "search in comment" tool button? Attached screenshot. Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: search_in_comments.png Type: image/png Size: 5619 bytes Desc: not available URL: From rospolosco at ...152... Fri Jun 20 10:17:01 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Jun 2008 10:17:01 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <1f1e8c1b0806191452n1bbe3600q913160b498aafad@...627...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806192345.07715.rospolosco@...152...> <1f1e8c1b0806191452n1bbe3600q913160b498aafad@...627...> Message-ID: <200806201017.02089.rospolosco@...152...> Il gioved? 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > One minor problem though... I just did my application with this > after some testing... here are the results > > running configure without arguments does not install the binary to the > system > > running it with the --prefix=/usr argument results in a new directory > in /usr called usr... so the binary really ends up in > /usr/usr/vpackager.gambas > > How do I fix this? > I confirm. This seems to be a bug. If I run ./configure without arguments then it installs the binary in: /usr/local/usr/local/bin/myprogram.gambas. instead of the expected: /usr/local/bin/myprogram.gambas You have to wait for the boss fix ;-) Stefano > On Thu, Jun 19, 2008 at 4:45 PM, Stefano Palmeri wrote: > > Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: > >> Sweet mother of God!... > >> > >> > >> I did not know that > >> > >> Very nice. Thank you for providing such a kool way to do this > > > > Not me. Thanks Benoit and Laurent Carlier. > > > >> On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri > > > > wrote: > >> > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: > >> >> I've been writing gambas for a while now... continuosly developing 2 > >> >> applications. > >> >> I'd like to distribute my software in a way that the end user can > >> >> compile in a way similar to how the gambas tarball compiles. > >> >> > >> >> ./configure && make && make install > >> >> > >> >> instead of distributing binaries. > >> >> > >> >> Does anyone have a clue how this is done? > >> >> > >> >> --------------------------------------------------------------------- > >> >>--- - Check out the new SourceForge.net Marketplace. > >> >> It's the best place to buy or sell services for > >> >> just about anything Open Source. > >> >> http://sourceforge.net/services/buy/index.php > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > In the IDE menu go to: > >> > > >> > Project --> Make --> Installation Package > >> > > >> > and then select "Autotools" when the wizard asks > >> > for the type of package you want to create. > >> > > >> > Stefano > >> > > >> > ---------------------------------------------------------------------- > >> >--- Check out the new SourceForge.net Marketplace. > >> > It's the best place to buy or sell services for > >> > just about anything Open Source. > >> > http://sourceforge.net/services/buy/index.php > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------ > >>- Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/index.php > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From patrik at ...1931... Fri Jun 20 11:10:11 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Fri, 20 Jun 2008 11:10:11 +0200 Subject: [Gambas-user] Music.Length Message-ID: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> Hello, I'm about to port an old Delphiapp to a nicer environment and I'm looking at Gambas to do the work, Gambas is realy nice! One function I used in Delphi was to get the length of the sound played in TMediaPlayer, since I would like things done after 80%, 90%... Music.Pos tells me where I am, but I can not found a function that tells me how far I have to go. Is there a solution to this? -- Patrik Karlsson From gambas at ...1... Fri Jun 20 12:06:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 12:06:06 +0200 Subject: [Gambas-user] Difficulty interpreting listview documentation In-Reply-To: <200806192258.08546.rterry@...1822...> References: <200806192258.08546.rterry@...1822...> Message-ID: <200806201206.06625.gambas@...1...> On jeudi 19 juin 2008, richard terry wrote: > I'm pretty cretinous at interpreting docs. > > e.g: > > DIM hListView AS ListView > DIM hListViewItem AS .ListViewItem > > hListViewItem = hListView [ Key AS String ] > > Just how does one use .ListViewItem, because if you copy and past the > above example into code, the interpretor bauks at the .ListViewItem. > > Any help appreciated. > > Richard > The documentation structure is automatically generated. But it is not clever enough to understand that an intermediate virtual class like ".ListViewItem" is not visible in code. So when you see something like that, it means that you must write the code this way: hListView[Key].Property hListView[Key].Method() You cannot just put hListView[Key] into a variable. You must use it immediately with a property or a method. The only exception is the WITH instruction. You can do: WITH hListView[Key] ... END WITH Because WITH is sort of syntactic sugar. Regards, -- Benoit Minisini From gambas at ...1... Fri Jun 20 12:10:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 12:10:04 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> Message-ID: <200806201210.04181.gambas@...1...> On vendredi 20 juin 2008, Patrik Karlsson wrote: > Hello, I'm about to port an old Delphiapp to a nicer environment and > I'm looking at Gambas to do the work, Gambas is realy nice! > > One function I used in Delphi was to get the length of the sound > played in TMediaPlayer, since I would like things done after 80%, > 90%... > Music.Pos tells me where I am, but I can not found a function that > tells me how far I have to go. > > Is there a solution to this? Alas, if I remember correctly, the SDL library has no method to know the length of the music! I don't know if it has changed recently, I will check... -- Benoit Minisini From lordheavym at ...626... Fri Jun 20 12:25:08 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 20 Jun 2008 12:25:08 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806201017.02089.rospolosco@...152...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <1f1e8c1b0806191452n1bbe3600q913160b498aafad@...627...> <200806201017.02089.rospolosco@...152...> Message-ID: <200806201225.08856.lordheavym@...626...> Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez ?crit?: > Il gioved? 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > > One minor problem though... I just did my application with this > > after some testing... here are the results > > > > running configure without arguments does not install the binary to the > > system > > > > running it with the --prefix=/usr argument results in a new directory > > in /usr called usr... so the binary really ends up in > > /usr/usr/vpackager.gambas > > > > How do I fix this? > > I confirm. This seems to be a bug. If I run > ./configure without arguments then it installs > the binary in: > > /usr/local/usr/local/bin/myprogram.gambas. > > instead of the expected: > > /usr/local/bin/myprogram.gambas > > You have to wait for the boss fix ;-) > > Stefano > > > On Thu, Jun 19, 2008 at 4:45 PM, Stefano Palmeri > > wrote: > > > Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: > > >> Sweet mother of God!... > > >> > > >> > > >> I did not know that > > >> > > >> Very nice. Thank you for providing such a kool way to do this > > > > > > Not me. Thanks Benoit and Laurent Carlier. > > > > > >> On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri > > >> > > > > > > wrote: > > >> > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: > > >> >> I've been writing gambas for a while now... continuosly developing > > >> >> 2 applications. > > >> >> I'd like to distribute my software in a way that the end user can > > >> >> compile in a way similar to how the gambas tarball compiles. > > >> >> > > >> >> ./configure && make && make install > > >> >> > > >> >> instead of distributing binaries. > > >> >> > > >> >> Does anyone have a clue how this is done? > > >> >> > > >> >> ------------------------------------------------------------------- > > >> >>-- --- - Check out the new SourceForge.net Marketplace. > > >> >> It's the best place to buy or sell services for > > >> >> just about anything Open Source. > > >> >> http://sourceforge.net/services/buy/index.php > > >> >> _______________________________________________ > > >> >> Gambas-user mailing list > > >> >> Gambas-user at lists.sourceforge.net > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > In the IDE menu go to: > > >> > > > >> > Project --> Make --> Installation Package > > >> > > > >> > and then select "Autotools" when the wizard asks > > >> > for the type of package you want to create. > > >> > > > >> > Stefano > > >> > > > >> > -------------------------------------------------------------------- > > >> >-- --- Check out the new SourceForge.net Marketplace. > > >> > It's the best place to buy or sell services for > > >> > just about anything Open Source. > > >> > http://sourceforge.net/services/buy/index.php > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> ---------------------------------------------------------------------- > > >>-- - Check out the new SourceForge.net Marketplace. > > >> It's the best place to buy or sell services for > > >> just about anything Open Source. > > >> http://sourceforge.net/services/buy/index.php > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks for the report, it should be fixed in svn commit 1419. Gambas executable is saved in sbin dir and take care of prefix. ++ From gambas at ...1... Fri Jun 20 12:41:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 12:41:48 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201210.04181.gambas@...1...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> Message-ID: <200806201241.48939.gambas@...1...> On vendredi 20 juin 2008, Benoit Minisini wrote: > On vendredi 20 juin 2008, Patrik Karlsson wrote: > > Hello, I'm about to port an old Delphiapp to a nicer environment and > > I'm looking at Gambas to do the work, Gambas is realy nice! > > > > One function I used in Delphi was to get the length of the sound > > played in TMediaPlayer, since I would like things done after 80%, > > 90%... > > Music.Pos tells me where I am, but I can not found a function that > > tells me how far I have to go. > > > > Is there a solution to this? > > Alas, if I remember correctly, the SDL library has no method to know the > length of the music! I don't know if it has changed recently, I will > check... Apparently, SDL cannot extract the audio length from some formats, like MP3 with a variable bitrate stream. I don't know why apparently the length of the audio is not encoded in the file header... -- Benoit Minisini From jaap_cramer at ...67... Fri Jun 20 12:49:40 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Fri, 20 Jun 2008 12:49:40 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201241.48939.gambas@...1...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> Message-ID: In the GambasDoc is an example on how to get information of a *.wav file, including duration. See: http://gambasdoc.org/help/lang/read?show Maybe useful? On Fri, 2008-06-20 at 12:41 +0200, Benoit Minisini wrote: > On vendredi 20 juin 2008, Benoit Minisini wrote: > > On vendredi 20 juin 2008, Patrik Karlsson wrote: > > > Hello, I'm about to port an old Delphiapp to a nicer environment and > > > I'm looking at Gambas to do the work, Gambas is realy nice! > > > > > > One function I used in Delphi was to get the length of the sound > > > played in TMediaPlayer, since I would like things done after 80%, > > > 90%... > > > Music.Pos tells me where I am, but I can not found a function that > > > tells me how far I have to go. > > > > > > Is there a solution to this? > > > > Alas, if I remember correctly, the SDL library has no method to know the > > length of the music! I don't know if it has changed recently, I will > > check... > > Apparently, SDL cannot extract the audio length from some formats, like MP3 > with a variable bitrate stream. > > I don't know why apparently the length of the audio is not encoded in the file > header... > From patrik at ...1931... Fri Jun 20 13:09:34 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Fri, 20 Jun 2008 13:09:34 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201241.48939.gambas@...1...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> Message-ID: <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> 2008/6/20 Benoit Minisini : > I don't know why apparently the length of the audio is not encoded in the file > header... Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found "There is no main file header in an MPEG audio file. An MPEG audio file is built up from a succession of smaller parts called frames. A frame is a datablock with its own header and audio information. In the case of Layer I or Layer II, frames are some totally independent items, so you can cut any part of MPEG file and play it correctly. The player will then play the music starting to the first plain valid frame founded. However, in the case of Layer III, frames are not always independant. Due to the possible use of the "byte reservoir", wich is a kind of buffer, frames are often dependent of each other. In the worst case, 9 frames may be needed before beeing able to decode one frame." -- Patrik Karlsson From smiefert at ...784... Fri Jun 20 13:17:56 2008 From: smiefert at ...784... (Stefan Miefert) Date: Fri, 20 Jun 2008 13:17:56 +0200 Subject: [Gambas-user] Tableview select row? Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4CD0@...1899...> How can i select a specified row havening the first field a specified value? I use a public sub TBLview_Data(Row as integer, Column as integer) RESdata.MoveTo(Row) TBLview.Data.text = RESdata[RESdata.fields][column].name] End How can I set a entry as selected?!? From patrik at ...1931... Fri Jun 20 13:22:54 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Fri, 20 Jun 2008 13:22:54 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> Message-ID: <577069a50806200422o4dd18d05la0c3cb1fca4c4919@...627...> 2008/6/20 Jaap Cramer : > In the GambasDoc is an example on how to get information of a *.wav > file, including duration. See: http://gambasdoc.org/help/lang/read?show > > Maybe useful? Yes it might, thank you! Maybe I just convert the mp3s to wav since it's only "internal" files for SoundFX. Or, I define the length of each file manually, or calculate the time, they have CBR. -- Patrik Karlsson From gambas at ...1... Fri Jun 20 13:24:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 13:24:11 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201241.48939.gambas@...1...> <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> Message-ID: <200806201324.11728.gambas@...1...> On vendredi 20 juin 2008, Patrik Karlsson wrote: > 2008/6/20 Benoit Minisini : > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There is no main file header in an MPEG audio file. An MPEG audio > file is built up from a succession of smaller parts called frames. A > frame is a datablock with its own header and audio information. > In the case of Layer I or Layer II, frames are some totally > independent items, so you can cut any part of MPEG file and play it > correctly. The player will then play the music starting to the first > plain valid frame founded. However, in the case of Layer III, frames > are not always independant. Due to the possible use of the "byte > reservoir", wich is a kind of buffer, frames are often dependent of > each other. In the worst case, 9 frames may be needed before beeing > able to decode one frame." Hopefully, there is http://developer.kde.org/~wheeler/taglib.html Maybe a component could be made from this library to get meta information about audio files. -- Benoit Minisini From rospolosco at ...152... Fri Jun 20 13:25:03 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Jun 2008 13:25:03 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201241.48939.gambas@...1...> <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> Message-ID: <200806201325.04469.rospolosco@...152...> Il venerd? 20 giugno 2008 13:09:34 Patrik Karlsson ha scritto: > 2008/6/20 Benoit Minisini : > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There is no main file header in an MPEG audio file. An MPEG audio > file is built up from a succession of smaller parts called frames. A > frame is a datablock with its own header and audio information. > In the case of Layer I or Layer II, frames are some totally > independent items, so you can cut any part of MPEG file and play it > correctly. The player will then play the music starting to the first > plain valid frame founded. However, in the case of Layer III, frames > are not always independant. Due to the possible use of the "byte > reservoir", wich is a kind of buffer, frames are often dependent of > each other. In the worst case, 9 frames may be needed before beeing > able to decode one frame." If you have "mp3info" installed in your system you can get the length: SHELL "mp3info -x " & "pathtofile.mp3" & " | grep 'Length:' | awk '{print $2}'" TO sString Stefano From rospolosco at ...152... Fri Jun 20 13:28:11 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Jun 2008 13:28:11 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806201225.08856.lordheavym@...626...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806201017.02089.rospolosco@...152...> <200806201225.08856.lordheavym@...626...> Message-ID: <200806201328.11722.rospolosco@...152...> Il venerd? 20 giugno 2008 12:25:08 Laurent Carlier ha scritto: > Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez ?crit?: > > Il gioved? 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > > > One minor problem though... I just did my application with this > > > after some testing... here are the results > > > > > > running configure without arguments does not install the binary to the > > > system > > > > > > running it with the --prefix=/usr argument results in a new directory > > > in /usr called usr... so the binary really ends up in > > > /usr/usr/vpackager.gambas > > > > > > How do I fix this? > > > > I confirm. This seems to be a bug. If I run > > ./configure without arguments then it installs > > the binary in: > > > > /usr/local/usr/local/bin/myprogram.gambas. > > > > instead of the expected: > > > > /usr/local/bin/myprogram.gambas > > > > You have to wait for the boss fix ;-) > > > > Stefano > > > > > On Thu, Jun 19, 2008 at 4:45 PM, Stefano Palmeri > > > > > > > wrote: > > > > Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: > > > >> Sweet mother of God!... > > > >> > > > >> > > > >> I did not know that > > > >> > > > >> Very nice. Thank you for providing such a kool way to do this > > > > > > > > Not me. Thanks Benoit and Laurent Carlier. > > > > > > > >> On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri > > > >> > > > > > > > > wrote: > > > >> > Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: > > > >> >> I've been writing gambas for a while now... continuosly > > > >> >> developing 2 applications. > > > >> >> I'd like to distribute my software in a way that the end user can > > > >> >> compile in a way similar to how the gambas tarball compiles. > > > >> >> > > > >> >> ./configure && make && make install > > > >> >> > > > >> >> instead of distributing binaries. > > > >> >> > > > >> >> Does anyone have a clue how this is done? > > > >> >> > > > >> >> ----------------------------------------------------------------- > > > >> >>-- -- --- - Check out the new SourceForge.net Marketplace. > > > >> >> It's the best place to buy or sell services for > > > >> >> just about anything Open Source. > > > >> >> http://sourceforge.net/services/buy/index.php > > > >> >> _______________________________________________ > > > >> >> Gambas-user mailing list > > > >> >> Gambas-user at lists.sourceforge.net > > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > In the IDE menu go to: > > > >> > > > > >> > Project --> Make --> Installation Package > > > >> > > > > >> > and then select "Autotools" when the wizard asks > > > >> > for the type of package you want to create. > > > >> > > > > >> > Stefano > > > >> > > > > >> > ------------------------------------------------------------------ > > > >> >-- -- --- Check out the new SourceForge.net Marketplace. > > > >> > It's the best place to buy or sell services for > > > >> > just about anything Open Source. > > > >> > http://sourceforge.net/services/buy/index.php > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> -------------------------------------------------------------------- > > > >>-- -- - Check out the new SourceForge.net Marketplace. > > > >> It's the best place to buy or sell services for > > > >> just about anything Open Source. > > > >> http://sourceforge.net/services/buy/index.php > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > --------------------------------------------------------------------- > > > >-- -- Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks for the report, it should be fixed in svn commit 1419. > > Gambas executable is saved in sbin dir and take care of prefix. > > ++ > Laurent, don't you think it should be better that the default destination of the executable was /usr/local/bin? /sbin often is not in the $PATH of normal users. My little opinion :-) Stefano > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Jun 20 13:49:59 2008 From: ron at ...1740... (Ron) Date: Fri, 20 Jun 2008 13:49:59 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806201328.11722.rospolosco@...152...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806201017.02089.rospolosco@...152...> <200806201225.08856.lordheavym@...626...> <200806201328.11722.rospolosco@...152...> Message-ID: <485B9967.8070801@...1740...> Stefano Palmeri schreef: > Il venerd? 20 giugno 2008 12:25:08 Laurent Carlier ha scritto: > >> Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez ?crit : >> >>> Il gioved? 19 giugno 2008 23:52:01 M0E Lnx ha scritto: >>> >>>> One minor problem though... I just did my application with this >>>> after some testing... here are the results >>>> >>>> running configure without arguments does not install the binary to the >>>> system >>>> >>>> running it with the --prefix=/usr argument results in a new directory >>>> in /usr called usr... so the binary really ends up in >>>> /usr/usr/vpackager.gambas >>>> >>>> How do I fix this? >>>> >>> I confirm. This seems to be a bug. If I run >>> ./configure without arguments then it installs >>> the binary in: >>> >>> /usr/local/usr/local/bin/myprogram.gambas. >>> >>> instead of the expected: >>> >>> /usr/local/bin/myprogram.gambas >>> >>> You have to wait for the boss fix ;-) >>> >>> Stefano >>> >>> >>>> On Thu, Jun 19, 2008 at 4:45 PM, Stefano Palmeri >>>> >>>> >>> wrote: >>> >>>>> Il gioved? 19 giugno 2008 23:34:32 M0E Lnx ha scritto: >>>>> >>>>>> Sweet mother of God!... >>>>>> >>>>>> >>>>>> I did not know that >>>>>> >>>>>> Very nice. Thank you for providing such a kool way to do this >>>>>> >>>>> Not me. Thanks Benoit and Laurent Carlier. >>>>> >>>>> >>>>>> On Thu, Jun 19, 2008 at 4:04 PM, Stefano Palmeri >>>>>> >>>>>> >>>>> wrote: >>>>> >>>>>>> Il gioved? 19 giugno 2008 21:47:48 M0E Lnx ha scritto: >>>>>>> >>>>>>>> I've been writing gambas for a while now... continuosly >>>>>>>> developing 2 applications. >>>>>>>> I'd like to distribute my software in a way that the end user can >>>>>>>> compile in a way similar to how the gambas tarball compiles. >>>>>>>> >>>>>>>> ./configure && make && make install >>>>>>>> >>>>>>>> instead of distributing binaries. >>>>>>>> >>>>>>>> Does anyone have a clue how this is done? >>>>>>>> >>>>>>>> ----------------------------------------------------------------- >>>>>>>> -- -- --- - Check out the new SourceForge.net Marketplace. >>>>>>>> It's the best place to buy or sell services for >>>>>>>> just about anything Open Source. >>>>>>>> http://sourceforge.net/services/buy/index.php >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>>>> In the IDE menu go to: >>>>>>> >>>>>>> Project --> Make --> Installation Package >>>>>>> >>>>>>> and then select "Autotools" when the wizard asks >>>>>>> for the type of package you want to create. >>>>>>> >>>>>>> Stefano >>>>>>> >>>>>>> ------------------------------------------------------------------ >>>>>>> -- -- --- Check out the new SourceForge.net Marketplace. >>>>>>> It's the best place to buy or sell services for >>>>>>> just about anything Open Source. >>>>>>> http://sourceforge.net/services/buy/index.php >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> -------------------------------------------------------------------- >>>>>> -- -- - Check out the new SourceForge.net Marketplace. >>>>>> It's the best place to buy or sell services for >>>>>> just about anything Open Source. >>>>>> http://sourceforge.net/services/buy/index.php >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> --------------------------------------------------------------------- >>>>> -- -- Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services for >>>>> just about anything Open Source. >>>>> http://sourceforge.net/services/buy/index.php >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ----------------------------------------------------------------------- >>>> -- Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services for >>>> just about anything Open Source. >>>> http://sourceforge.net/services/buy/index.php >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://sourceforge.net/services/buy/index.php >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> Thanks for the report, it should be fixed in svn commit 1419. >> >> Gambas executable is saved in sbin dir and take care of prefix. >> >> ++ >> >> > > Laurent, don't you think it should be better that the default > destination of the executable was /usr/local/bin? > > /sbin often is not in the $PATH of normal users. > > My little opinion :-) > > Stefano > > /sbin is reserved for superuser/root commands (hence the s), and even only those who must be available during a singleuser mode, aka to repair disks etc. /usr/sbin is reserved for the rest of the root commands. /usr/local/bin is for all third party software, so it belongs there... Regards, Ron. From lordheavym at ...626... Fri Jun 20 14:11:06 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 20 Jun 2008 14:11:06 +0200 Subject: [Gambas-user] =?iso-8859-1?q?How_to_make_your_gambas_project_comp?= =?iso-8859-1?q?ile_using=09autoconf_tools?= In-Reply-To: <485B9967.8070801@...1740...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806201328.11722.rospolosco@...152...> <485B9967.8070801@...1740...> Message-ID: <200806201411.06773.lordheavym@...626...> Le Friday 20 June 2008 13:49:59 Ron, vous avez ?crit?: > > > > Laurent, don't you think it should be better that the default > > destination of the executable was /usr/local/bin? > > > > /sbin often is not in the $PATH of normal users. > > > > My little opinion :-) > > > > Stefano > > /sbin is reserved for superuser/root commands (hence the s), and even > only those who must be available during a singleuser mode, aka to repair > disks etc. > /usr/sbin is reserved for the rest of the root commands. > > /usr/local/bin is for all third party software, so it belongs there... > > Regards, > Ron. > Benoit point me this problem just after the commit. I've got some confusion about bin and sbin. I've fixed it just few minute after and the (correct) fix is done in svn 1421 and 1422 for gambas 2 & 3 respectivly. Thanks for the report and the explanations ! ++ From marcos at ...1756... Fri Jun 20 15:15:58 2008 From: marcos at ...1756... (Marcos Antonio Pandolfo Jr) Date: Fri, 20 Jun 2008 10:15:58 -0300 Subject: [Gambas-user] error calling external function from c library References: <0c0101c8d238$5ad3f160$0100a8c0@...1757...><200806192036.01536.gambas@...1...><0c3001c8d241$02e8fd70$0100a8c0@...1757...><200806192353.41341.gambas@...1...> <0df001c8d273$189885a0$0100a8c0@...1757...> Message-ID: <0e9001c8d2d7$c78da6d0$0100a8c0@...1757...> Hi Everybody Well, I resolv my problem !!!!!! I realized that there is one more variable in this function that should be a pointer.... And the lenght of this pointer must be informed in the call of function..... So... Thanks so much for the help and congratulations to everyone.... Abra?os Marcos Pandolfo Jr ----- Original Message ----- From: "Marcos Antonio Pandolfo Jr" To: "mailing list for gambas users" Sent: Thursday, June 19, 2008 10:15 PM Subject: Re: [Gambas-user] error calling external function from c library > Benoit > > Thanks soo much for your help.... I attach a example writed in C that > contains the call of some functions in this library. The function that I > have problem is the ContinuaFuncaoSiTefInterativo... I believe that you > seeing this example you resolve the problem.... I dont have experience to > visualize the solution..... If you need I can send the libraries.... The > documentation of these libraries are writted in portugues and I think that > will be useless to you. > > Regards > > > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Thursday, June 19, 2008 6:53 PM > Subject: Re: [Gambas-user] error calling external function from c library > > > > On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote: > > > In gambas 2.7.0 appears Illegal instruction in the call of function > > > TEF_inicia: > > > > > > EXTERN TEF_inicia(Resultado AS Pointer, Funcao AS String, Valor AS > String, > > > CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador > AS > > > String, ParamAdic AS String) IN "libclisitef" EXEC > > > "IniciaFuncaoSiTefInterativoA" > > > > > > PUBLIC SUB Main() > > > DIM la AS Pointer > > > DIM lala AS String > > > > > > la = Alloc(4) > > > TEF_inicia(la, "000000", "{200,00}", "{12345}", "20080618", "100000", > > > "{MARCOS}", "{}") 'gambas say illegal instruction in this line > > > lala = StrPtr(la) > > > Free(la) > > > PRINT lala > > > > > > Now is the call correct ? > > > > > > Thanks so much for the help and sorry my poor english. > > > > > > > > > > I don't know: you must ensure that the EXTERN declaration exactly matches > the > > binary interface of the called function (i.e. its C declaration), and the > > called function may crash too, not Gambas itself. > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- ---- > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php ---------------------------------------------------------------------------- ---- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Fri Jun 20 15:45:26 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Jun 2008 15:45:26 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201325.04469.rospolosco@...152...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <577069a50806200409o101c0aa9k2ab0dca8883d0bf2@...627...> <200806201325.04469.rospolosco@...152...> Message-ID: <200806201545.26761.rospolosco@...152...> Il venerd? 20 giugno 2008 13:25:03 Stefano Palmeri ha scritto: > > If you have "mp3info" installed in your system you can get the length: > > SHELL "mp3info -x " & "pathtofile.mp3" & " | grep 'Length:' | awk '{print > $2}'" TO sString > > Stefano > Little fix to avoid problems if a mp3 file name or tag contains the word "length". SHELL "mp3info -x " & "pathtofile.mp3" & " | grep '^Length:' | awk '{print $2}'" TO sString From ron at ...1740... Fri Jun 20 22:25:06 2008 From: ron at ...1740... (Ron) Date: Fri, 20 Jun 2008 22:25:06 +0200 Subject: [Gambas-user] Bug in database manager In-Reply-To: <485C03F8.3080405@...1740...> References: <485C03F8.3080405@...1740...> Message-ID: <485C1222.3090006@...1740...> Hi, If you have defined a field type string lenght say 32. And you click on the length cell and fill in 256, you get an error "The lenght must be greater than 1 and lower than 255" Thats fine, but you end up in a loop where you can't get out to correct your mistake. Regards, Ron. From ron at ...1740... Fri Jun 20 22:24:09 2008 From: ron at ...1740... (Ron) Date: Fri, 20 Jun 2008 22:24:09 +0200 Subject: [Gambas-user] Better error message suggestion In-Reply-To: <485BF6F4.9070704@...1740...> References: <485BF6F4.9070704@...1740...> Message-ID: <485C11E9.9060702@...1740...> Hi, If you return a value within a subroutine where you forgot to specify the return value type for, you get the following error: "Cannot return a value in a procedure.." -- PUBLIC SUB GetDeviceType() ... RETURN something END -- It's maybe more clear to give something like "Return type not specified for subroutine at line 123 ... My 2ct Regards, Ron From ronstk at ...239... Sat Jun 21 10:27:07 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 21 Jun 2008 10:27:07 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201241.48939.gambas@...1...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> Message-ID: <200806211027.07781.ronstk@...239...> On Friday 20 June 2008, Benoit Minisini wrote: > I don't know why apparently the length of the audio is not encoded in the file > header... > It is, but not in the way you think. In fact is the mp3 as we know nowadays a incomplete standard. We need to split the parts out of it. Mp3 is the encoding method only used as _data_. mpeg the layout of a block containing _data_ The file containing blocks of _data_ Audio is encoded, mp3 in this case, in blocks and each block has a header telling the rate used and block length. The block information is following a mpeg standard. Divide the bytes by rate and the time per block is known. Add the time per block for each block and you have the total play time. Storage on disk in a file was simple put all blocks after each other and without a file header descibing the content of the file. It was the inovation of mp3 encoding that triggers a group of enthousiast to write encoders/decoders to store there music that way and made it as a pseudo standard for the audiophiles, the 1/10 of the *.wav size that time in use. The early players read the rate from first block and used it for the whole file play and position, not looking every block. Just to win decoding time on the slow computers those days. They where not able to use variable rates at all. In the early 90's using 90% cpu time with win3.11 Later the mp3 encoding programs were changed to use variable rates and it was posible by using those block headers. To know the total time now you need to read the whole file and add the time per block. For file on local disk not a problem but what if it is on local network share or via internet? And how about live streams that use mp3 _encoding_? The total time is only known when the stream is ready. If the file had also container layout and could describe the content you can write the time into this container header and that does not exist for the populair mp3 encoded files. It is missing the file(container) that the mp3 encoding it is a good available encoding for streaming. Just jump somewhere in the stream and in short time it plays. side note 1) The real name of a file should be myaudio.mp3.mpeg just as myfileachive.tar.gz for files in a tar and late gzipped. I's just MS DOS (DiskOperatingSystem) did not allow more as 3 characters for the extension that made the *.mp3 naming scheme. side note 2) when you were able to write the total length in the header. Aborting a recording and you do not have a length to write and the mp3 duration is 0 or endless. In Result is you can't trust this value. Same problem why a *.avi file is not a good container for streaming with the seek index on the end of the file and the start of the file contains the amount of segments in the file to be able to find the start of the index. Aborting the write of a avi file with encoded (mp3, divx, cvid) data block makes the avi file corrupt for play. Remember the avi repair tools for this problem. The index is need while the encoded data blocks do not have(always) fixed lengths and decoding _must_ begin on a block start. Ron the 1'st From leemcpherson at ...626... Sat Jun 21 01:24:51 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Fri, 20 Jun 2008 19:24:51 -0400 Subject: [Gambas-user] Music.Length In-Reply-To: <200806201241.48939.gambas@...1...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> Message-ID: <485C3C43.9090402@...626...> I've been working on this for mp3 files. It is really easy to just use an external app to get the length of normal bitrate mp3 files as Stefano suggested. For variable bitrate mp3s, it's a little harder. There are visual basic scripts on the web that can do this... I have them somewhere in my files. If I can find them, I'll share them. However, it's not perfect. From what I remember, it goes through each frame of the mp3 and calculates an average length for each frame, to give you an approximate time length for the whole mp3. So seeking in that track will not work correctly, but it doesn't work perfectly in any player as far as I know. I never finished coding this into my own app though (which plays mp3 files from MySQL somewhat like Amarok does, but using VLC player). -Lee Benoit Minisini wrote: > On vendredi 20 juin 2008, Benoit Minisini wrote: > >> On vendredi 20 juin 2008, Patrik Karlsson wrote: >> >>> Hello, I'm about to port an old Delphiapp to a nicer environment and >>> I'm looking at Gambas to do the work, Gambas is realy nice! >>> >>> One function I used in Delphi was to get the length of the sound >>> played in TMediaPlayer, since I would like things done after 80%, >>> 90%... >>> Music.Pos tells me where I am, but I can not found a function that >>> tells me how far I have to go. >>> >>> Is there a solution to this? >>> >> Alas, if I remember correctly, the SDL library has no method to know the >> length of the music! I don't know if it has changed recently, I will >> check... >> > > Apparently, SDL cannot extract the audio length from some formats, like MP3 > with a variable bitrate stream. > > I don't know why apparently the length of the audio is not encoded in the file > header... > > From rospolosco at ...152... Sat Jun 21 17:22:07 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 21 Jun 2008 17:22:07 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <485C3C43.9090402@...626...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201241.48939.gambas@...1...> <485C3C43.9090402@...626...> Message-ID: <200806211722.07249.rospolosco@...152...> Il sabato 21 giugno 2008 01:24:51 Lee McPherson ha scritto: > I've been working on this for mp3 files. It is really easy to just use > an external app to get the length of normal bitrate mp3 files as Stefano > suggested. For variable bitrate mp3s, it's a little harder. Just to say that mp3info, available here http://ibiblio.org/mp3info/ can even manage VBR mp3 files. Also, we could use sox: sox file.mp3 -e stat but it is much slower than mp3info. Ciao a tutti, Stefano > There are > visual basic scripts on the web that can do this... I have them > somewhere in my files. If I can find them, I'll share them. > > However, it's not perfect. From what I remember, it goes through each > frame of the mp3 and calculates an average length for each frame, to > give you an approximate time length for the whole mp3. So seeking in > that track will not work correctly, but it doesn't work perfectly in any > player as far as I know. I never finished coding this into my own app > though (which plays mp3 files from MySQL somewhat like Amarok does, but > using VLC player). > > -Lee > > Benoit Minisini wrote: > > On vendredi 20 juin 2008, Benoit Minisini wrote: > >> On vendredi 20 juin 2008, Patrik Karlsson wrote: > >>> Hello, I'm about to port an old Delphiapp to a nicer environment and > >>> I'm looking at Gambas to do the work, Gambas is realy nice! > >>> > >>> One function I used in Delphi was to get the length of the sound > >>> played in TMediaPlayer, since I would like things done after 80%, > >>> 90%... > >>> Music.Pos tells me where I am, but I can not found a function that > >>> tells me how far I have to go. > >>> > >>> Is there a solution to this? > >> > >> Alas, if I remember correctly, the SDL library has no method to know the > >> length of the music! I don't know if it has changed recently, I will > >> check... > > > > Apparently, SDL cannot extract the audio length from some formats, like > > MP3 with a variable bitrate stream. > > > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From marcos at ...1756... Sat Jun 21 19:15:54 2008 From: marcos at ...1756... (Marcos Antonio Pandolfo Jr) Date: Sat, 21 Jun 2008 14:15:54 -0300 Subject: [Gambas-user] Fw: problem with strptr() function Message-ID: <002101c8d3c2$768c6e10$0100a8c0@...1757...> Hi I have a project using gambas 1.9.49 and this version have a bug with strptr() function resolved in 1.9.51 version.... How can I copy the solution only to strptr() from 1.9.51 to 1.9.49 without I upgrade the gambas version ? PS: i have more then 100 computers using gambas 1.9.49 and centos 4 that dont have gcc 4 to install gambas 1.9.51... would be much more laborious update all computers with centos 5 while some would not support to this version because the characteristics of the machines are so poor.... Regards Marcos Pandolfo Jr From bruno.crepax at ...69... Sat Jun 21 11:19:43 2008 From: bruno.crepax at ...69... (bruno) Date: Sat, 21 Jun 2008 11:19:43 +0200 Subject: [Gambas-user] Gambas review on italian magazine "Gnu-Linux Magazine" In-Reply-To: <200806192020.27033.gambas@...1...> References: <485A66BF.70601@...1237...> <200806192020.27033.gambas@...1...> Message-ID: <1214039983.12433.1.camel@...1929...> if someone send me the Article in Italian i can Translate it in French, Regards. Bruno Il giorno gio, 19/06/2008 alle 20.20 +0200, Benoit Minisini ha scritto: > On jeudi 19 juin 2008, Leonardo Miliani wrote: > > I would like to inform all the community that on the copy of July 2008 > > of the italian magazine "Gnu-Linux Magazine" there is a reviews of our > > lovely Gambas :-) > > > > You can find the summary of the magazine here: > > http://www.edmaster.it/?p=prodotti&idcat=3&idprod=5&idnum=89 > > > > Here is the traslation of the summary of the article: > > SVILUPPO > > * SIAMO TUTTI PROGRAMMATORI > > Guida all?uso dell?IDE Gambas. Come Visual Basic ma Open Source > > > > DEVELOPMENT > > * WE ARE ALL PROGRAMMERS > > Guide to the use of Gambas IDE. Like Visual Basic but Open Source > > If you can scan the pages of the article, it would be cool. Just to see it, I > cannot speak Italian! > From jbskaggs at ...1871... Sat Jun 21 21:35:08 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 21 Jun 2008 12:35:08 -0700 (PDT) Subject: [Gambas-user] How to turn off watch window Message-ID: <18048025.post@...1379...> It's been a few months since Ive asked a question. But this is frustrating me and it's probably a noobie question- even though I am much more familiar with Gambas. Somehow I turned on a watch window I assume that's the name of the window I don't know. A greyed out window with an eyeball in the topright corner appears whenever I run the program. It turned on when I was Find and replacing a text- that text is in the title bar of the window. I don't know how I turned it on and I can't figure out how to turn it off- it won't close while the program runs. Please help!%-| JB SKaggs -- View this message in context: http://www.nabble.com/How-to-turn-off-watch-window-tp18048025p18048025.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Sun Jun 22 02:14:58 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Sat, 21 Jun 2008 19:14:58 -0500 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806201411.06773.lordheavym@...626...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806201328.11722.rospolosco@...152...> <485B9967.8070801@...1740...> <200806201411.06773.lordheavym@...626...> Message-ID: <1f1e8c1b0806211714w40c5421by883c55c38070790@...627...> How about making make install support the DESTDIR argument? On Fri, Jun 20, 2008 at 7:11 AM, Laurent Carlier wrote: > Le Friday 20 June 2008 13:49:59 Ron, vous avez ?crit : >> > >> > Laurent, don't you think it should be better that the default >> > destination of the executable was /usr/local/bin? >> > >> > /sbin often is not in the $PATH of normal users. >> > >> > My little opinion :-) >> > >> > Stefano >> >> /sbin is reserved for superuser/root commands (hence the s), and even >> only those who must be available during a singleuser mode, aka to repair >> disks etc. >> /usr/sbin is reserved for the rest of the root commands. >> >> /usr/local/bin is for all third party software, so it belongs there... >> >> Regards, >> Ron. >> > > Benoit point me this problem just after the commit. I've got some confusion > about bin and sbin. I've fixed it just few minute after and the (correct) fix > is done in svn 1421 and 1422 for gambas 2 & 3 respectivly. > > Thanks for the report and the explanations ! > > ++ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leemcpherson at ...626... Sun Jun 22 01:42:44 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sat, 21 Jun 2008 19:42:44 -0400 Subject: [Gambas-user] How to turn off watch window In-Reply-To: <18048025.post@...1379...> References: <18048025.post@...1379...> Message-ID: <485D91F4.7030007@...626...> I think I know what you're talking about. Try hitting the old Alt-F4 after clicking on the window once. :) -Lee jbskaggs wrote: > It's been a few months since Ive asked a question. But this is frustrating > me and it's probably a noobie question- even though I am much more familiar > with Gambas. > > Somehow I turned on a watch window I assume that's the name of the window I > don't know. > > A greyed out window with an eyeball in the topright corner appears whenever > I run the program. > > It turned on when I was Find and replacing a text- that text is in the title > bar of the window. > > I don't know how I turned it on and I can't figure out how to turn it off- > it won't close while the program runs. > > Please help!%-| > > JB SKaggs > From admin at ...1080... Sat Jun 21 13:33:17 2008 From: admin at ...1080... (admin at ...1080...) Date: Sat, 21 Jun 2008 13:33:17 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: References: Message-ID: <485CE6FD.7030303@...1080...> Hi Once i got a routine (don't remember from, sorry) for mp3-files witch can extract many properties. Maybe this can help you somehow. Regards, Werner ' Gambas class file ' '*** '*** Begin Declaration section '*** PUBLIC OK AS Boolean PUBLIC Duration AS String PUBLIC Frequency AS String PUBLIC Mode AS String PUBLIC IntensitySterio AS String PUBLIC MSSterio AS String PUBLIC MpegLayer AS String PUBLIC MpegVersion AS String PUBLIC BitRate AS String PUBLIC Songname AS String PUBLIC Artist AS String PUBLIC Album AS String PUBLIC SongYear AS String PUBLIC Comment AS String PUBLIC Genre AS String PUBLIC Track AS String PUBLIC Protection AS String PUBLIC Copyright AS String PUBLIC Original AS String PUBLIC Emphasis AS String PUBLIC VBR AS Boolean PUBLIC ModeExtension AS Boolean PUBLIC Minutes AS Integer PUBLIC Seconds AS Integer PUBLIC FrameLength AS Integer PRIVATE GenreArray AS NEW String[] '*** '*** End Declaration section '*** '*** Begin Constructor section '*** PUBLIC SUB _new() BitRate = "" Frequency = "" Duration = "" Songname = "" Artist = "" Album = "" SongYear = "" Comment = "" Genre = "" Track = "" MpegVersion = "" MpegLayer = "" Protection = "" Mode = "" VBR = FALSE Minutes = 0 Seconds = 0 FrameLength = 0 LoadGenre() END '*** '*** End Constructor section '*** '*** Begin Subroutine section '*** PRIVATE SUB LoadGenre() GenreArray.Resize(126) GenreArray[0] = "Blues" GenreArray[1] = "Classic Rock" GenreArray[2] = "Country" GenreArray[3] = "Dance" GenreArray[4] = "Disco" GenreArray[5] = "Funk" GenreArray[6] = "Grunge" GenreArray[7] = "Hip-Hop" GenreArray[8] = "Jazz" GenreArray[9] = "Metal" GenreArray[10] = "New Age" GenreArray[11] = "Oldies" GenreArray[12] = "Other" GenreArray[13] = "Pop" GenreArray[14] = "R&B" GenreArray[15] = "Rap" GenreArray[16] = "Reggae" GenreArray[17] = "Rock" GenreArray[18] = "Techno" GenreArray[19] = "Industrial" GenreArray[20] = "Alternative" GenreArray[21] = "Ska" GenreArray[22] = "Death Metal" GenreArray[23] = "Pranks" GenreArray[24] = "Soundtrack" GenreArray[25] = "Euro-Techno" GenreArray[26] = "Ambient" GenreArray[27] = "Trip-Hop" GenreArray[28] = "Vocal" GenreArray[29] = "Jazz+Funk" GenreArray[30] = "Fusion" GenreArray[31] = "Trance" GenreArray[32] = "Classical" GenreArray[33] = "Instrumental" GenreArray[34] = "Acid" GenreArray[35] = "House" GenreArray[36] = "Game" GenreArray[37] = "Sound Clip" GenreArray[38] = "Gospel" GenreArray[39] = "Noise" GenreArray[40] = "AlternRock" GenreArray[41] = "Bass" GenreArray[42] = "Soul" GenreArray[43] = "Punk" GenreArray[44] = "Space" GenreArray[45] = "Meditative" GenreArray[46] = "Instrumental Pop" GenreArray[47] = "Instrumental Rock" GenreArray[48] = "Ethnic" GenreArray[49] = "Gothic" GenreArray[50] = "Darkwave" GenreArray[51] = "Techno-Indistrial" GenreArray[52] = "Electronic" GenreArray[53] = "Pop-Folk" GenreArray[54] = "Eurodance" GenreArray[55] = "Dream" GenreArray[56] = "Southern Rock" GenreArray[57] = "Comedy" GenreArray[58] = "Cult" GenreArray[59] = "Gansta" GenreArray[60] = "Top 40" GenreArray[61] = "Christian Rap" GenreArray[62] = "Pop/Funk" GenreArray[63] = "Jungle" GenreArray[64] = "Native American" GenreArray[65] = "Cabaret" GenreArray[66] = "New Wave" GenreArray[67] = "Psychaledic" GenreArray[68] = "Rave" GenreArray[69] = "Showtunes" GenreArray[70] = "Trailer" GenreArray[71] = "Lo-Fi" GenreArray[72] = "Tribal" GenreArray[73] = "Acid Punk" GenreArray[74] = "Acid Jazz" GenreArray[75] = "Polka" GenreArray[76] = "Retro" GenreArray[77] = "Musical" GenreArray[78] = "Rock & Roll" GenreArray[79] = "Hard Rock" GenreArray[80] = "Folk" GenreArray[81] = "Folk-Rock" GenreArray[82] = "National Folk" GenreArray[83] = "Swing" GenreArray[84] = "Fast Fusion" GenreArray[85] = "Bebop" GenreArray[86] = "Latin" GenreArray[87] = "Revival" GenreArray[88] = "Celtic" GenreArray[89] = "Bluegrass" GenreArray[90] = "Avantgarde" GenreArray[91] = "Gothic Rock" GenreArray[92] = "Progressive Rock" GenreArray[93] = "Psychadelic Rock" GenreArray[94] = "Symphonic Rock" GenreArray[95] = "Slow Rock" GenreArray[96] = "Big Band" GenreArray[97] = "Chorus" GenreArray[98] = "Easy Listening" GenreArray[99] = "Acoustic" GenreArray[100] = "Humour" GenreArray[101] = "Speech" GenreArray[102] = "Chanson" GenreArray[103] = "Opera" GenreArray[104] = "Chamber Music" GenreArray[105] = "Sonata" GenreArray[106] = "Symphony" GenreArray[107] = "Booty Bass" GenreArray[108] = "Primus" GenreArray[109] = "Porn Groove" GenreArray[110] = "Satire" GenreArray[111] = "Slow Jam" GenreArray[112] = "Club" GenreArray[113] = "Tango" GenreArray[114] = "Samba" GenreArray[115] = "Folklore" GenreArray[116] = "Ballad" GenreArray[117] = "Power Ballad" GenreArray[118] = "Rhythmic Soul" GenreArray[119] = "Freestyle" GenreArray[120] = "Duet" GenreArray[121] = "Punk Rock" GenreArray[122] = "Drum Solo" GenreArray[123] = "A Capella" GenreArray[124] = "Euro-House" GenreArray[125] = "Dance Hall" END '*** '*** End Subroutine section '*** '*** Begin Function section '*** PRIVATE FUNCTION BinToDec(BinValue AS String) AS Integer DIM i AS Integer DIM iDec AS Integer FOR i = 1 TO Len(BinValue) IF Mid(BinValue, i, 1) = 1 THEN iDec = iDec + 2 ^ (Len(BinValue) - i) ENDIF NEXT RETURN iDec END PRIVATE FUNCTION ByteToBit(ByteArray AS Byte[]) AS String DIM sBit AS String DIM z AS Integer DIM i AS Integer DIM Bytes AS Byte 'convert 4*1 byte array to 4*8 bits''''' sBit = "" FOR z = 0 TO 3 Bytes = ByteArray[z] FOR i = 7 TO 0 STEP -1 IF Int(Bytes / (2 ^ i)) = 1 THEN sBit = sBit & "1" Bytes = Bytes - (2 ^ i) ELSE IF sBit <> "" THEN sBit = sBit & "0" ENDIF NEXT NEXT RETURN sBit END PRIVATE FUNCTION GetGenreFromID(iListGenre AS Integer) AS String DIM GenreFromID AS String IF iListGenre > -1 AND iListGenre < 126 THEN GenreFromID = GenreArray[iListGenre] ELSE GenreFromID = "Unknown" ENDIF RETURN GenreFromID END PRIVATE FUNCTION ReadHeader(sFileName AS String) AS Boolean DIM VersionLayer AS NEW String[] DIM SMode AS NEW String[] DIM MpVersion AS NEW String[] DIM MpLayer AS NEW String[] DIM MpProtection AS NEW String[] DIM MpOriginal AS NEW String[] DIM MpCopyright AS NEW String[] DIM MpEmphasis AS NEW String[] DIM ByteArray AS NEW Byte[] DIM hFile AS File DIM sBin AS String DIM XingH AS String DIM x AS Byte DIM Bytes AS Byte DIM i AS Integer DIM z AS Integer DIM HeadStart AS Integer DIM Frames AS Integer DIM Calc AS Integer DIM LenFile AS Integer DIM Padding AS Integer DIM ModeExt AS Integer DIM vTemp AS Variant DIM Brate AS Variant DIM Freq AS Variant SMode.Resize(4) MpLayer.Resize(4) ByteArray.Resize(4) MpVersion.Resize(4) MpProtection.Resize(2) VersionLayer.Resize(4) MpOriginal.Resize(2) MpCopyright.Resize(2) MpEmphasis.Resize(4) 'tables VersionLayer[0] = "0" VersionLayer[1] = "3" VersionLayer[2] = "2" VersionLayer[3] = "1" SMode[0] = "Stereo" SMode[1] = "Joint stereo" SMode[2] = "Dual channel" SMode[3] = "Single channel" MpVersion[0] = "MPEG Version 2.5" MpVersion[1] = "None" MpVersion[2] = "MPEG Version 2" MpVersion[3] = "MPEG Version 1" MpLayer[0] = "None" MpLayer[1] = "Layer III" MpLayer[2] = "Layer II" MpLayer[3] = "Layer I" MpProtection[0] = "Protected by CRC (16bit CRC)" MpProtection[1] = "Not protected" MpOriginal[0] = "Copy of original media" MpOriginal[1] = "Original media" MpCopyright[0] = "Audio is not copyryghted" MpCopyright[1] = "Audio is copyrighted" MpEmphasis[0] = "None" MpEmphasis[1] = "50/15 ms" MpEmphasis[2] = "None" MpEmphasis[3] = "CCIT J.17" 'read the header OPEN sFileName FOR READ AS #hFile IF Lof(hFile) < 256 THEN CLOSE #hFile RETURN FALSE ENDIF '''''start check startposition for header'''''''''''' '''''if start position <>1 then id3v2 tag exists''''' FOR i = 0 TO Lof(hFile) 'check the whole file for the header READ #hFile, x IF x = 255 THEN 'header always start with 255 followed by 250 or 251 READ #hFile, x IF x > 249 AND x < 252 THEN HeadStart = i 'set header start position BREAK ENDIF ENDIF NEXT 'no header start position was found IF HeadStart = 0 THEN RETURN FALSE ENDIF '''end check start position for header''''''''''''' ''start check for XingHeader''' SEEK #hFile, HeadStart + 36 READ #hFile, XingH, 4 IF XingH = "Xing" THEN VBR = TRUE SEEK #hFile, HeadStart + 43 FOR z = 0 TO 3 READ #hFile, Bytes 'get framelength to array ByteArray[z] = Bytes NEXT Frames = BinToDec(ByteToBit(ByteArray)) 'calculate # of frames ELSE VBR = FALSE ENDIF '''end check for XingHeader '''start extract the first 4 bytes (32 bits) to an array SEEK #hFile, HeadStart FOR z = 0 TO 3 READ #hFile, Bytes ByteArray[z] = Bytes NEXT '''stop extract the first 4 bytes (32 bits) to an array LenFile = Lof(hFile) CLOSE #hFile 'header string sBin = ByteToBit(ByteArray) 'get mpegversion from table MpegVersion = VersionLayer[BinToDec(Mid(sBin, 12, 2))] 'get layer from table MpegLayer = VersionLayer[BinToDec(Mid(sBin, 14, 2))] 'get mode from table Mode = SMode[BinToDec(Mid(sBin, 25, 2))] 'get mode extension from table IF BinToDec(Mid(sBin, 25, 2)) = 1 THEN ModeExt = BinToDec(Mid(sBin, 27, 2)) SELECT CASE ModeExt CASE 0 IntensitySterio = "Off" MSSterio = "Off" CASE 1 IntensitySterio = "On" MSSterio = "Off" CASE 2 IntensitySterio = "Off" MSSterio = "On" CASE 3 IntensitySterio = "On" MSSterio = "On" END SELECT ModeExtension = TRUE ELSE ModeExtension = FALSE IntensitySterio = "None" MSSterio = "None" ENDIF 'look for version to create right table 'ok = TRUE SELECT CASE Val(MpegVersion) CASE 1 'for version 1 Freq = Array(44100, 48000, 32000) CASE 2 OR 25 'for version 2 or 2.5 Freq = Array(22050, 24000, 16000) CASE ELSE 'Frequency = 0 'ok = FALSE 'RETURN TRUE 'FALSE Array(0, 0, 0) END SELECT 'look for frequency in table 'IF ok THEN Frequency = Freq[BinToDec(Mid(sBin, 21, 2))] IF VBR = TRUE THEN 'define to calculate correct bitrate vTemp = Array(0, 12, 144, 144) BitRate = (Lof(sFileName) * Frequency) / (Int(Frames)) / 1000 / vTemp[MpegLayer] ELSE 'look for the right bitrate table ' ok = TRUE SELECT CASE Val(MpegVersion & MpegLayer) CASE 11 'Version 1, Layer 1 Brate = Array(0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448) CASE 12 'V1 L1 Brate = Array(0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384) CASE 13 'V1 L3 Brate = Array(0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320) CASE 21 OR 251 'V2 L1 and 'V2.5 L1 Brate = Array(0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256) CASE 22 OR 252 OR 23 OR 253 'V2 L2 and 'V2.5 L2 etc... Brate = Array(0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160) CASE ELSE 'if variable bitrate ' BitRate = Str(1) 'ok = FALSE 'RETURN TRUE 'FALSE Brate = Array(0, 1, 2, 3, 4, 5, 6, 7, 8,9 , 10, 11, 12, 13, 14) END SELECT 'IF ok THEN BitRate = Str(Brate[BinToDec(Mid(sBin, 17, 4))]) ENDIF 'if there is a decimal place, then parse it off IF Instr(BitRate, ".") THEN BitRate = Left(BitRate, Instr(BitRate, ".") - 1) ENDIF 'calculate duration Calc = Int((LenFile * 8) / Val(BitRate) / 1000) Minutes = Calc \ 60 IF Minutes < 10 THEN Duration = "0" & Str(Minutes) & "m " ELSE Duration = Str(Minutes) & "m " ENDIF Seconds = Calc - (Calc \ 60) * 60 IF Seconds < 10 THEN Duration = Duration & "0" & Str(Seconds) & "s" ELSE Duration = Duration & Str(Seconds) & "s" ENDIF 'get padding bit from table Padding = BinToDec(Mid(sBin, 23, 1)) 'get discription from table MpegVersion = MpVersion[BinToDec(Mid(sBin, 12, 2))] MpegLayer = MpLayer[BinToDec(Mid(sBin, 14, 2))] 'get protection from table Protection = MpProtection[BinToDec(Mid(sBin, 16, 1))] 'calc frame length FrameLength = ((144 * (Val(BitRate) * 1000)) / (Val(Frequency) + Padding)) 'get copyright from table Copyright = MpCopyright[BinToDec(Mid(sBin, 29, 1))] 'get original from table Original = MpOriginal[BinToDec(Mid(sBin, 30, 1))] 'get emphasis from table Emphasis = MpEmphasis[BinToDec(Mid(sBin, 31, 2))] Frequency = Frequency & " Hz" BitRate = BitRate & " Kbit/s" FINALLY RETURN TRUE CATCH CLOSE #hFile END PRIVATE FUNCTION ReadID3(sFileName AS String) AS Boolean DIM hFile AS File DIM TagString AS String 'holds the string read from the mp3 DIM TempString AS String DIM strStrip AS String DIM s AS String 'holds temp strings DIM r AS Integer DIM x AS Integer DIM i AS Integer 'holds temp int bytes DIM FieldSize AS Integer DIM SizeOffset AS Integer DIM FieldOffset AS Integer DIM b AS Byte 'holds temp byte values DIM Version AS Byte 'fixed length vars for reading v1ID3v1 tags DIM v1ID AS String DIM v1Title AS String DIM v1Artist AS String DIM v1Album AS String DIM v1Year AS String DIM v1Comment AS String DIM v1Genre AS Byte 'vars that hold v1ID3v2 attibutes DIM v2Title AS String DIM v2Artist AS String DIM v2Album AS String DIM v2Year AS String DIM v2Genre AS String DIM v2Track AS String 'Open the file so we can read it OPEN sFileName FOR READ AS #hFile '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Check for an ID3v1 tag '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' SEEK #hFile, Lof(hFile) - 128 READ #hFile, v1ID, 3 IF v1ID = "TAG" THEN 'If "TAG" is present, then we have a valv1ID v1ID3v1 tag and will extract all available v1ID3v1 info from the file READ #hFile, v1Title, 30 'Always limited to 30 characters READ #hFile, v1Artist, 30 'Always limited to 30 characters READ #hFile, v1Album, 30 'Always limited to 30 characters READ #hFile, v1Year, 4 'Always limited to 4 characters READ #hFile, v1Comment, 30 'Always limited to 30 characters READ #hFile, v1Genre, 1 'Always limited to 1 byte (?) Songname = v1Title Artist = v1Artist Album = v1Album SongYear = v1Year Comment = v1Comment Genre = v1Genre 'get rv1ID of " " on the right sv1IDe of the string DO UNTIL Right(Songname, 1) <> " " Songname = Left(Songname, Len(Songname) - 1) LOOP DO UNTIL Right(Artist, 1) <> " " Artist = Left(Artist, Len(Artist) - 1) LOOP DO UNTIL Right(Album, 1) <> " " Album = Left(Album, Len(Album) - 1) LOOP DO UNTIL Right(SongYear, 1) <> " " SongYear = Left(SongYear, Len(SongYear) - 1) LOOP DO UNTIL Right(Comment, 1) <> " " Comment = Left(Comment, Len(Comment) - 1) LOOP DO UNTIL Right(Genre, 1) <> " " Genre = Left(Genre, Len(Genre) - 1) LOOP 'get rv1ID of null characters Songname = Replace$(Songname, Chr$(0), "") Artist = Replace$(Artist, Chr$(0), "") Album = Replace$(Album, Chr$(0), "") SongYear = Replace$(SongYear, Chr$(0), "") Comment = Replace$(Comment, Chr$(0), "") Genre = Replace$(Genre, Chr$(0), "") 'comments tend to have lots of unprintable chars, so remove them IF Len(Comment) > 0 THEN FOR x = 0 TO 47 IF Instr(Comment, Chr$(x)) THEN Comment = Replace$(Comment, Chr(x), "") ENDIF NEXT ENDIF ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Check for a Header for ID3v2 tag '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' SEEK #hFile, 1 READ #hFile, b IF (b < 250 OR b > 251) THEN 'We have an v1ID3v2 tag IF b = 68 THEN READ #hFile, b IF b = 51 THEN 'get version SEEK #hFile, 3 READ #hFile, Version 'get how long the v2 tag is SEEK #hFile, 6 READ #hFile, b r = Int(b) * 20917152 READ #hFile, b r = r + Int(b) * 16384 READ #hFile, b r = r + Int(b) * 128 READ #hFile, b r = r + Int(b) 'invalid length was calculated IF r > Lof(hFile) OR r > 2147483647 THEN RETURN FALSE END IF 'get the v2 tag according to the length calculated READ #hFile, TagString, r ENDIF ENDIF ENDIF IF TagString <> "" THEN 'there is an ID3v2 tag in TagString ' Determine if the v1ID3v2 tag is v1ID3v2.2 or v1ID3v2.3 SELECT CASE Version CASE 2 'v1ID3v2.2 'Set the fieldnames for version 2.0 v2Title = "TT2" v2Artist = "TOA" v2Album = "TAL" v2Year = "TYE" v2Genre = "TCO" FieldOffset = 7 SizeOffset = 5 v2Track = "TRCK" CASE 3 'v1ID3v2.3 'Set the fieldnames for version 3.0 v2Title = "TIT2" v2Artist = "TPE1" v2Album = "TALB" v2Year = "TYER" v2Genre = "TCON" v2Track = "TRCK" FieldOffset = 11 SizeOffset = 7 CASE ELSE 'We don't have a valv1ID v1ID3v2 tag, so bail RETURN FALSE END SELECT '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract track title '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' i = Instr(TagString, v2Title) IF i > 0 THEN 'read the title FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = TRUE OR (b AND 64) = TRUE THEN GOTO ReadAlbum ENDIF TempString = Mid$(TagString, i + FieldOffset, FieldSize) IF TempString <> "" THEN Songname = TempString ENDIF ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract album title '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ReadAlbum: i = Instr(TagString, v2Album) IF i > 0 THEN FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadArtist ENDIF TempString = Mid$(TagString, i + FieldOffset, FieldSize) IF TempString <> "" THEN Album = TempString ENDIF ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract artist name '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ReadArtist: i = Instr(TagString, v2Artist) IF i > 0 THEN FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadYear ENDIF TempString = Mid$(TagString, i + FieldOffset, FieldSize) IF TempString <> "" THEN Artist = TempString ENDIF ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract year title '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ReadYear: i = Instr(TagString, v2Year) IF i > 0 THEN FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadGenre ENDIF TempString = Mid$(TagString, i + FieldOffset, FieldSize) IF TempString <> "" THEN SongYear = TempString ENDIF ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract genre '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ReadGenre: i = Instr(TagString, v2Genre) IF i > 0 THEN FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO Readv2Track ENDIF s = Mid$(TagString, i + FieldOffset, FieldSize) IF Left$(s, 1) = "(" THEN IF Instr(s, ")") THEN 'the tag is in the form of "(10)metal" TempString = Right(S, Len(s) - Instr(s, ")")) ENDIF ELSE TempString = s ENDIF Genre = TempString ENDIF '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Extract track number '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Readv2Track: i = Instr(TagString, v2Track) IF i > 0 THEN FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 IF Version = 3 THEN 'check for compressed or encrypted field b = Asc(Mid$(TagString, i + 9)) IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO Done ENDIF TempString = Mid$(TagString, i + FieldOffset, FieldSize) IF TempString <> "" THEN Track = TempString ENDIF ENDIF Done: ENDIF CLOSE #hFile 'if the genre tag has a # instead of a string, then decode it IF IsNumber(Val(Genre)) THEN Genre = GetGenreFromID(Val(Genre)) ENDIF FINALLY RETURN TRUE CATCH CLOSE #hFile END FUNCTION PUBLIC FUNCTION ReadMP3(sFileName AS String) AS Boolean 'reads header (duration, freq, bitrate, version, layer are stored in the header) IF ReadHeader(sFileName) THEN 'reads the ID3 tag (artist, album, year, comment, genre, track are stored in ID3 tag) IF ReadID3(sFileName) THEN RETURN TRUE ELSE RETURN FALSE ENDIF ELSE RETURN FALSE ENDIF END '*** '*** End Function section '*** From leemcpherson at ...626... Sun Jun 22 06:02:52 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sun, 22 Jun 2008 00:02:52 -0400 Subject: [Gambas-user] Music.Length In-Reply-To: <485CE6FD.7030303@...1080...> References: <485CE6FD.7030303@...1080...> Message-ID: <485DCEEC.8030508@...626...> Wow, this looks to be very useful! And I wasn't even looking for it... Thanks! -Lee admin at ...1080... wrote: > Hi > > Once i got a routine (don't remember from, sorry) for mp3-files witch > can extract many properties. > Maybe this can help you somehow. > > Regards, Werner > > > ' Gambas class file > ' > '*** > '*** Begin Declaration section > '*** > PUBLIC OK AS Boolean > > PUBLIC Duration AS String > PUBLIC Frequency AS String > PUBLIC Mode AS String > PUBLIC IntensitySterio AS String > PUBLIC MSSterio AS String > PUBLIC MpegLayer AS String > PUBLIC MpegVersion AS String > PUBLIC BitRate AS String > PUBLIC Songname AS String > PUBLIC Artist AS String > PUBLIC Album AS String > PUBLIC SongYear AS String > PUBLIC Comment AS String > PUBLIC Genre AS String > PUBLIC Track AS String > PUBLIC Protection AS String > PUBLIC Copyright AS String > PUBLIC Original AS String > PUBLIC Emphasis AS String > PUBLIC VBR AS Boolean > PUBLIC ModeExtension AS Boolean > PUBLIC Minutes AS Integer > PUBLIC Seconds AS Integer > PUBLIC FrameLength AS Integer > > PRIVATE GenreArray AS NEW String[] > '*** > '*** End Declaration section > '*** > '*** Begin Constructor section > '*** > PUBLIC SUB _new() > BitRate = "" > Frequency = "" > Duration = "" > Songname = "" > Artist = "" > Album = "" > SongYear = "" > Comment = "" > Genre = "" > Track = "" > MpegVersion = "" > MpegLayer = "" > Protection = "" > Mode = "" > VBR = FALSE > Minutes = 0 > Seconds = 0 > FrameLength = 0 > > LoadGenre() > END > '*** > '*** End Constructor section > '*** > '*** Begin Subroutine section > '*** > PRIVATE SUB LoadGenre() > GenreArray.Resize(126) > > GenreArray[0] = "Blues" > GenreArray[1] = "Classic Rock" > GenreArray[2] = "Country" > GenreArray[3] = "Dance" > GenreArray[4] = "Disco" > GenreArray[5] = "Funk" > GenreArray[6] = "Grunge" > GenreArray[7] = "Hip-Hop" > GenreArray[8] = "Jazz" > GenreArray[9] = "Metal" > GenreArray[10] = "New Age" > GenreArray[11] = "Oldies" > GenreArray[12] = "Other" > GenreArray[13] = "Pop" > GenreArray[14] = "R&B" > GenreArray[15] = "Rap" > GenreArray[16] = "Reggae" > GenreArray[17] = "Rock" > GenreArray[18] = "Techno" > GenreArray[19] = "Industrial" > GenreArray[20] = "Alternative" > GenreArray[21] = "Ska" > GenreArray[22] = "Death Metal" > GenreArray[23] = "Pranks" > GenreArray[24] = "Soundtrack" > GenreArray[25] = "Euro-Techno" > GenreArray[26] = "Ambient" > GenreArray[27] = "Trip-Hop" > GenreArray[28] = "Vocal" > GenreArray[29] = "Jazz+Funk" > GenreArray[30] = "Fusion" > GenreArray[31] = "Trance" > GenreArray[32] = "Classical" > GenreArray[33] = "Instrumental" > GenreArray[34] = "Acid" > GenreArray[35] = "House" > GenreArray[36] = "Game" > GenreArray[37] = "Sound Clip" > GenreArray[38] = "Gospel" > GenreArray[39] = "Noise" > GenreArray[40] = "AlternRock" > GenreArray[41] = "Bass" > GenreArray[42] = "Soul" > GenreArray[43] = "Punk" > GenreArray[44] = "Space" > GenreArray[45] = "Meditative" > GenreArray[46] = "Instrumental Pop" > GenreArray[47] = "Instrumental Rock" > GenreArray[48] = "Ethnic" > GenreArray[49] = "Gothic" > GenreArray[50] = "Darkwave" > GenreArray[51] = "Techno-Indistrial" > GenreArray[52] = "Electronic" > GenreArray[53] = "Pop-Folk" > GenreArray[54] = "Eurodance" > GenreArray[55] = "Dream" > GenreArray[56] = "Southern Rock" > GenreArray[57] = "Comedy" > GenreArray[58] = "Cult" > GenreArray[59] = "Gansta" > GenreArray[60] = "Top 40" > GenreArray[61] = "Christian Rap" > GenreArray[62] = "Pop/Funk" > GenreArray[63] = "Jungle" > GenreArray[64] = "Native American" > GenreArray[65] = "Cabaret" > GenreArray[66] = "New Wave" > GenreArray[67] = "Psychaledic" > GenreArray[68] = "Rave" > GenreArray[69] = "Showtunes" > GenreArray[70] = "Trailer" > GenreArray[71] = "Lo-Fi" > GenreArray[72] = "Tribal" > GenreArray[73] = "Acid Punk" > GenreArray[74] = "Acid Jazz" > GenreArray[75] = "Polka" > GenreArray[76] = "Retro" > GenreArray[77] = "Musical" > GenreArray[78] = "Rock & Roll" > GenreArray[79] = "Hard Rock" > GenreArray[80] = "Folk" > GenreArray[81] = "Folk-Rock" > GenreArray[82] = "National Folk" > GenreArray[83] = "Swing" > GenreArray[84] = "Fast Fusion" > GenreArray[85] = "Bebop" > GenreArray[86] = "Latin" > GenreArray[87] = "Revival" > GenreArray[88] = "Celtic" > GenreArray[89] = "Bluegrass" > GenreArray[90] = "Avantgarde" > GenreArray[91] = "Gothic Rock" > GenreArray[92] = "Progressive Rock" > GenreArray[93] = "Psychadelic Rock" > GenreArray[94] = "Symphonic Rock" > GenreArray[95] = "Slow Rock" > GenreArray[96] = "Big Band" > GenreArray[97] = "Chorus" > GenreArray[98] = "Easy Listening" > GenreArray[99] = "Acoustic" > GenreArray[100] = "Humour" > GenreArray[101] = "Speech" > GenreArray[102] = "Chanson" > GenreArray[103] = "Opera" > GenreArray[104] = "Chamber Music" > GenreArray[105] = "Sonata" > GenreArray[106] = "Symphony" > GenreArray[107] = "Booty Bass" > GenreArray[108] = "Primus" > GenreArray[109] = "Porn Groove" > GenreArray[110] = "Satire" > GenreArray[111] = "Slow Jam" > GenreArray[112] = "Club" > GenreArray[113] = "Tango" > GenreArray[114] = "Samba" > GenreArray[115] = "Folklore" > GenreArray[116] = "Ballad" > GenreArray[117] = "Power Ballad" > GenreArray[118] = "Rhythmic Soul" > GenreArray[119] = "Freestyle" > GenreArray[120] = "Duet" > GenreArray[121] = "Punk Rock" > GenreArray[122] = "Drum Solo" > GenreArray[123] = "A Capella" > GenreArray[124] = "Euro-House" > GenreArray[125] = "Dance Hall" > END > '*** > '*** End Subroutine section > '*** > '*** Begin Function section > '*** > PRIVATE FUNCTION BinToDec(BinValue AS String) AS Integer > DIM i AS Integer > DIM iDec AS Integer > > FOR i = 1 TO Len(BinValue) > IF Mid(BinValue, i, 1) = 1 THEN > iDec = iDec + 2 ^ (Len(BinValue) - i) > ENDIF > NEXT > > RETURN iDec > END > > PRIVATE FUNCTION ByteToBit(ByteArray AS Byte[]) AS String > DIM sBit AS String > DIM z AS Integer > DIM i AS Integer > DIM Bytes AS Byte > > 'convert 4*1 byte array to 4*8 bits''''' > sBit = "" > FOR z = 0 TO 3 > Bytes = ByteArray[z] > FOR i = 7 TO 0 STEP -1 > IF Int(Bytes / (2 ^ i)) = 1 THEN > sBit = sBit & "1" > Bytes = Bytes - (2 ^ i) > ELSE IF sBit <> "" THEN > sBit = sBit & "0" > ENDIF > NEXT > NEXT > > RETURN sBit > END > > PRIVATE FUNCTION GetGenreFromID(iListGenre AS Integer) AS String > DIM GenreFromID AS String > > IF iListGenre > -1 AND iListGenre < 126 THEN > GenreFromID = GenreArray[iListGenre] > ELSE > GenreFromID = "Unknown" > ENDIF > > RETURN GenreFromID > END > > PRIVATE FUNCTION ReadHeader(sFileName AS String) AS Boolean > DIM VersionLayer AS NEW String[] > DIM SMode AS NEW String[] > DIM MpVersion AS NEW String[] > DIM MpLayer AS NEW String[] > DIM MpProtection AS NEW String[] > DIM MpOriginal AS NEW String[] > DIM MpCopyright AS NEW String[] > DIM MpEmphasis AS NEW String[] > DIM ByteArray AS NEW Byte[] > > DIM hFile AS File > DIM sBin AS String > DIM XingH AS String > DIM x AS Byte > DIM Bytes AS Byte > DIM i AS Integer > DIM z AS Integer > DIM HeadStart AS Integer > DIM Frames AS Integer > DIM Calc AS Integer > DIM LenFile AS Integer > DIM Padding AS Integer > DIM ModeExt AS Integer > DIM vTemp AS Variant > DIM Brate AS Variant > DIM Freq AS Variant > > SMode.Resize(4) > MpLayer.Resize(4) > ByteArray.Resize(4) > MpVersion.Resize(4) > MpProtection.Resize(2) > VersionLayer.Resize(4) > MpOriginal.Resize(2) > MpCopyright.Resize(2) > MpEmphasis.Resize(4) > > 'tables > VersionLayer[0] = "0" > VersionLayer[1] = "3" > VersionLayer[2] = "2" > VersionLayer[3] = "1" > > SMode[0] = "Stereo" > SMode[1] = "Joint stereo" > SMode[2] = "Dual channel" > SMode[3] = "Single channel" > > MpVersion[0] = "MPEG Version 2.5" > MpVersion[1] = "None" > MpVersion[2] = "MPEG Version 2" > MpVersion[3] = "MPEG Version 1" > > MpLayer[0] = "None" > MpLayer[1] = "Layer III" > MpLayer[2] = "Layer II" > MpLayer[3] = "Layer I" > > MpProtection[0] = "Protected by CRC (16bit CRC)" > MpProtection[1] = "Not protected" > > MpOriginal[0] = "Copy of original media" > MpOriginal[1] = "Original media" > > MpCopyright[0] = "Audio is not copyryghted" > MpCopyright[1] = "Audio is copyrighted" > > MpEmphasis[0] = "None" > MpEmphasis[1] = "50/15 ms" > MpEmphasis[2] = "None" > MpEmphasis[3] = "CCIT J.17" > > 'read the header > OPEN sFileName FOR READ AS #hFile > IF Lof(hFile) < 256 THEN > CLOSE #hFile > RETURN FALSE > ENDIF > > '''''start check startposition for header'''''''''''' > '''''if start position <>1 then id3v2 tag exists''''' > FOR i = 0 TO Lof(hFile) 'check the whole file for the header > READ #hFile, x > IF x = 255 THEN 'header always start with 255 > followed by 250 or 251 > READ #hFile, x > IF x > 249 AND x < 252 THEN > HeadStart = i 'set header start position > BREAK > ENDIF > ENDIF > NEXT > > 'no header start position was found > IF HeadStart = 0 THEN > RETURN FALSE > ENDIF > '''end check start position for header''''''''''''' > > ''start check for XingHeader''' > SEEK #hFile, HeadStart + 36 > READ #hFile, XingH, 4 > IF XingH = "Xing" THEN > VBR = TRUE > SEEK #hFile, HeadStart + 43 > FOR z = 0 TO 3 > READ #hFile, Bytes 'get framelength to array > ByteArray[z] = Bytes > NEXT > Frames = BinToDec(ByteToBit(ByteArray)) 'calculate # of frames > ELSE > VBR = FALSE > ENDIF > '''end check for XingHeader > > '''start extract the first 4 bytes (32 bits) to an array > SEEK #hFile, HeadStart > FOR z = 0 TO 3 > READ #hFile, Bytes > ByteArray[z] = Bytes > NEXT > '''stop extract the first 4 bytes (32 bits) to an array > LenFile = Lof(hFile) > CLOSE #hFile > > 'header string > sBin = ByteToBit(ByteArray) > > 'get mpegversion from table > MpegVersion = VersionLayer[BinToDec(Mid(sBin, 12, 2))] > > 'get layer from table > MpegLayer = VersionLayer[BinToDec(Mid(sBin, 14, 2))] > > 'get mode from table > Mode = SMode[BinToDec(Mid(sBin, 25, 2))] > > 'get mode extension from table > IF BinToDec(Mid(sBin, 25, 2)) = 1 THEN > ModeExt = BinToDec(Mid(sBin, 27, 2)) > SELECT CASE ModeExt > CASE 0 > IntensitySterio = "Off" > MSSterio = "Off" > CASE 1 > IntensitySterio = "On" > MSSterio = "Off" > CASE 2 > IntensitySterio = "Off" > MSSterio = "On" > CASE 3 > IntensitySterio = "On" > MSSterio = "On" > END SELECT > ModeExtension = TRUE > ELSE > ModeExtension = FALSE > IntensitySterio = "None" > MSSterio = "None" > ENDIF > > 'look for version to create right table > 'ok = TRUE > SELECT CASE Val(MpegVersion) > CASE 1 > 'for version 1 > Freq = Array(44100, 48000, 32000) > CASE 2 OR 25 > 'for version 2 or 2.5 > Freq = Array(22050, 24000, 16000) > CASE ELSE > 'Frequency = 0 > 'ok = FALSE 'RETURN TRUE 'FALSE > Array(0, 0, 0) > END SELECT > > 'look for frequency in table > 'IF ok THEN > Frequency = Freq[BinToDec(Mid(sBin, 21, 2))] > > IF VBR = TRUE THEN > 'define to calculate correct bitrate > vTemp = Array(0, 12, 144, 144) > BitRate = (Lof(sFileName) * Frequency) / (Int(Frames)) / 1000 / > vTemp[MpegLayer] > ELSE > 'look for the right bitrate table > ' ok = TRUE > SELECT CASE Val(MpegVersion & MpegLayer) > CASE 11 > 'Version 1, Layer 1 > Brate = Array(0, 32, 64, 96, 128, 160, 192, 224, 256, 288, > 320, 352, 384, 416, 448) > CASE 12 > 'V1 L1 > Brate = Array(0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, > 224, 256, 320, 384) > CASE 13 > 'V1 L3 > Brate = Array(0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, > 192, 224, 256, 320) > CASE 21 OR 251 > 'V2 L1 and 'V2.5 L1 > Brate = Array(0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, > 176, 192, 224, 256) > CASE 22 OR 252 OR 23 OR 253 > 'V2 L2 and 'V2.5 L2 etc... > Brate = Array(0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, > 128, 144, 160) > CASE ELSE > 'if variable bitrate > ' BitRate = Str(1) > 'ok = FALSE 'RETURN TRUE 'FALSE > Brate = Array(0, 1, 2, 3, 4, 5, 6, 7, 8,9 , 10, 11, 12, 13, 14) > END SELECT > 'IF ok THEN > BitRate = Str(Brate[BinToDec(Mid(sBin, 17, 4))]) > ENDIF > > 'if there is a decimal place, then parse it off > IF Instr(BitRate, ".") THEN > BitRate = Left(BitRate, Instr(BitRate, ".") - 1) > ENDIF > > 'calculate duration > Calc = Int((LenFile * 8) / Val(BitRate) / 1000) > Minutes = Calc \ 60 > IF Minutes < 10 THEN > Duration = "0" & Str(Minutes) & "m " > ELSE > Duration = Str(Minutes) & "m " > ENDIF > > Seconds = Calc - (Calc \ 60) * 60 > IF Seconds < 10 THEN > Duration = Duration & "0" & Str(Seconds) & "s" > ELSE > Duration = Duration & Str(Seconds) & "s" > ENDIF > > 'get padding bit from table > Padding = BinToDec(Mid(sBin, 23, 1)) > > 'get discription from table > MpegVersion = MpVersion[BinToDec(Mid(sBin, 12, 2))] > MpegLayer = MpLayer[BinToDec(Mid(sBin, 14, 2))] > > 'get protection from table > Protection = MpProtection[BinToDec(Mid(sBin, 16, 1))] > > 'calc frame length > FrameLength = ((144 * (Val(BitRate) * 1000)) / (Val(Frequency) + > Padding)) > > 'get copyright from table > Copyright = MpCopyright[BinToDec(Mid(sBin, 29, 1))] > > 'get original from table > Original = MpOriginal[BinToDec(Mid(sBin, 30, 1))] > > 'get emphasis from table > Emphasis = MpEmphasis[BinToDec(Mid(sBin, 31, 2))] > > Frequency = Frequency & " Hz" > BitRate = BitRate & " Kbit/s" > FINALLY > RETURN TRUE > CATCH > CLOSE #hFile > END > > PRIVATE FUNCTION ReadID3(sFileName AS String) AS Boolean > DIM hFile AS File > DIM TagString AS String 'holds the string read from the mp3 > DIM TempString AS String > DIM strStrip AS String > DIM s AS String 'holds temp strings > DIM r AS Integer > DIM x AS Integer > DIM i AS Integer 'holds temp int bytes > DIM FieldSize AS Integer > DIM SizeOffset AS Integer > DIM FieldOffset AS Integer > DIM b AS Byte 'holds temp byte values > DIM Version AS Byte > > 'fixed length vars for reading v1ID3v1 tags > DIM v1ID AS String > DIM v1Title AS String > DIM v1Artist AS String > DIM v1Album AS String > DIM v1Year AS String > DIM v1Comment AS String > DIM v1Genre AS Byte > > 'vars that hold v1ID3v2 attibutes > DIM v2Title AS String > DIM v2Artist AS String > DIM v2Album AS String > DIM v2Year AS String > DIM v2Genre AS String > DIM v2Track AS String > > 'Open the file so we can read it > OPEN sFileName FOR READ AS #hFile > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Check for an ID3v1 tag > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > SEEK #hFile, Lof(hFile) - 128 > READ #hFile, v1ID, 3 > IF v1ID = "TAG" THEN 'If "TAG" is present, then we have a valv1ID > v1ID3v1 tag and will extract all available v1ID3v1 info from the file > READ #hFile, v1Title, 30 'Always limited to 30 characters > READ #hFile, v1Artist, 30 'Always limited to 30 characters > READ #hFile, v1Album, 30 'Always limited to 30 characters > READ #hFile, v1Year, 4 'Always limited to 4 characters > READ #hFile, v1Comment, 30 'Always limited to 30 characters > READ #hFile, v1Genre, 1 'Always limited to 1 byte (?) > > Songname = v1Title > Artist = v1Artist > Album = v1Album > SongYear = v1Year > Comment = v1Comment > Genre = v1Genre > > 'get rv1ID of " " on the right sv1IDe of the string > DO UNTIL Right(Songname, 1) <> " " > Songname = Left(Songname, Len(Songname) - 1) > LOOP > > DO UNTIL Right(Artist, 1) <> " " > Artist = Left(Artist, Len(Artist) - 1) > LOOP > > DO UNTIL Right(Album, 1) <> " " > Album = Left(Album, Len(Album) - 1) > LOOP > > DO UNTIL Right(SongYear, 1) <> " " > SongYear = Left(SongYear, Len(SongYear) - 1) > LOOP > > DO UNTIL Right(Comment, 1) <> " " > Comment = Left(Comment, Len(Comment) - 1) > LOOP > > DO UNTIL Right(Genre, 1) <> " " > Genre = Left(Genre, Len(Genre) - 1) > LOOP > > 'get rv1ID of null characters > Songname = Replace$(Songname, Chr$(0), "") > Artist = Replace$(Artist, Chr$(0), "") > Album = Replace$(Album, Chr$(0), "") > SongYear = Replace$(SongYear, Chr$(0), "") > Comment = Replace$(Comment, Chr$(0), "") > Genre = Replace$(Genre, Chr$(0), "") > > 'comments tend to have lots of unprintable chars, so remove them > IF Len(Comment) > 0 THEN > FOR x = 0 TO 47 > IF Instr(Comment, Chr$(x)) THEN > Comment = Replace$(Comment, Chr(x), "") > ENDIF > NEXT > ENDIF > ENDIF > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Check for a Header for ID3v2 tag > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > SEEK #hFile, 1 > READ #hFile, b > IF (b < 250 OR b > 251) THEN > 'We have an v1ID3v2 tag > IF b = 68 THEN > READ #hFile, b > IF b = 51 THEN > 'get version > SEEK #hFile, 3 > READ #hFile, Version > > 'get how long the v2 tag is > SEEK #hFile, 6 > READ #hFile, b > r = Int(b) * 20917152 > > READ #hFile, b > r = r + Int(b) * 16384 > > READ #hFile, b > r = r + Int(b) * 128 > > READ #hFile, b > r = r + Int(b) > > 'invalid length was calculated > IF r > Lof(hFile) OR r > 2147483647 THEN > RETURN FALSE > END IF > > 'get the v2 tag according to the length calculated > READ #hFile, TagString, r > ENDIF > ENDIF > ENDIF > > > IF TagString <> "" THEN 'there is an ID3v2 tag in TagString > ' Determine if the v1ID3v2 tag is v1ID3v2.2 or v1ID3v2.3 > SELECT CASE Version > CASE 2 'v1ID3v2.2 > 'Set the fieldnames for version 2.0 > v2Title = "TT2" > v2Artist = "TOA" > v2Album = "TAL" > v2Year = "TYE" > v2Genre = "TCO" > FieldOffset = 7 > SizeOffset = 5 > v2Track = "TRCK" > CASE 3 'v1ID3v2.3 > 'Set the fieldnames for version 3.0 > v2Title = "TIT2" > v2Artist = "TPE1" > v2Album = "TALB" > v2Year = "TYER" > v2Genre = "TCON" > v2Track = "TRCK" > FieldOffset = 11 > SizeOffset = 7 > CASE ELSE > 'We don't have a valv1ID v1ID3v2 tag, so bail > RETURN FALSE > END SELECT > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract track title > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > i = Instr(TagString, v2Title) > IF i > 0 THEN > 'read the title > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = TRUE OR (b AND 64) = TRUE THEN GOTO > ReadAlbum > ENDIF > > TempString = Mid$(TagString, i + FieldOffset, FieldSize) > > IF TempString <> "" THEN > Songname = TempString > ENDIF > ENDIF > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract album title > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ReadAlbum: > i = Instr(TagString, v2Album) > IF i > 0 THEN > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadArtist > ENDIF > > TempString = Mid$(TagString, i + FieldOffset, FieldSize) > > IF TempString <> "" THEN > Album = TempString > ENDIF > ENDIF > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract artist name > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ReadArtist: > i = Instr(TagString, v2Artist) > IF i > 0 THEN > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadYear > ENDIF > > TempString = Mid$(TagString, i + FieldOffset, FieldSize) > > IF TempString <> "" THEN > Artist = TempString > ENDIF > ENDIF > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract year title > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ReadYear: > i = Instr(TagString, v2Year) > IF i > 0 THEN > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO ReadGenre > ENDIF > > TempString = Mid$(TagString, i + FieldOffset, FieldSize) > > IF TempString <> "" THEN > SongYear = TempString > ENDIF > ENDIF > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract genre > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ReadGenre: > i = Instr(TagString, v2Genre) > IF i > 0 THEN > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO Readv2Track > ENDIF > > s = Mid$(TagString, i + FieldOffset, FieldSize) > > IF Left$(s, 1) = "(" THEN > IF Instr(s, ")") THEN > 'the tag is in the form of "(10)metal" > TempString = Right(S, Len(s) - Instr(s, ")")) > ENDIF > ELSE > TempString = s > ENDIF > Genre = TempString > ENDIF > > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > ' Extract track number > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > Readv2Track: > i = Instr(TagString, v2Track) > IF i > 0 THEN > FieldSize = Asc(Mid$(TagString, i + SizeOffset)) - 1 > > IF Version = 3 THEN > 'check for compressed or encrypted field > b = Asc(Mid$(TagString, i + 9)) > IF (b AND 128) = 128 OR (b AND 64) = 64 THEN GOTO Done > ENDIF > > TempString = Mid$(TagString, i + FieldOffset, FieldSize) > > IF TempString <> "" THEN > Track = TempString > ENDIF > ENDIF > Done: > ENDIF > CLOSE #hFile > > 'if the genre tag has a # instead of a string, then decode it > IF IsNumber(Val(Genre)) THEN > Genre = GetGenreFromID(Val(Genre)) > ENDIF > FINALLY > RETURN TRUE > CATCH > CLOSE #hFile > END FUNCTION > > PUBLIC FUNCTION ReadMP3(sFileName AS String) AS Boolean > 'reads header (duration, freq, bitrate, version, layer are stored in > the header) > IF ReadHeader(sFileName) THEN > 'reads the ID3 tag (artist, album, year, comment, genre, track are > stored in ID3 tag) > IF ReadID3(sFileName) THEN > RETURN TRUE > ELSE > RETURN FALSE > ENDIF > ELSE > RETURN FALSE > ENDIF > END > '*** > '*** End Function section > '*** > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Sun Jun 22 13:22:58 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Jun 2008 13:22:58 +0200 Subject: [Gambas-user] Fw: problem with strptr() function In-Reply-To: <002101c8d3c2$768c6e10$0100a8c0@...1757...> References: <002101c8d3c2$768c6e10$0100a8c0@...1757...> Message-ID: <1214133778.7580.6.camel@...40...> Salut, while gambas is OpenSource you can do it yourself. Or talk directly with Benoit, for the price off a special Version. -- Amicalment Charlie Am Samstag, den 21.06.2008, 14:15 -0300 schrieb Marcos Antonio Pandolfo Jr: > Hi > > I have a project using gambas 1.9.49 and this version have a bug with strptr() function resolved in 1.9.51 version.... How can I copy the solution only to strptr() from 1.9.51 to 1.9.49 without I upgrade the gambas version ? > > PS: i have more then 100 computers using gambas 1.9.49 and centos 4 that dont have gcc 4 to install gambas 1.9.51... would be much more laborious update all computers with centos 5 while some would not support to this version because the characteristics of the machines are so poor.... > > Regards > > Marcos Pandolfo Jr From jbskaggs at ...1871... Mon Jun 23 03:51:55 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 22 Jun 2008 18:51:55 -0700 (PDT) Subject: [Gambas-user] How to package and distribute our software written in Gambas Message-ID: <18061304.post@...1379...> After six months I have a package that is nearly finished. I understand how to make an installation package via Gambas. What I need though is a one-click means of installing my data directories into the correct area on the user's drive. IE user.home/wwmkr. Using linux's archive manager does not give me that option automatically. Maybe there is a nice liux packager out there for the data files etc? Second I need to know how to get the software in front of the people's eyes who need it. How does one distribute a software efficiently and effectively? Recruit alpha and beta testers etc. JB SKaggs -- View this message in context: http://www.nabble.com/How-to-package-and-distribute-our-software-written-in-Gambas-tp18061304p18061304.html Sent from the gambas-user mailing list archive at Nabble.com. From smiefert at ...784... Mon Jun 23 08:06:09 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 23 Jun 2008 08:06:09 +0200 Subject: [Gambas-user] Select a Tabelview entry? Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> Hello, how can i select a tableview entry? I use this code Public sub tableview_data(Row AS Integer, Column AS Integer) RESdata.MoveTo(Row) Tableview.data.text = Str(REsdata(RESdata.fields[column].name]) If Column = 0 then ' How can I select this entry?! End if end From smiefert at ...784... Mon Jun 23 09:26:41 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 23 Jun 2008 09:26:41 +0200 Subject: [Gambas-user] Select a tableview Row? Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4CF4@...1899...> Hello, i try this TBLview.Rows[Rownumber].Seleczed = true but this crash the systemm. When I insert this code too TBLview.Data.backcolor = color.red Gambas select the color but I cant change the row . When I try it, the text inside the first fieldbecome the text of the second field:( How can I fix this From rospolosco at ...152... Mon Jun 23 09:41:18 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 23 Jun 2008 09:41:18 +0200 Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <18061304.post@...1379...> References: <18061304.post@...1379...> Message-ID: <200806230941.19157.rospolosco@...152...> Il luned? 23 giugno 2008 03:51:55 jbskaggs ha scritto: > After six months I have a package that is nearly finished. > > I understand how to make an installation package via Gambas. > > What I need though is a one-click means of installing my data directories > into the correct area on the user's drive. > > IE > > user.home/wwmkr. > Oh well. If you just need to copy some data in user.home there's an easy way to do it. I.E. in your project directory there's a file called "mydata.txt" and you want to install it when you distribute the installation package. When you create the executable or the installation package the file "mydata.txt" is integrated in the binary too. Now you want to install it in user.home &/ blabla. The only thing you need when you start the app is to check if exist user.home &/ "blabla" &/ "mydata.txt". If not exist just copy it: COPY "mydata.txt" TO user.home &/ "blabla" &/ "mydata.txt". "mydata.txt" is integrated in the binary: it's just a matter of extracting it with COPY. If you need to install files in a directory where you need root permissions, you can do the same thing asking root password to the user, or tell the user that to "complete the installation" the app must be run as root for the first time. > Using linux's archive manager does not give me that option automatically. > Maybe there is a nice liux packager out there for the data files etc? > > Second I need to know how to get the software in front of the people's eyes > who need it. How does one distribute a software efficiently and > effectively? Recruit alpha and beta testers etc. > account on freshmeat.net or kde-apps.org. Stefano > > JB SKaggs From eilert-sprachen at ...221... Mon Jun 23 09:42:55 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 23 Jun 2008 09:42:55 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> Message-ID: <485F53FF.8040701@...221...> Stefan Miefert schrieb: > Hello, > > how can i select a tableview entry? > > I use this code > > Public sub tableview_data(Row AS Integer, Column AS Integer) > > RESdata.MoveTo(Row) > Tableview.data.text = Str(REsdata(RESdata.fields[column].name]) > > > If Column = 0 then > ' How can I select this entry?! > End if > end > > I wouldn't do it in the _data event but somewhere else. Then try Tableview.MoveTo(Row, Column) Tableview.Current.Selected = True Rolf From smiefert at ...784... Mon Jun 23 10:26:17 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 23 Jun 2008 10:26:17 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <485F53FF.8040701@...221...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> <485F53FF.8040701@...221...> Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4CF8@...1899...> > I wouldn't do it in the _data event but somewhere else. Then try > > Tableview.MoveTo(Row, Column) > Tableview.Current.Selected = True Hello, hm, this dosent work. Their is no select/selected after the "TBLview.xxxx" From smiefert at ...784... Mon Jun 23 10:54:46 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 23 Jun 2008 10:54:46 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <485F53FF.8040701@...221...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> <485F53FF.8040701@...221...> Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4CF9@...1899...> > Tableview.MoveTo(Row, Column) > Tableview.Current.Selected = True Hello, I try this Tableview.Rows[3].selected = true Because your example dosent work. This is running fine but how can I get the rownumber? Tableview.find(row,column) # Didn't work? Or? How can I get the rownumber ? From eilert-sprachen at ...221... Mon Jun 23 12:15:03 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 23 Jun 2008 12:15:03 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <8D42310D957CFB46AA11921A711D4D1601F32B4CF8@...1899...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> <485F53FF.8040701@...221...> <8D42310D957CFB46AA11921A711D4D1601F32B4CF8@...1899...> Message-ID: <485F77A7.5080108@...221...> Stefan Miefert schrieb: >> I wouldn't do it in the _data event but somewhere else. Then try >> >> Tableview.MoveTo(Row, Column) >> Tableview.Current.Selected = True > > > Hello, > > hm, this dosent work. Their is no select/selected after the "TBLview.xxxx" > Oops - sorry, I didn't look this up before I answered... You're right, it's Tableview.Rows[something].Selected Maybe there are 2 things: not to write it in the _data event AND look which mode the control has for selecting Rows and Columns. I always use Line mode, never Both. Rolf From o.s.p at ...69... Mon Jun 23 13:43:04 2008 From: o.s.p at ...69... (o.s.p) Date: Mon, 23 Jun 2008 11:43:04 +0000 Subject: [Gambas-user] feature request Message-ID: <485F8C48.3030702@...69...> hallo! i'm writing a litte app so i've seen i would like some changes in the ide: -the hierachy browser at a side of the proprierty editor (into a sidepanel) so i can easily select and edit object -the hierachy browser with the option to view as tree or grouped by group (selecting the group i can select all its object and edit them) -the grid in the form editor must be configurable and switchable off thats all for now! ;) From gambas at ...1... Mon Jun 23 14:22:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 14:22:52 +0200 Subject: [Gambas-user] feature request In-Reply-To: <485F8C48.3030702@...69...> References: <485F8C48.3030702@...69...> Message-ID: <200806231422.52196.gambas@...1...> On lundi 23 juin 2008, o.s.p wrote: > hallo! > i'm writing a litte app so i've seen i would like some changes in the ide: > -the hierachy browser at a side of the proprierty editor (into a > sidepanel) so i can easily select and edit object > -the hierachy browser with the option to view as tree or grouped by > group (selecting the group i can select all its object and edit them) > -the grid in the form editor must be configurable and switchable off > > thats all for now! > ;) > Can you make some screenshots mockups, so that everybody is sure to understand what you want? -- Benoit Minisini From patrik at ...1931... Mon Jun 23 15:30:44 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Mon, 23 Jun 2008 15:30:44 +0200 Subject: [Gambas-user] Access resources in another installed gambas project Message-ID: <577069a50806230630x4e0d07eahb4c42536cc1e8b32@...627...> Hello, Im currently working on a project involving a couple of MB of sound clips and pictures. Is it be possible to split the 'data' to a separate Gambas project, and access sounds and images from the main project? In Delphi, i wrote a DLL, and in Java jar files. What is the best and easiest way to do this in Gambas? I like the idea of making the data project in gambas too, since it is so easy to generate packages. -- Patrik Karlsson From smiefert at ...784... Mon Jun 23 15:29:26 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 23 Jun 2008 15:29:26 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <485F77A7.5080108@...221...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> <485F53FF.8040701@...221...> <8D42310D957CFB46AA11921A711D4D1601F32B4CF8@...1899...> <485F77A7.5080108@...221...> Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4D05@...1899...> > Oops - sorry, I didn't look this up before I answered... > > You're right, it's Tableview.Rows[something].Selected > > Maybe there are 2 things: not to write it in the _data event AND look > which mode the control has for selecting Rows and Columns. I always use > Line mode, never Both. Hello, And how you do it? How can I get the rownumber for a specified entry? Direct after the sqlquery there is nothing in the table. I think the data is filled asyncron? When you get the value of a field and how you select it? From lordheavym at ...626... Mon Jun 23 15:41:08 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 23 Jun 2008 15:41:08 +0200 Subject: [Gambas-user] Access resources in another installed gambas project In-Reply-To: <577069a50806230630x4e0d07eahb4c42536cc1e8b32@...627...> References: <577069a50806230630x4e0d07eahb4c42536cc1e8b32@...627...> Message-ID: <200806231541.08296.lordheavym@...626...> Le Monday 23 June 2008 15:30:44 Patrik Karlsson, vous avez ?crit?: > Hello, Im currently working on a project involving a couple of MB of > sound clips and pictures. > Is it be possible to split the 'data' to a separate Gambas project, > and access sounds and images from the main project? > > In Delphi, i wrote a DLL, and in Java jar files. > What is the best and easiest way to do this in Gambas? > > I like the idea of making the data project in gambas too, since it is > so easy to generate packages. You can build your data project as a component and access ressources through an api ? -- Feel the power of a free Basic at http://gambas.sourceforge.net ... And have fun ! From patrik at ...1931... Mon Jun 23 15:46:26 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Mon, 23 Jun 2008 15:46:26 +0200 Subject: [Gambas-user] Project translation, Change System.Language in run time Message-ID: <577069a50806230646y5adebe07te6f80e8cfa37362a@...627...> When I try no change System.Language in run time, my objects text does not change. If I start with LC_ALL=xx, I get the selected language, but how to change it while running? PS System.Language = "fa_IR" change the direction to Right To Left in menues and tabs, but the strings are not changed. Am I missing something? -- Patrik Karlsson From ron at ...1740... Mon Jun 23 17:08:30 2008 From: ron at ...1740... (Ron) Date: Mon, 23 Jun 2008 17:08:30 +0200 Subject: [Gambas-user] Bug report Message-ID: <485FBC6E.70006@...1740...> Hi, This will raise a signal 11 and produce a coredump PUBLIC SUB Form_Open() DIM b[2] AS Byte b[0] = &H1 b[1] = &H2 txtBox.Text = Str$(b) END I know the Str$ is complete bogus, but to dump core on that... Gambas 2.7.0 Debian 4.0 Regards, Ron. From patrik at ...1931... Mon Jun 23 18:58:39 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Mon, 23 Jun 2008 18:58:39 +0200 Subject: [Gambas-user] Access resources in another installed gambas project In-Reply-To: <200806231541.08296.lordheavym@...626...> References: <577069a50806230630x4e0d07eahb4c42536cc1e8b32@...627...> <200806231541.08296.lordheavym@...626...> Message-ID: <577069a50806230958s39ae03bbld138397e8630221@...627...> >> Is it be possible to split the 'data' to a separate Gambas project, >> and access sounds and images from the main project? > You can build your data project as a component and access ressources through an api ? Thank you, I will look into that. Found this page, http://www.gambasdoc.org/help/dev/gambas looks like a good place t o start. :) -- Patrik Karlsson From gambas at ...1... Mon Jun 23 19:49:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 19:49:33 +0200 Subject: [Gambas-user] How to turn off watch window In-Reply-To: <18048025.post@...1379...> References: <18048025.post@...1379...> Message-ID: <200806231949.33579.gambas@...1...> On samedi 21 juin 2008, jbskaggs wrote: > It's been a few months since Ive asked a question. But this is frustrating > me and it's probably a noobie question- even though I am much more familiar > with Gambas. > > Somehow I turned on a watch window I assume that's the name of the window > I don't know. > > A greyed out window with an eyeball in the topright corner appears whenever > I run the program. > > It turned on when I was Find and replacing a text- that text is in the > title bar of the window. > > I don't know how I turned it on and I can't figure out how to turn it off- > it won't close while the program runs. > > Please help!%-| > > JB SKaggs On KDE, the watch windows all have a close button like any other top-level windows. Which window manager or desktop do you use? -- Benoit Minisini From gambas at ...1... Mon Jun 23 19:46:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 19:46:48 +0200 Subject: [Gambas-user] Select a Tabelview entry? In-Reply-To: <8D42310D957CFB46AA11921A711D4D1601F32B4CF9@...1899...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4CF0@...1899...> <485F53FF.8040701@...221...> <8D42310D957CFB46AA11921A711D4D1601F32B4CF9@...1899...> Message-ID: <200806231946.48786.gambas@...1...> On lundi 23 juin 2008, Stefan Miefert wrote: > > Tableview.MoveTo(Row, Column) > > Tableview.Current.Selected = True > > Hello, > > I try this > Tableview.Rows[3].selected = true > > Because your example dosent work. > This is running fine but how can I get the rownumber? > Tableview.find(row,column) # > Didn't work? Or? How can I get the rownumber ? > Your question is not very clear. Which rownumber of what do you want? If you are inside the Data event, the row number is given by the 'Row' function parameter. Otherwise, I don't see what you are talking about. -- Benoit Minisini From gambas at ...1... Mon Jun 23 19:44:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 19:44:30 +0200 Subject: [Gambas-user] Bug report In-Reply-To: <485FBC6E.70006@...1740...> References: <485FBC6E.70006@...1740...> Message-ID: <200806231944.30878.gambas@...1...> On lundi 23 juin 2008, Ron wrote: > Hi, > > This will raise a signal 11 and produce a coredump > > PUBLIC SUB Form_Open() > > DIM b[2] AS Byte > > b[0] = &H1 > b[1] = &H2 > > txtBox.Text = Str$(b) > > END > > I know the Str$ is complete bogus, but to dump core on that... > > Gambas 2.7.0 > Debian 4.0 > > Regards, > Ron. > I admit that static array are bogus: Str$(b) syntactically means nothing, and you should get an error instead of a crash. As for Str$() by itself, I don't think it so bogus. I suggest you read carefully the documentation of the function. Regards, -- Benoit Minisini From jbskaggs at ...1871... Mon Jun 23 21:46:45 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 23 Jun 2008 12:46:45 -0700 (PDT) Subject: [Gambas-user] How to turn off watch window In-Reply-To: <200806231949.33579.gambas@...1...> References: <18048025.post@...1379...> <200806231949.33579.gambas@...1...> Message-ID: <18076840.post@...1379...> I use the standard gnome desktop that comes with preset with ubuntu. Alt f4 did close it and it hasn't popped up again. JB Benoit Minisini wrote: > > On samedi 21 juin 2008, jbskaggs wrote: >> It's been a few months since Ive asked a question. But this is >> frustrating >> me and it's probably a noobie question- even though I am much more >> familiar >> with Gambas. >> >> Somehow I turned on a watch window I assume that's the name of the >> window >> I don't know. >> >> A greyed out window with an eyeball in the topright corner appears >> whenever >> I run the program. >> >> It turned on when I was Find and replacing a text- that text is in the >> title bar of the window. >> >> I don't know how I turned it on and I can't figure out how to turn it >> off- >> it won't close while the program runs. >> >> Please help!%-| >> >> JB SKaggs > > On KDE, the watch windows all have a close button like any other top-level > windows. Which window manager or desktop do you use? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/How-to-turn-off-watch-window-tp18048025p18076840.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Mon Jun 23 23:27:13 2008 From: rterry at ...1822... (richard terry) Date: Tue, 24 Jun 2008 07:27:13 +1000 Subject: [Gambas-user] feature request In-Reply-To: <200806231422.52196.gambas@...1...> References: <485F8C48.3030702@...69...> <200806231422.52196.gambas@...1...> Message-ID: <200806240727.14064.rterry@...1822...> On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote: > On lundi 23 juin 2008, o.s.p wrote: > > hallo! > > i'm writing a litte app so i've seen i would like some changes in the > > ide: -the hierachy browser at a side of the proprierty editor (into a > > sidepanel) so i can easily select and edit object > > -the hierachy browser with the option to view as tree or grouped by > > group (selecting the group i can select all its object and edit them) > > -the grid in the form editor must be configurable and switchable off > > > > thats all for now! > > ;) > > Can you make some screenshots mockups, so that everybody is sure to > understand what you want? enclosed is mockup, identical to search in the popup console -------------- next part -------------- A non-text attachment was scrubbed... Name: mockup_heirachy.png Type: image/png Size: 44427 bytes Desc: not available URL: From rterry at ...1822... Mon Jun 23 06:45:37 2008 From: rterry at ...1822... (richard terry) Date: Mon, 23 Jun 2008 14:45:37 +1000 Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <18061304.post@...1379...> References: <18061304.post@...1379...> Message-ID: <200806231445.37269.rterry@...1822...> On Mon, 23 Jun 2008 11:51:55 am jbskaggs wrote: > After six months I have a package that is nearly finished. > > I understand how to make an installation package via Gambas. > > What I need though is a one-click means of installing my data directories > into the correct area on the user's drive. > > IE > > user.home/wwmkr. > > Using linux's archive manager does not give me that option automatically. > Maybe there is a nice liux packager out there for the data files etc? > > Second I need to know how to get the software in front of the people's eyes > who need it. How does one distribute a software efficiently and > effectively? Recruit alpha and beta testers etc. Use Me!! As long as its not too onerus time wise, I'll give it a flogging. As I'm a total computer klutz, I can kill anything instantly, so I'd be surprised if your software would be bug free in my hands. Mail me. You'll need some sort of error logging though, cause I can't tediously record everything (but then maybe you are such a good software engineer I won't have to. Regards Richard > > JB SKaggs From jbskaggs at ...1871... Tue Jun 24 02:09:50 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 23 Jun 2008 17:09:50 -0700 (PDT) Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <200806231445.37269.rterry@...1822...> References: <18061304.post@...1379...> <200806231445.37269.rterry@...1822...> Message-ID: <18081099.post@...1379...> I replied to this via email. But I'd love any help. The website where I host my stuff is www.wwmkr.com. I will be posting a new release this evening that rewrites several complete modules. JB richard terry-2 wrote: > > On Mon, 23 Jun 2008 11:51:55 am jbskaggs wrote: >> After six months I have a package that is nearly finished. >> >> I understand how to make an installation package via Gambas. >> >> What I need though is a one-click means of installing my data directories >> into the correct area on the user's drive. >> >> IE >> >> user.home/wwmkr. >> >> Using linux's archive manager does not give me that option automatically. >> Maybe there is a nice liux packager out there for the data files etc? >> >> Second I need to know how to get the software in front of the people's >> eyes >> who need it. How does one distribute a software efficiently and >> effectively? Recruit alpha and beta testers etc. > > Use Me!! > > As long as its not too onerus time wise, I'll give it a flogging. > > As I'm a total computer klutz, I can kill anything instantly, so I'd be > surprised if your software would be bug free in my hands. Mail me. > > You'll need some sort of error logging though, cause I can't tediously > record > everything (but then maybe you are such a good software engineer I won't > have > to. > > Regards > > Richard > >> >> JB SKaggs > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/How-to-package-and-distribute-our-software-written-in-Gambas-tp18061304p18081099.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Tue Jun 24 02:33:09 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 23 Jun 2008 17:33:09 -0700 (PDT) Subject: [Gambas-user] Simple question how to select and activate a radiobutton via code Message-ID: <18081327.post@...1379...> When I try and use radiobutton_click() it performs the commands in the radiobuton_click() sub but it does not show the radiobutton as being "depressed" or selected as if you had clicked on it with a mouse. I have also tried radiobutton.setfocus that did not do it either. Simply put: when the code loads a file and the resulting variable is "male" then the form should show the radiobutton1male as being selected if the variable reads female then radiobutton2female as being selected But the file loads properly and the variables set properly so what am I missing to change the radiobutton? heres code: IF Exist(PrThing.projectpath &/ "characters/" & ListView1.Item.text & ".txt") thislist = file.Load(PrThing.projectpath &/ "characters/" & ListView1.Item.text & ".txt") elt = Split(thislist, "^") ListView1.Clear FOR EACH sb IN elt c += 1 IF c = 1 THEN TextBox1.text = sb IF c = 2 THEN TextBox7.text = sb IF c = 3 THEN gender = sb IF c = 4 THEN TextBox3.text = sb IF c = 5 THEN TextBox4.text = sb IF c = 6 THEN TextBox5.text = sb IF c = 7 THEN TextBox6.text = sb IF c = 8 THEN TextArea1.text = sb IF c = 9 THEN gifpic = sb NEXT IF gender = "male" THEN RadioButton1male_Click IF gender = "female" THEN RadioButton2female_Click ENDIF In the following screenshot the gender is male but the radiobutton is still showing female. http://www.nabble.com/file/p18081327/%2BCharacters.png -- View this message in context: http://www.nabble.com/Simple-question-how-to-select-and-activate-a-radiobutton-via-code-tp18081327p18081327.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Tue Jun 24 02:40:56 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 23 Jun 2008 20:40:56 -0400 Subject: [Gambas-user] Simple question how to select and activate a radiobutton via code In-Reply-To: <18081327.post@...1379...> References: <18081327.post@...1379...> Message-ID: <200806232040.57045.sourceforge-raindog2@...94...> On Monday 23 June 2008 20:33, jbskaggs wrote: > When I try and use radiobutton_click() > it performs the commands in the radiobuton_click() sub but it does > not show the radiobutton as being "depressed" or selected as if you > had clicked on it with a mouse. You've got it a bit backwards. You need to change the Value property of the radio button, which will trigger the Click event, not the other way around. http://gambasdoc.org/help/comp/gb.qt/radiobutton/.click "Raised when the user clicks on the RadioButton or if its value changes." Rob From charles at ...1784... Tue Jun 24 08:05:48 2008 From: charles at ...1784... (charlesg) Date: Mon, 23 Jun 2008 23:05:48 -0700 (PDT) Subject: [Gambas-user] Simple question how to select and activate a radiobutton via code In-Reply-To: <18081327.post@...1379...> References: <18081327.post@...1379...> Message-ID: <18084380.post@...1379...> IF gender = "male" THEN RadioButton1male.value=1 rgds -- View this message in context: http://www.nabble.com/Simple-question-how-to-select-and-activate-a-radiobutton-via-code-tp18081327p18084380.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Tue Jun 24 09:43:47 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 24 Jun 2008 00:43:47 -0700 (PDT) Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <200806230941.19157.rospolosco@...152...> References: <18061304.post@...1379...> <200806230941.19157.rospolosco@...152...> Message-ID: <18085643.post@...1379...> Does this have to be done for each file or can I copy whole directories? JB Skaggs Stefano Palmeri wrote: > > Il luned? 23 giugno 2008 03:51:55 jbskaggs ha scritto: >> After six months I have a package that is nearly finished. >> >> I understand how to make an installation package via Gambas. >> >> What I need though is a one-click means of installing my data directories >> into the correct area on the user's drive. >> >> IE >> >> user.home/wwmkr. >> > > Oh well. If you just need to copy some data in user.home > there's an easy way to do it. > > I.E. in your project directory there's a file called "mydata.txt" > and you want to install it when you distribute the installation package. > When you create the executable or the installation package the > file "mydata.txt" is integrated in the binary too. > > Now you want to install it in user.home &/ blabla. > > The only thing you need when you start the app is > to check if exist user.home &/ "blabla" &/ "mydata.txt". > > If not exist just copy it: > > COPY "mydata.txt" TO user.home &/ "blabla" &/ "mydata.txt". > > "mydata.txt" is integrated in the binary: it's just a matter > of extracting it with COPY. > > If you need to install files in a directory where you need > root permissions, you can do the same thing asking root > password to the user, or tell the user that to "complete the installation" > the app must be run as root for the first time. > >> Using linux's archive manager does not give me that option automatically. >> Maybe there is a nice liux packager out there for the data files etc? >> >> Second I need to know how to get the software in front of the people's >> eyes >> who need it. How does one distribute a software efficiently and >> effectively? Recruit alpha and beta testers etc. >> > > account on freshmeat.net or kde-apps.org. > > Stefano > > >> >> JB SKaggs > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/How-to-package-and-distribute-our-software-written-in-Gambas-tp18061304p18085643.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Tue Jun 24 11:11:49 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 24 Jun 2008 11:11:49 +0200 Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <18085643.post@...1379...> References: <18061304.post@...1379...> <200806230941.19157.rospolosco@...152...> <18085643.post@...1379...> Message-ID: <200806241111.49569.rospolosco@...152...> Il marted? 24 giugno 2008 09:43:47 jbskaggs ha scritto: > Does this have to be done for each file or can I copy whole directories? > > JB Skaggs > COPY manages only single files. you could create a *.tar archive file of your data, then COPY the single *.tar file and then extract it. Not very clean... Stefano > Stefano Palmeri wrote: > > Il luned? 23 giugno 2008 03:51:55 jbskaggs ha scritto: > >> After six months I have a package that is nearly finished. > >> > >> I understand how to make an installation package via Gambas. > >> > >> What I need though is a one-click means of installing my data > >> directories into the correct area on the user's drive. > >> > >> IE > >> > >> user.home/wwmkr. > > > > Oh well. If you just need to copy some data in user.home > > there's an easy way to do it. > > > > I.E. in your project directory there's a file called "mydata.txt" > > and you want to install it when you distribute the installation package. > > When you create the executable or the installation package the > > file "mydata.txt" is integrated in the binary too. > > > > Now you want to install it in user.home &/ blabla. > > > > The only thing you need when you start the app is > > to check if exist user.home &/ "blabla" &/ "mydata.txt". > > > > If not exist just copy it: > > > > COPY "mydata.txt" TO user.home &/ "blabla" &/ "mydata.txt". > > > > "mydata.txt" is integrated in the binary: it's just a matter > > of extracting it with COPY. > > > > If you need to install files in a directory where you need > > root permissions, you can do the same thing asking root > > password to the user, or tell the user that to "complete the > > installation" the app must be run as root for the first time. > > > >> Using linux's archive manager does not give me that option > >> automatically. Maybe there is a nice liux packager out there for the > >> data files etc? > >> > >> Second I need to know how to get the software in front of the people's > >> eyes > >> who need it. How does one distribute a software efficiently and > >> effectively? Recruit alpha and beta testers etc. > > > > account on freshmeat.net or kde-apps.org. > > > > Stefano > > > >> JB SKaggs > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jun 24 11:35:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 11:35:13 +0200 Subject: [Gambas-user] How to package and distribute our software written in Gambas In-Reply-To: <18061304.post@...1379...> References: <18061304.post@...1379...> Message-ID: <200806241135.13325.gambas@...1...> On lundi 23 juin 2008, jbskaggs wrote: > After six months I have a package that is nearly finished. > > I understand how to make an installation package via Gambas. > > What I need though is a one-click means of installing my data directories > into the correct area on the user's drive. > > IE > > user.home/wwmkr. > > Using linux's archive manager does not give me that option automatically. > Maybe there is a nice liux packager out there for the data files etc? > > Second I need to know how to get the software in front of the people's eyes > who need it. How does one distribute a software efficiently and > effectively? Recruit alpha and beta testers etc. > > > JB SKaggs Hi, Files and directories that must go to the user directory are never packaged directly, because you do not know what are the user directories at packaging time. So they must be copied to the user directory by the program at first execution, as all programs do. At the moment, Gambas IDE can only put the executable in the final package, so you have to put your initialization file inside the project and copy them by hand. This can be a problem if you have a lot of initialization files. In that case, I suggest you create an archive of these file, so that you have only one file in your project, and that you unpack it in the user directory. You must suppose that the 'tar' and 'gzip' are present on the system, but this is usually true. In the future, the Gambas IDE packager my have support for packaging external files and/or adding manual dependencies. Regards, -- Benoit Minisini From patrik at ...1931... Tue Jun 24 20:56:55 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Tue, 24 Jun 2008 20:56:55 +0200 Subject: [Gambas-user] Problem implementing events _inside_ a class Message-ID: <577069a50806241156l70db83c3j7b7c57bdefed96e2@...627...> Hi, since I'm new to Gambas it's a constant struggle, but a nice one that is. :) I'm writng a class, CDiceBoard, that INHERITS Panel. Everything went ok until it was time to implement some events for my class. The following code works, but not the way I want it to be. --- DIM hDiceBoard2 AS CDiceBoard hDiceBoard2 = NEW CDiceBoard(ME) AS "myDiceBoard" PUBLIC SUB myDiceBoard_MouseDown() DEBUG END --- How can I put the _MouseDown() inside CDiceBoard.class and make it work? Regards -- Patrik Karlsson From o.s.p at ...69... Tue Jun 24 21:01:41 2008 From: o.s.p at ...69... (o.s.p) Date: Tue, 24 Jun 2008 19:01:41 +0000 Subject: [Gambas-user] feature request In-Reply-To: <200806240727.14064.rterry@...1822...> References: <485F8C48.3030702@...69...> <200806231422.52196.gambas@...1...> <200806240727.14064.rterry@...1822...> Message-ID: <48614495.8020200@...69...> richard terry ha scritto: > On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote: > >> On lundi 23 juin 2008, o.s.p wrote: >> >>> hallo! >>> i'm writing a litte app so i've seen i would like some changes in the >>> ide: -the hierachy browser at a side of the proprierty editor (into a >>> sidepanel) so i can easily select and edit object >>> -the hierachy browser with the option to view as tree or grouped by >>> group (selecting the group i can select all its object and edit them) >>> -the grid in the form editor must be configurable and switchable off >>> >>> thats all for now! >>> ;) >>> >> Can you make some screenshots mockups, so that everybody is sure to >> understand what you want? >> > > enclosed is mockup, identical to search in the popup console > something like this ugly image.... there are 2 side panels one for the proprities and one for the hierarchy/groups in this i've pasted the image of richard on the top and a snapshot of the actual hierachy panel only to show the idea; of course this is placed in the Groups tab. i know i'm not very clear in my english.... :( -------------- next part -------------- A non-text attachment was scrubbed... Name: pro-hei.png Type: image/png Size: 155542 bytes Desc: not available URL: From gambas at ...1... Tue Jun 24 21:15:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 21:15:31 +0200 Subject: [Gambas-user] feature request In-Reply-To: <48614495.8020200@...69...> References: <485F8C48.3030702@...69...> <200806240727.14064.rterry@...1822...> <48614495.8020200@...69...> Message-ID: <200806242115.31090.gambas@...1...> On mardi 24 juin 2008, o.s.p wrote: > richard terry ha scritto: > > On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote: > >> On lundi 23 juin 2008, o.s.p wrote: > >>> hallo! > >>> i'm writing a litte app so i've seen i would like some changes in the > >>> ide: -the hierachy browser at a side of the proprierty editor (into a > >>> sidepanel) so i can easily select and edit object > >>> -the hierachy browser with the option to view as tree or grouped by > >>> group (selecting the group i can select all its object and edit them) > >>> -the grid in the form editor must be configurable and switchable off > >>> > >>> thats all for now! > >>> ;) > >> > >> Can you make some screenshots mockups, so that everybody is sure to > >> understand what you want? > > > > enclosed is mockup, identical to search in the popup console > > something like this ugly image.... > there are 2 side panels one for the proprities and one for the > hierarchy/groups > in this i've pasted the image of richard on the top and a snapshot of > the actual hierachy panel only to show the idea; > of course this is placed in the Groups tab. > > i know i'm not very clear in my english.... > > :( I don't understand what this "Groups" tab is, and what should be shown in it. -- Benoit Minisini From o.s.p at ...69... Wed Jun 25 10:56:04 2008 From: o.s.p at ...69... (o.s.p) Date: Wed, 25 Jun 2008 08:56:04 +0000 Subject: [Gambas-user] feature request In-Reply-To: <200806242115.31090.gambas@...1...> References: <485F8C48.3030702@...69...> <200806240727.14064.rterry@...1822...> <48614495.8020200@...69...> <200806242115.31090.gambas@...1...> Message-ID: <48620824.3000406@...69...> Benoit Minisini ha scritto: > On mardi 24 juin 2008, o.s.p wrote: > >> richard terry ha scritto: >> >>> On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote: >>> >>>> On lundi 23 juin 2008, o.s.p wrote: >>>> >>>>> hallo! >>>>> i'm writing a litte app so i've seen i would like some changes in the >>>>> ide: -the hierachy browser at a side of the proprierty editor (into a >>>>> sidepanel) so i can easily select and edit object >>>>> -the hierachy browser with the option to view as tree or grouped by >>>>> group (selecting the group i can select all its object and edit them) >>>>> -the grid in the form editor must be configurable and switchable off >>>>> >>>>> thats all for now! >>>>> ;) >>>>> >>>> Can you make some screenshots mockups, so that everybody is sure to >>>> understand what you want? >>>> >>> enclosed is mockup, identical to search in the popup console >>> >> something like this ugly image.... >> there are 2 side panels one for the proprities and one for the >> hierarchy/groups >> in this i've pasted the image of richard on the top and a snapshot of >> the actual hierachy panel only to show the idea; >> of course this is placed in the Groups tab. >> >> i know i'm not very clear in my english.... >> >> :( >> > > I don't understand what this "Groups" tab is, and what should be shown in it I'm writing a calculator for my use so I've many small buttons that I've grouped (with the group property) to have common event handler. some times i need to change something into a property of the controls of one this groups (eg drag it into anther position) so if i have a panel which list the used controls sorted and grouped by this property i can select it all and make my changes. the side panel for groups/hierarchy i think is useful because it shows another layout of the app, useful if your form at design time i'snt big enough to show all objects used, increases the visual interaction... ...only a my idea... From o.s.p at ...69... Wed Jun 25 11:17:45 2008 From: o.s.p at ...69... (o.s.p) Date: Wed, 25 Jun 2008 09:17:45 +0000 Subject: [Gambas-user] feature request In-Reply-To: <48620824.3000406@...69...> References: <485F8C48.3030702@...69...> <200806240727.14064.rterry@...1822...> <48614495.8020200@...69...> <200806242115.31090.gambas@...1...> <48620824.3000406@...69...> Message-ID: <48620D39.1040801@...69...> o.s.p ha scritto: > Benoit Minisini ha scritto: > >> On mardi 24 juin 2008, o.s.p wrote: >> >> >>> richard terry ha scritto: >>> >>> >>>> On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote: >>>> >>>> >>>>> On lundi 23 juin 2008, o.s.p wrote: >>>>> >>>>> >>>>>> hallo! >>>>>> i'm writing a litte app so i've seen i would like some changes in the >>>>>> ide: -the hierachy browser at a side of the proprierty editor (into a >>>>>> sidepanel) so i can easily select and edit object >>>>>> -the hierachy browser with the option to view as tree or grouped by >>>>>> group (selecting the group i can select all its object and edit them) >>>>>> -the grid in the form editor must be configurable and switchable off >>>>>> >>>>>> thats all for now! >>>>>> ;) >>>>>> >>>>>> >>>>> Can you make some screenshots mockups, so that everybody is sure to >>>>> understand what you want? >>>>> >>>>> >>>> enclosed is mockup, identical to search in the popup console >>>> >>>> >>> something like this ugly image.... >>> there are 2 side panels one for the proprities and one for the >>> hierarchy/groups >>> in this i've pasted the image of richard on the top and a snapshot of >>> the actual hierachy panel only to show the idea; >>> of course this is placed in the Groups tab. >>> >>> i know i'm not very clear in my english.... >>> >>> :( >>> >>> >> I don't understand what this "Groups" tab is, and what should be shown in it >> > I'm writing a calculator for my use so I've many small buttons that I've > grouped (with the group property) to have common event handler. > some times i need to change something into a property of the controls of > one this groups (eg drag it into anther position) so if i have a panel > which list the used controls sorted and grouped by this property i can > select it all and make my changes. > the side panel for groups/hierarchy i think is useful because it shows > another layout of the app, useful if your form at design time i'snt big > enough to show all objects used, increases the visual interaction... > ..only a my idea... > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > an image tells more... bye -------------- next part -------------- A non-text attachment was scrubbed... Name: gr.png Type: image/png Size: 28626 bytes Desc: not available URL: From nathan.neff at ...626... Wed Jun 25 16:21:29 2008 From: nathan.neff at ...626... (Nathan Neff) Date: Wed, 25 Jun 2008 09:21:29 -0500 Subject: [Gambas-user] Regexp Submatches Message-ID: <211769420806250721n6f1c329ehc9099bb78a910635@...627...> Hello, I would like some help using the Submatches property of the Regexp feature in Gambas. For example, I want to find all non-whitespace characters in the string "Gambas", and iterate through them. I tried code like this: DIM rege AS NEW Regexp DIM i AS Integer ' The \S is a non-whitespace character ' See http://www.perl.com/doc/manual/html/pod/perlre.html ' The other left \ is to escape the right \, so that Gambas isn't confused. rege.Compile("(\\S)") rege.Exec("gambas") FOR i = 1 TO rege.SubMatches.count Message(rege.SubMatches[i].Text) NEXT But I can only get it to print out the "g" character. I want to use more complex regular expressions, which is why I'm not using the LIKE and SPLIT functions of the String object. Can anyone help? I'm running Gambas 2.0.0 on Ubuntu Linux Thanks, --Nate From sourceforge-raindog2 at ...94... Wed Jun 25 19:55:26 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 25 Jun 2008 13:55:26 -0400 Subject: [Gambas-user] Regexp Submatches In-Reply-To: <211769420806250721n6f1c329ehc9099bb78a910635@...627...> References: <211769420806250721n6f1c329ehc9099bb78a910635@...627...> Message-ID: <200806251355.26888.sourceforge-raindog2@...94...> On Wednesday 25 June 2008 10:21, Nathan Neff wrote: > For example, I want to find all non-whitespace characters in the > string "Gambas", and > iterate through them. I tried code like this: > rege.Compile("(\\S)") > FOR i = 1 TO rege.SubMatches.count > Message(rege.SubMatches[i].Text) > But I can only get it to print out the "g" character. Submatches refer to the parts of your regular expression in parentheses; matches don't automatically repeat unless you call Exec multiple times. For example, if you wrote rege.Compile("(\\S)..(\\S).(\\S)") you would get three entries in Submatches, which would be g, b and s. You should theoretically be able to do this, but I just tested it in a Perl one-liner and there it only returns the last character: rege.Compile("(\\S)+") A better solution is to use the Offset property and write your own method to do a global search (here's some pseudocode to get you started:) private function GRX(pattern as string, subject as string) as String[] dim re as new Regexp dim matches as new String[] dim tmp as string tmp = subject re.Compile(pattern) re.Exec(tmp) do while re.text <> "" matches.add(re.text) tmp = mid(tmp, re.offset + 2) ' may need to be 1, can't remember re.Exec(tmp) loop return matches end I probably should have just come up with some way to do that inside the component, but it didn't occur to me at the time. I see that most of the class member documentation never made it over from the old Wiki to the current one, so I'll try to take some time and fix that if I can find my old static copy of the wiki. I wonder if it would be useful to at least default to a syntax summary (as in VB's class inspector) rather than prompting the user to edit the page if the documentation's missing. As it is, if you edit the page but leave it blank and save it, the wiki inserts the syntax summary anyway. Rob From ron at ...1740... Wed Jun 25 22:23:24 2008 From: ron at ...1740... (Ron) Date: Wed, 25 Jun 2008 22:23:24 +0200 Subject: [Gambas-user] Setfocus issue Message-ID: <4862A93C.3030208@...1740...> Hi, I have a window with 2 Textboxes I want to give focus to TextBox2 upon loading of the form, if I open the form as a normal window, it's ok. Textbox2 gets the focus. If I load the form on a workspace, TextBox2.SetFocus doesn't work. See attached example project Do I have to reread the docs and shame myself, or should it work the same way with workspace and normal window? Regards, Ron the 2nd. -------------- next part -------------- A non-text attachment was scrubbed... Name: SetFocus-0.0.1.tar.gz Type: application/x-tgz Size: 8222 bytes Desc: not available URL: From Nathan.Neff at ...626... Wed Jun 25 23:33:33 2008 From: Nathan.Neff at ...626... (Nate-37) Date: Wed, 25 Jun 2008 14:33:33 -0700 (PDT) Subject: [Gambas-user] Re gexp Submatches In-Reply-To: <200806251355.26888.sourceforge-raindog2@...94...> References: <211769420806250721n6f1c329ehc9099bb78a910635@...627...> <200806251355.26888.sourceforge-raindog2@...94...> Message-ID: <18122201.post@...1379...> Wow! Thank you Rob. I found some problems with your pseudo-code, but I got it to do what I wanted. I uploaded a snapshot of my program, as well as the .class and the .form files to my website http://notesmine.com/gambas_regexp Thank you for your help! PS: I also was confused by the wiki, when I was prompted for a username/password when I clicked on the properties of the Regexp. --Nate Rob Kudla wrote: > > On Wednesday 25 June 2008 10:21, Nathan Neff wrote: >> For example, I want to find all non-whitespace characters in the >> string "Gambas", and >> iterate through them. I tried code like this: >> rege.Compile("(\\S)") >> FOR i = 1 TO rege.SubMatches.count >> Message(rege.SubMatches[i].Text) >> But I can only get it to print out the "g" character. > > Submatches refer to the parts of your regular expression in > parentheses; matches don't automatically repeat unless you call Exec > multiple times. For example, if you wrote > > rege.Compile("(\\S)..(\\S).(\\S)") > > you would get three entries in Submatches, which would be g, b and s. > You should theoretically be able to do this, but I just tested it in > a Perl one-liner and there it only returns the last character: > > rege.Compile("(\\S)+") > > A better solution is to use the Offset property and write your own > method to do a global search (here's some pseudocode to get you > started:) > > private function GRX(pattern as string, subject as string) as String[] > > dim re as new Regexp > dim matches as new String[] > dim tmp as string > > tmp = subject > re.Compile(pattern) > re.Exec(tmp) > do while re.text <> "" > matches.add(re.text) > tmp = mid(tmp, re.offset + 2) ' may need to be 1, can't remember > re.Exec(tmp) > loop > > return matches > > end > > I probably should have just come up with some way to do that inside > the component, but it didn't occur to me at the time. > > I see that most of the class member documentation never made it over > from the old Wiki to the current one, so I'll try to take some time > and fix that if I can find my old static copy of the wiki. I wonder > if it would be useful to at least default to a syntax summary (as in > VB's class inspector) rather than prompting the user to edit the page > if the documentation's missing. As it is, if you edit the page but > leave it blank and save it, the wiki inserts the syntax summary > anyway. > > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Regexp-Submatches-tp18113718p18122201.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Thu Jun 26 01:23:15 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Jun 2008 18:23:15 -0500 Subject: [Gambas-user] Setfocus issue In-Reply-To: <4862A93C.3030208@...1740...> References: <4862A93C.3030208@...1740...> Message-ID: <1f1e8c1b0806251623v283bc6d5t52b21d682220f0df@...627...> what do you mean load it from a "workspace" On Wed, Jun 25, 2008 at 3:23 PM, Ron wrote: > > Hi, > > I have a window with 2 Textboxes I want to give focus to TextBox2 upon > loading of the form, if I open the form as a normal window, it's ok. > Textbox2 gets the focus. > If I load the form on a workspace, TextBox2.SetFocus doesn't work. > > See attached example project > > Do I have to reread the docs and shame myself, or should it work the same > way with workspace and normal window? > > Regards, > Ron the 2nd. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From ron at ...1740... Thu Jun 26 01:30:00 2008 From: ron at ...1740... (Ron) Date: Thu, 26 Jun 2008 01:30:00 +0200 Subject: [Gambas-user] Setfocus issue In-Reply-To: <1f1e8c1b0806251623v283bc6d5t52b21d682220f0df@...627...> References: <4862A93C.3030208@...1740...> <1f1e8c1b0806251623v283bc6d5t52b21d682220f0df@...627...> Message-ID: <4862D4F8.2050303@...1740...> Like so: --- PUBLIC SUB Button3_Click() OpenPage(FBarcode) END ' load a page onto the workspace PUBLIC SUB OpenPage(hForm AS Form) Workspace1.Add(hForm) Workspace1.ActiveWindow = hForm hForm.SetFocus END --- Instead of: PUBLIC SUB Button1_Click() FBarcode.Show END Regards, Ron. > what do you mean load it from a "workspace" > > > On Wed, Jun 25, 2008 at 3:23 PM, Ron wrote: > >> Hi, >> >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon >> loading of the form, if I open the form as a normal window, it's ok. >> Textbox2 gets the focus. >> If I load the form on a workspace, TextBox2.SetFocus doesn't work. >> >> See attached example project >> >> Do I have to reread the docs and shame myself, or should it work the same >> way with workspace and normal window? >> >> Regards, >> Ron the 2nd. >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jun 26 02:01:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 02:01:29 +0200 Subject: [Gambas-user] Setfocus issue In-Reply-To: <4862A93C.3030208@...1740...> References: <4862A93C.3030208@...1740...> Message-ID: <200806260201.29266.gambas@...1...> On mercredi 25 juin 2008, Ron wrote: > Hi, > > I have a window with 2 Textboxes I want to give focus to TextBox2 upon > loading of the form, if I open the form as a normal window, it's ok. > Textbox2 gets the focus. > If I load the form on a workspace, TextBox2.SetFocus doesn't work. > > See attached example project > > Do I have to reread the docs and shame myself, or should it work the > same way with workspace and normal window? > > Regards, > Ron the 2nd. There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them in revision #1433. Regards, -- Benoit Minisini From gambas at ...1... Thu Jun 26 02:03:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 02:03:48 +0200 Subject: [Gambas-user] Problem implementing events _inside_ a class In-Reply-To: <577069a50806241156l70db83c3j7b7c57bdefed96e2@...627...> References: <577069a50806241156l70db83c3j7b7c57bdefed96e2@...627...> Message-ID: <200806260203.48397.gambas@...1...> On mardi 24 juin 2008, Patrik Karlsson wrote: > Hi, since I'm new to Gambas it's a constant struggle, but a nice one that > is. :) > > I'm writng a class, CDiceBoard, that INHERITS Panel. > Everything went ok until it was time to implement some events for my class. > > The following code works, but not the way I want it to be. > --- > DIM hDiceBoard2 AS CDiceBoard > hDiceBoard2 = NEW CDiceBoard(ME) AS "myDiceBoard" > > PUBLIC SUB myDiceBoard_MouseDown() > DEBUG > END > --- > > How can I put the _MouseDown() inside CDiceBoard.class and make it work? > > Regards The first question is: why do you need to catch MouseDown events inside CDiceBoard class? Anyway, events are intended to the final user of an object. If you need to intercept them inside the implementation of the object class, you have to use Observers. An observer is an object that can intercept any event on any object: look the documentation in the wiki about the Observer class in the gb component. Regards, -- Benoit Minisini From gambas at ...1... Thu Jun 26 02:04:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 02:04:20 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <1f1e8c1b0806211714w40c5421by883c55c38070790@...627...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806201411.06773.lordheavym@...626...> <1f1e8c1b0806211714w40c5421by883c55c38070790@...627...> Message-ID: <200806260204.20918.gambas@...1...> On dimanche 22 juin 2008, M0E Lnx wrote: > How about making make install support the DESTDIR argument? > It should not be too complex to implement... -- Benoit Minisini From patrik at ...1931... Thu Jun 26 09:37:33 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Thu, 26 Jun 2008 09:37:33 +0200 Subject: [Gambas-user] Problem implementing events _inside_ a class In-Reply-To: <200806260203.48397.gambas@...1...> References: <577069a50806241156l70db83c3j7b7c57bdefed96e2@...627...> <200806260203.48397.gambas@...1...> Message-ID: <577069a50806260037i67c4bc61x6319ac6e5da2b4d1@...627...> 2008/6/26 Benoit Minisini : > The first question is: why do you need to catch MouseDown events inside > CDiceBoard class? Well, I want do do some action, that must always execute for every instance of the class, without having to do the code for every object. > Anyway, events are intended to the final user of an object. Ok, I see. >If you need to intercept them inside the implementation of the object class, you have to use Observers. Thank you so much, now it works the way I want it to. -- Patrik Karlsson From ron at ...1740... Thu Jun 26 09:43:32 2008 From: ron at ...1740... (Ron) Date: Thu, 26 Jun 2008 09:43:32 +0200 Subject: [Gambas-user] Setfocus issue In-Reply-To: <200806260201.29266.gambas@...1...> References: <4862A93C.3030208@...1740...> <200806260201.29266.gambas@...1...> Message-ID: <486348A4.5000207@...1740...> Benoit Minisini schreef: > On mercredi 25 juin 2008, Ron wrote: > >> Hi, >> >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon >> loading of the form, if I open the form as a normal window, it's ok. >> Textbox2 gets the focus. >> If I load the form on a workspace, TextBox2.SetFocus doesn't work. >> >> See attached example project >> >> Do I have to reread the docs and shame myself, or should it work the >> same way with workspace and normal window? >> >> Regards, >> Ron the 2nd. >> > > There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them in > revision #1433. > > > Hi, I just upgraded to #1433, but it doesn't seem to work (when you click the "not ok" button) in my example project SetFocus-0.0.1.tar.gz in my earlier mail. Regards, Ron the 2nd. From gambas at ...1... Thu Jun 26 11:16:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 11:16:31 +0200 Subject: [Gambas-user] Setfocus issue In-Reply-To: <486348A4.5000207@...1740...> References: <4862A93C.3030208@...1740...> <200806260201.29266.gambas@...1...> <486348A4.5000207@...1740...> Message-ID: <200806261116.31093.gambas@...1...> On jeudi 26 juin 2008, Ron wrote: > Benoit Minisini schreef: > > On mercredi 25 juin 2008, Ron wrote: > >> Hi, > >> > >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon > >> loading of the form, if I open the form as a normal window, it's ok. > >> Textbox2 gets the focus. > >> If I load the form on a workspace, TextBox2.SetFocus doesn't work. > >> > >> See attached example project > >> > >> Do I have to reread the docs and shame myself, or should it work the > >> same way with workspace and normal window? > >> > >> Regards, > >> Ron the 2nd. > > > > There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them > > in revision #1433. > > Hi, > > I just upgraded to #1433, but it doesn't seem to work (when you click > the "not ok" button) in my example project SetFocus-0.0.1.tar.gz in my > earlier mail. > > Regards, > Ron the 2nd. > Yes, because you call hForm.SetFocus() just after adding it to the Workspace, so the SetFocus inside the Open event handler is lost! -- Benoit Minisini From lordheavym at ...626... Thu Jun 26 11:24:45 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 26 Jun 2008 11:24:45 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806260204.20918.gambas@...1...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <1f1e8c1b0806211714w40c5421by883c55c38070790@...627...> <200806260204.20918.gambas@...1...> Message-ID: <200806261124.45670.lordheavym@...626...> Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit?: > On dimanche 22 juin 2008, M0E Lnx wrote: > > How about making make install support the DESTDIR argument? > > It should not be too complex to implement... This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html Doesn't seem to be hard for executable. The question is for component ? ++ -- Feel the power of a free Basic at http://gambas.sourceforge.net ... And have fun ! From lordheavym at ...626... Thu Jun 26 11:39:25 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 26 Jun 2008 11:39:25 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806261124.45670.lordheavym@...626...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806260204.20918.gambas@...1...> <200806261124.45670.lordheavym@...626...> Message-ID: <200806261139.25306.lordheavym@...626...> Le Thursday 26 June 2008 11:24:45 Laurent Carlier, vous avez ?crit?: > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit?: > > On dimanche 22 juin 2008, M0E Lnx wrote: > > > How about making make install support the DESTDIR argument? > > > > It should not be too complex to implement... > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html > > Doesn't seem to be hard for executable. The question is for component ? > > ++ Done in commit #1434 and #1435 for gambas 2 & 3 -- Feel the power of a free Basic at http://gambas.sourceforge.net ... And have fun ! From gambas at ...1... Thu Jun 26 11:40:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 11:40:23 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806261124.45670.lordheavym@...626...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806260204.20918.gambas@...1...> <200806261124.45670.lordheavym@...626...> Message-ID: <200806261140.23145.gambas@...1...> On jeudi 26 juin 2008, Laurent Carlier wrote: > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit?: > > On dimanche 22 juin 2008, M0E Lnx wrote: > > > How about making make install support the DESTDIR argument? > > > > It should not be too complex to implement... > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html > Yeah. It is used in Gambas Makefiles too (look in the component.am file for example). > Doesn't seem to be hard for executable. The question is for component ? > > ++ Is there a problem with components? -- Benoit Minisini From ron at ...1740... Thu Jun 26 12:11:17 2008 From: ron at ...1740... (Ron) Date: Thu, 26 Jun 2008 12:11:17 +0200 Subject: [Gambas-user] Setfocus issue In-Reply-To: <200806261116.31093.gambas@...1...> References: <4862A93C.3030208@...1740...> <200806260201.29266.gambas@...1...> <486348A4.5000207@...1740...> <200806261116.31093.gambas@...1...> Message-ID: <48636B45.4030807@...1740...> Benoit Minisini schreef: > On jeudi 26 juin 2008, Ron wrote: > >> Benoit Minisini schreef: >> >>> On mercredi 25 juin 2008, Ron wrote: >>> >>>> Hi, >>>> >>>> I have a window with 2 Textboxes I want to give focus to TextBox2 upon >>>> loading of the form, if I open the form as a normal window, it's ok. >>>> Textbox2 gets the focus. >>>> If I load the form on a workspace, TextBox2.SetFocus doesn't work. >>>> >>>> See attached example project >>>> >>>> Do I have to reread the docs and shame myself, or should it work the >>>> same way with workspace and normal window? >>>> >>>> Regards, >>>> Ron the 2nd. >>>> >>> There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them >>> in revision #1433. >>> >> Hi, >> >> I just upgraded to #1433, but it doesn't seem to work (when you click >> the "not ok" button) in my example project SetFocus-0.0.1.tar.gz in my >> earlier mail. >> >> Regards, >> Ron the 2nd. >> >> > > Yes, because you call hForm.SetFocus() just after adding it to the Workspace, > so the SetFocus inside the Open event handler is lost! > > I had remove hForm.SetFocus() before, because I suspected the same, but that was yesterday, before your bugfix. I use the OpenPage() routine, so it opens a form if it isn't on the workspace yet, or it lets a form gets focus (in front) when it was already added before. So I always have 1 form of each name opened ones, and not more than once. But I needed that hForm.SetFocus() call to let my application work ok, which I found strange to begin with, the Workspace1.Activewindow = hForm should be enough, but it seems that one of your bugfixes fixed that too, so hForm.SetFocus() isn't needed anymore to get a window in front. Even better! Thanks. Regard, Ron the 2nd. From lordheavym at ...626... Thu Jun 26 12:37:55 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 26 Jun 2008 12:37:55 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806261140.23145.gambas@...1...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806261124.45670.lordheavym@...626...> <200806261140.23145.gambas@...1...> Message-ID: <200806261237.55074.lordheavym@...626...> Le Thursday 26 June 2008 11:40:23 Benoit Minisini, vous avez ?crit?: > On jeudi 26 juin 2008, Laurent Carlier wrote: > > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit?: > > > On dimanche 22 juin 2008, M0E Lnx wrote: > > > > How about making make install support the DESTDIR argument? > > > > > > It should not be too complex to implement... > > > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html > > Yeah. It is used in Gambas Makefiles too (look in the component.am file for > example). > Thks, i've check it and i guess i've done it in the right way \o/ > > Doesn't seem to be hard for executable. The question is for component ? > > > > ++ > > Is there a problem with components? If a component is installed in a non common place (with DESTDIR), how a gambas executable know how to use it ? (it seem not to be the first use of DESTDIR though). -- Feel the power of a free Basic at http://gambas.sourceforge.net ... And have fun ! From gambas at ...1... Thu Jun 26 12:42:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 12:42:33 +0200 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806261237.55074.lordheavym@...626...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806261140.23145.gambas@...1...> <200806261237.55074.lordheavym@...626...> Message-ID: <200806261242.33231.gambas@...1...> On jeudi 26 juin 2008, Laurent Carlier wrote: > Le Thursday 26 June 2008 11:40:23 Benoit Minisini, vous avez ?crit?: > > On jeudi 26 juin 2008, Laurent Carlier wrote: > > > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit?: > > > > On dimanche 22 juin 2008, M0E Lnx wrote: > > > > > How about making make install support the DESTDIR argument? > > > > > > > > It should not be too complex to implement... > > > > > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html > > > > Yeah. It is used in Gambas Makefiles too (look in the component.am file > > for example). > > Thks, i've check it and i guess i've done it in the right way \o/ > > > > Doesn't seem to be hard for executable. The question is for component ? > > > > > > ++ > > > > Is there a problem with components? > > If a component is installed in a non common place (with DESTDIR), how a > gambas executable know how to use it ? (it seem not to be the first use of > DESTDIR though). The goal of DESTDIR is not installing in a different place. You use it for packaging, or just to see what happens when I install the software. Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu Jun 26 17:47:49 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 26 Jun 2008 10:47:49 -0500 Subject: [Gambas-user] How to make your gambas project compile using autoconf tools In-Reply-To: <200806261242.33231.gambas@...1...> References: <1f1e8c1b0806191247o1dbc643ekc681bb11e963caa1@...627...> <200806261140.23145.gambas@...1...> <200806261237.55074.lordheavym@...626...> <200806261242.33231.gambas@...1...> Message-ID: <1f1e8c1b0806260847s402b840ewe220277f86fa17a8@...627...> Benoit is correct, what I'm looking for is a way of intalling to an alternate location For instance, when make install is ran, I want to say make install DESTDIR=$PWD/PKG The result of this would be a new tree crated in $PWD/PKG that mirrors what would have been created in / at install We use this for packaging applications. From this dir, you can create a package that unfolds into other users' / On Thu, Jun 26, 2008 at 5:42 AM, Benoit Minisini wrote: > On jeudi 26 juin 2008, Laurent Carlier wrote: >> Le Thursday 26 June 2008 11:40:23 Benoit Minisini, vous avez ?crit : >> > On jeudi 26 juin 2008, Laurent Carlier wrote: >> > > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez ?crit : >> > > > On dimanche 22 juin 2008, M0E Lnx wrote: >> > > > > How about making make install support the DESTDIR argument? >> > > > >> > > > It should not be too complex to implement... >> > > >> > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html >> > >> > Yeah. It is used in Gambas Makefiles too (look in the component.am file >> > for example). >> >> Thks, i've check it and i guess i've done it in the right way \o/ >> >> > > Doesn't seem to be hard for executable. The question is for component ? >> > > >> > > ++ >> > >> > Is there a problem with components? >> >> If a component is installed in a non common place (with DESTDIR), how a >> gambas executable know how to use it ? (it seem not to be the first use of >> DESTDIR though). > > The goal of DESTDIR is not installing in a different place. You use it for > packaging, or just to see what happens when I install the software. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Nathan.Neff at ...626... Thu Jun 26 20:40:03 2008 From: Nathan.Neff at ...626... (Nate-37) Date: Thu, 26 Jun 2008 11:40:03 -0700 (PDT) Subject: [Gambas-user] Dynamic Controls / Grid? Message-ID: <18140539.post@...1379...> Hello, I would like to be able to create a Label, a Textbox and a Checkbox for a variable number of records. I'm not dealing with a database, I'm dealing with search results. So, if I find 3 search results, I would like to create a Label, a Textbox and a Checkbox for each search result like so: Search Results: Result Change To: Change? ----------------------------------- Foo FOOFOO X Bar BARBAR X Baz Go! What is a good way of creating these dynamic controls, as well as arranging them so that they appear like in the example above? I'm playing around with the HPanel, VPanel, HBox and VBox, and will post my results if I find something that works. I would use a grid, except that I want to have a Checkbox in the 3rd column. Is there any way to place a checkbox in a Grid? Thanks, --Nate -- View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18140539.html Sent from the gambas-user mailing list archive at Nabble.com. From Nathan.Neff at ...626... Thu Jun 26 21:04:30 2008 From: Nathan.Neff at ...626... (Nate-37) Date: Thu, 26 Jun 2008 12:04:30 -0700 (PDT) Subject: [Gambas-user] Dynamic Controls / Grid? In-Reply-To: <18140539.post@...1379...> References: <18140539.post@...1379...> Message-ID: <18141045.post@...1379...> Here's an update: I can only get one new dynamic control to show up when I add controls to a VPanel in my code. Here's my code (Inside a button_Click event), and I have a VPanel called "vpResults" DIM cb AS NEW CheckBox(vpResults) cb.Show The first checkbox shows up, but new checkboxes are just piled on top of the old one. I suppose I need to call some sort of "Refresh" or "Resize" on the VPanel, but nothing I've tried works. Thanks, --Nate Nate-37 wrote: > > Hello, > > I would like to be able to create a Label, a Textbox and a Checkbox for a > variable number of records. > > I'm not dealing with a database, I'm dealing with search results. > > So, if I find 3 search results, I would like to create a Label, a Textbox > and a Checkbox for each search result like so: > > > Search Results: > > Result Change To: Change? > ----------------------------------- > Foo FOOFOO X > Bar BARBAR X > Baz > > > Go! > > What is a good way of creating these dynamic controls, as well as > arranging them so that they appear like in the example above? > > I'm playing around with the HPanel, VPanel, HBox and VBox, and will post > my results if I find something that works. I would use a grid, except > that I want to have a Checkbox in the 3rd column. Is there any way to > place a checkbox in a Grid? > > Thanks, > --Nate > -- View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18141045.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Thu Jun 26 22:03:02 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 26 Jun 2008 15:03:02 -0500 Subject: [Gambas-user] Dynamic Controls / Grid? In-Reply-To: <18140539.post@...1379...> References: <18140539.post@...1379...> Message-ID: <1f1e8c1b0806261303q7c137eedw62c941068467d47f@...627...> Do you really mean (3) objects for each search result? In case you do, You can do it like this. Put the results in an array then run trhough the array creating the stuff like this PUBLIC SUB DYNAMIC_OBJECTS() DIM sResults as string '(this is the raw list of results) DIM sRes as string[] DIM i as integer DIM sResult as string '(Single result) in the array DIM txtBox as textbox DIM tTextLabel as TextLabel dim cbCheck as Checkbox 'We will assume you are separating your l ist with a space sRes = split(sResults, " ") FOR i = 0 to sRes.count - 1 txtBox = new textbox(YourParentHere) tTextlabel = new textlabel(YourParentHere) cbCheck = new checkbox(YourParentHere) NEXT END Of couse, you'll have to set the properties for each of these objects after you create them... This code may not work out of the box, but it should give you an idea of how to do this On 6/26/08, Nate-37 wrote: > > Hello, > > I would like to be able to create a Label, a Textbox and a Checkbox for a > variable number of records. > > I'm not dealing with a database, I'm dealing with search results. > > So, if I find 3 search results, I would like to create a Label, a Textbox > and a Checkbox for each search result like so: > > > Search Results: > > Result Change To: Change? > ----------------------------------- > Foo FOOFOO X > Bar BARBAR X > Baz > > > Go! > > What is a good way of creating these dynamic controls, as well as arranging > them so that they appear like in the example above? > > I'm playing around with the HPanel, VPanel, HBox and VBox, and will post my > results if I find something that works. I would use a grid, except that I > want to have a Checkbox in the 3rd column. Is there any way to place a > checkbox in a Grid? > > Thanks, > --Nate > -- > View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18140539.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Nathan.Neff at ...626... Thu Jun 26 23:07:59 2008 From: Nathan.Neff at ...626... (Nate-37) Date: Thu, 26 Jun 2008 14:07:59 -0700 (PDT) Subject: [Gambas-user] Dynamic Controls / Grid? In-Reply-To: <1f1e8c1b0806261303q7c137eedw62c941068467d47f@...627...> References: <18140539.post@...1379...> <1f1e8c1b0806261303q7c137eedw62c941068467d47f@...627...> Message-ID: <18142380.post@...1379...> > Do you really mean (3) objects for each search result? Yes, I need 3 objects for each result. My problem is not with creating the objects, it's being able to view them. I would like an easy way to make the objects visible. Currently I can only see the first checkbox that's created. The others then pile up on top of the first one. I can dabble with their top, bottom, left right properties, but that sounds like more work than what's needed. I found a demo in the "Beginner's Guide to Gambas" where it shows how the VPanel, HPanel, HBox and VBox will **automatically** arrange their child controls when the application starts. The beginner's guide is here: http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf Is there some method that I can call, like VPanel.Arrange() that would do the same thing? I've tried several of the methods already, and can't get them to reveal the other checkboxes. Thanks, --Nate M0E Lnx wrote: > > Do you really mean (3) objects for each search result? > > In case you do, You can do it like this. > Put the results in an array > then run trhough the array creating the stuff > > like this > PUBLIC SUB DYNAMIC_OBJECTS() > DIM sResults as string '(this is the raw list of results) > DIM sRes as string[] > DIM i as integer > DIM sResult as string '(Single result) in the array > > DIM txtBox as textbox > DIM tTextLabel as TextLabel > dim cbCheck as Checkbox > > > > 'We will assume you are separating your l ist with a space > > sRes = split(sResults, " ") > FOR i = 0 to sRes.count - 1 > txtBox = new textbox(YourParentHere) > tTextlabel = new textlabel(YourParentHere) > cbCheck = new checkbox(YourParentHere) > > NEXT > > END > > Of couse, you'll have to set the properties for each of these objects > after you create them... > This code may not work out of the box, but it should give you an idea > of how to do this > > > > > On 6/26/08, Nate-37 wrote: >> >> Hello, >> >> I would like to be able to create a Label, a Textbox and a Checkbox for >> a >> variable number of records. >> >> I'm not dealing with a database, I'm dealing with search results. >> >> So, if I find 3 search results, I would like to create a Label, a >> Textbox >> and a Checkbox for each search result like so: >> >> >> Search Results: >> >> Result Change To: Change? >> ----------------------------------- >> Foo FOOFOO X >> Bar BARBAR X >> Baz >> >> >> Go! >> >> What is a good way of creating these dynamic controls, as well as >> arranging >> them so that they appear like in the example above? >> >> I'm playing around with the HPanel, VPanel, HBox and VBox, and will post >> my >> results if I find something that works. I would use a grid, except that >> I >> want to have a Checkbox in the 3rd column. Is there any way to place a >> checkbox in a Grid? >> >> Thanks, >> --Nate >> -- >> View this message in context: >> http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18140539.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18142380.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Thu Jun 26 23:29:54 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 26 Jun 2008 16:29:54 -0500 Subject: [Gambas-user] Dynamic Controls / Grid? In-Reply-To: <18142380.post@...1379...> References: <18140539.post@...1379...> <1f1e8c1b0806261303q7c137eedw62c941068467d47f@...627...> <18142380.post@...1379...> Message-ID: <1f1e8c1b0806261429w4c814ccfha22c1a141b4d1e0e@...627...> Ah!... then whad you need my friend is a way to determine each components width and move the rest of them accordingly Take a look at this function that I have written and use a lot. PUBLIC SUB get_object_width(sText AS String) AS Integer DIM iRetVal AS Integer DIM fvirtfrm AS Form DIM datemp AS DrawingArea fvirtfrm = NEW Form WITH fvirtfrm .Width = 300 .Height = 200 END WITH datemp = NEW DrawingArea(fvirtfrm) Draw.Begin(datemp) iRetVal = Draw.RichTextWidth(sText) Draw.End RETURN iRetVal END This will draw (but not display) an object, and give necessary .width property to display the .text property on the object. If you can figure out exactly how wide each object needs to be, then you can set the right .X property for each object and keep them from overlaping you use it like this Textbox1.Width = get_object_width(Textbox1.text) Textlabel1.Width = get_object_width(Textlabel1.text) Checkbox1.Width = get_object_width(checkbox1.text) + 24 ' Add extra space for your square box on this one Then, you arrange your objects like this textlabel1.move(textbox1.left + (textbox1.width + 4), textbox1.top) ' leave a 4 pixel space between them checkbox1.move(textlabel1.left + (textlabel1.width + 4), textlabel1.top) On 6/26/08, Nate-37 wrote: > > > Do you really mean (3) objects for each search result? > > > Yes, I need 3 objects for each result. My problem is not with creating the > objects, it's being able to view them. > > I would like an easy way to make the objects visible. Currently I can only > see the first checkbox that's created. The others then pile up on top of > the first one. I can dabble with their top, bottom, left right properties, > but that sounds like more work than what's needed. > > I found a demo in the "Beginner's Guide to Gambas" where it shows how the > VPanel, HPanel, HBox and VBox will **automatically** arrange their child > controls when the application starts. The beginner's guide is here: > http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf > > Is there some method that I can call, like VPanel.Arrange() that would do > the same thing? I've tried several of the methods already, and can't get > them to reveal the other checkboxes. > > Thanks, > > --Nate > > > > M0E Lnx wrote: > > > > Do you really mean (3) objects for each search result? > > > > In case you do, You can do it like this. > > Put the results in an array > > then run trhough the array creating the stuff > > > > like this > > PUBLIC SUB DYNAMIC_OBJECTS() > > DIM sResults as string '(this is the raw list of results) > > DIM sRes as string[] > > DIM i as integer > > DIM sResult as string '(Single result) in the array > > > > DIM txtBox as textbox > > DIM tTextLabel as TextLabel > > dim cbCheck as Checkbox > > > > > > > > 'We will assume you are separating your l ist with a space > > > > sRes = split(sResults, " ") > > FOR i = 0 to sRes.count - 1 > > txtBox = new textbox(YourParentHere) > > tTextlabel = new textlabel(YourParentHere) > > cbCheck = new checkbox(YourParentHere) > > > > NEXT > > > > END > > > > Of couse, you'll have to set the properties for each of these objects > > after you create them... > > This code may not work out of the box, but it should give you an idea > > of how to do this > > > > > > > > > > On 6/26/08, Nate-37 wrote: > >> > >> Hello, > >> > >> I would like to be able to create a Label, a Textbox and a Checkbox for > >> a > >> variable number of records. > >> > >> I'm not dealing with a database, I'm dealing with search results. > >> > >> So, if I find 3 search results, I would like to create a Label, a > >> Textbox > >> and a Checkbox for each search result like so: > >> > >> > >> Search Results: > >> > >> Result Change To: Change? > >> ----------------------------------- > >> Foo FOOFOO X > >> Bar BARBAR X > >> Baz > >> > >> > >> Go! > >> > >> What is a good way of creating these dynamic controls, as well as > >> arranging > >> them so that they appear like in the example above? > >> > >> I'm playing around with the HPanel, VPanel, HBox and VBox, and will post > >> my > >> results if I find something that works. I would use a grid, except that > >> I > >> want to have a Checkbox in the 3rd column. Is there any way to place a > >> checkbox in a Grid? > >> > >> Thanks, > >> --Nate > >> -- > >> View this message in context: > >> http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18140539.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/index.php > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- > View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18142380.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pxpert at ...626... Thu Jun 26 23:50:58 2008 From: pxpert at ...626... (Pietro Di Costanzo) Date: Thu, 26 Jun 2008 23:50:58 +0200 Subject: [Gambas-user] gstlibs on gambas! Message-ID: <5757f8300806261450j108c9e36t68acaffeb0b2d2cf@...627...> Hi to all! After spending much time understanding the extern and pointers functionality under gambas i've made a little app based on the gstreamer libraries. The application can play audio/video files (with the video embedded in the application), play-pause-stop them and has seeking functionality too. To make all things work i've created some components based on the gstreamer library (using the pygst structure) and a little simple gui based on them. The code is very rudimentary for now, i've just implemented the functions needed to make the things work, but with some time and your help i'm sure we can write a complete gstreamer backend for gambas! So if someone is interested in developing the class or an app based on this class, please let me know! -------------- next part -------------- A non-text attachment was scrubbed... Name: test_v2.tar.gz Type: application/x-gzip Size: 11607 bytes Desc: not available URL: From Nathan.Neff at ...626... Fri Jun 27 05:16:04 2008 From: Nathan.Neff at ...626... (Nate-37) Date: Thu, 26 Jun 2008 20:16:04 -0700 (PDT) Subject: [Gambas-user] Dynamic Controls / Grid? In-Reply-To: <1f1e8c1b0806261429w4c814ccfha22c1a141b4d1e0e@...627...> References: <18140539.post@...1379...> <1f1e8c1b0806261303q7c137eedw62c941068467d47f@...627...> <18142380.post@...1379...> <1f1e8c1b0806261429w4c814ccfha22c1a141b4d1e0e@...627...> Message-ID: <18147431.post@...1379...> Thanks Moe, I'll definitely take a look at the function you listed below. I still wonder what function/code is called for VPanels, HPanels, etc. when they arrange their controls auto-magically. I would like to see if there's anyone else that knows what magical code is called when a form starts up that will line up controls. In the Gambas beginner's guide, there's a tutorial that sets up controls like this in a VPanel: VPanel text1 text2 text3 And when you start the program, the controls are like this: text1 text2 text3 I would like to try calling the same code that lines up those controls on my own VPanels, after I've added some more controls to them. But in the meantime, I will definitely try your suggestions. Thank you very much, --Nate M0E Lnx wrote: > > Ah!... then whad you need my friend is a way to determine each > components width and move the rest of them accordingly > > Take a look at this function that I have written and use a lot. > > PUBLIC SUB get_object_width(sText AS String) AS Integer > > > DIM iRetVal AS Integer > DIM fvirtfrm AS Form > DIM datemp AS DrawingArea > > > fvirtfrm = NEW Form > WITH fvirtfrm > .Width = 300 > .Height = 200 > END WITH > datemp = NEW DrawingArea(fvirtfrm) > > Draw.Begin(datemp) > iRetVal = Draw.RichTextWidth(sText) > Draw.End > RETURN iRetVal > > > END > > This will draw (but not display) an object, and give necessary .width > property to display the .text property on the object. > > If you can figure out exactly how wide each object needs to be, then > you can set the right .X property for each object and keep them from > overlaping > > you use it like this > > Textbox1.Width = get_object_width(Textbox1.text) > Textlabel1.Width = get_object_width(Textlabel1.text) > Checkbox1.Width = get_object_width(checkbox1.text) + 24 ' Add extra > space for your square box on this one > > Then, you arrange your objects like this > > textlabel1.move(textbox1.left + (textbox1.width + 4), textbox1.top) ' > leave a 4 pixel space between them > checkbox1.move(textlabel1.left + (textlabel1.width + 4), textlabel1.top) > > > > > On 6/26/08, Nate-37 wrote: >> >> > Do you really mean (3) objects for each search result? >> >> >> Yes, I need 3 objects for each result. My problem is not with creating >> the >> objects, it's being able to view them. >> >> I would like an easy way to make the objects visible. Currently I can >> only >> see the first checkbox that's created. The others then pile up on top >> of >> the first one. I can dabble with their top, bottom, left right >> properties, >> but that sounds like more work than what's needed. >> >> I found a demo in the "Beginner's Guide to Gambas" where it shows how >> the >> VPanel, HPanel, HBox and VBox will **automatically** arrange their child >> controls when the application starts. The beginner's guide is here: >> http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf >> >> Is there some method that I can call, like VPanel.Arrange() that would >> do >> the same thing? I've tried several of the methods already, and can't >> get >> them to reveal the other checkboxes. >> >> Thanks, >> >> --Nate >> >> >> >> M0E Lnx wrote: >> > >> > Do you really mean (3) objects for each search result? >> > >> > In case you do, You can do it like this. >> > Put the results in an array >> > then run trhough the array creating the stuff >> > >> > like this >> > PUBLIC SUB DYNAMIC_OBJECTS() >> > DIM sResults as string '(this is the raw list of results) >> > DIM sRes as string[] >> > DIM i as integer >> > DIM sResult as string '(Single result) in the array >> > >> > DIM txtBox as textbox >> > DIM tTextLabel as TextLabel >> > dim cbCheck as Checkbox >> > >> > >> > >> > 'We will assume you are separating your l ist with a space >> > >> > sRes = split(sResults, " ") >> > FOR i = 0 to sRes.count - 1 >> > txtBox = new textbox(YourParentHere) >> > tTextlabel = new textlabel(YourParentHere) >> > cbCheck = new checkbox(YourParentHere) >> > >> > NEXT >> > >> > END >> > >> > Of couse, you'll have to set the properties for each of these objects >> > after you create them... >> > This code may not work out of the box, but it should give you an idea >> > of how to do this >> > >> > >> > >> > >> > On 6/26/08, Nate-37 wrote: >> >> >> >> Hello, >> >> >> >> I would like to be able to create a Label, a Textbox and a Checkbox >> for >> >> a >> >> variable number of records. >> >> >> >> I'm not dealing with a database, I'm dealing with search results. >> >> >> >> So, if I find 3 search results, I would like to create a Label, a >> >> Textbox >> >> and a Checkbox for each search result like so: >> >> >> >> >> >> Search Results: >> >> >> >> Result Change To: Change? >> >> ----------------------------------- >> >> Foo FOOFOO X >> >> Bar BARBAR X >> >> Baz >> >> >> >> >> >> Go! >> >> >> >> What is a good way of creating these dynamic controls, as well as >> >> arranging >> >> them so that they appear like in the example above? >> >> >> >> I'm playing around with the HPanel, VPanel, HBox and VBox, and will >> post >> >> my >> >> results if I find something that works. I would use a grid, except >> that >> >> I >> >> want to have a Checkbox in the 3rd column. Is there any way to >> place a >> >> checkbox in a Grid? >> >> >> >> Thanks, >> >> --Nate >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18140539.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> Check out the new SourceForge.net Marketplace. >> >> It's the best place to buy or sell services for >> >> just about anything Open Source. >> >> http://sourceforge.net/services/buy/index.php >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > >> ------------------------------------------------------------------------- >> > Check out the new SourceForge.net Marketplace. >> > It's the best place to buy or sell services for >> > just about anything Open Source. >> > http://sourceforge.net/services/buy/index.php >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> >> -- >> View this message in context: >> http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18142380.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Dynamic-Controls---Grid--tp18140539p18147431.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jun 27 11:48:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jun 2008 11:48:17 +0200 Subject: [Gambas-user] Problem using gb.db component In-Reply-To: <1214445992.16872.5.camel@...1933...> References: <1214445992.16872.5.camel@...1933...> Message-ID: <200806271148.17646.gambas@...1...> On jeudi 26 juin 2008, you wrote: > Hello! I've got a problem using the GB.DB component. This is the code: > > PUBLIC SUB Form_Open() > > DIM hConn AS NEW Connection > DIM res AS Result > > WITH hConn > .User = "root" > .Password = "asdewq" > .Host = "localhost" > .Name = "docemania" > .type = "mysql" > END WITH > > hConn.Open > > hConn.Begin > > res = hConn.Create("Produtos") ****** It crashes here with error > signal #11 > > res!Nome = "Doce de Leite" > res!Descricao = "Doce de Leite" > res!Preco = "2.00" > res!PrecoVenda = "5.00" > res!Obs = "Nenhuma" > res!Data = "2008-05-01" > res!Ativo = 1 > res.Update > hConn.Commit > > END > > Please help me. My Gambas Version is 2.5 > > Thanks > > Marco The bug has been fixed in revision #1438. Regards, -- Benoit Minisini From smiefert at ...784... Fri Jun 27 12:02:37 2008 From: smiefert at ...784... (Stefan Miefert) Date: Fri, 27 Jun 2008 12:02:37 +0200 Subject: [Gambas-user] Daynumer /Month Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> Hello, How can I get the daynumber of a month? Is their any function in gambas?. I try format but the From ron at ...1740... Fri Jun 27 12:09:04 2008 From: ron at ...1740... (Ron) Date: Fri, 27 Jun 2008 12:09:04 +0200 Subject: [Gambas-user] Daynumer /Month In-Reply-To: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> Message-ID: <4864BC40.5060300@...1740...> Stefan Miefert schreef: > Hello, > > How can I get the daynumber of a month? Is their any function in gambas?. I try format but the > > Hi, day = Day(Now) http://gambasdoc.org/help/lang/day Regards, Ron the 2nd From jscops at ...11... Fri Jun 27 12:15:06 2008 From: jscops at ...11... (Jacky) Date: Fri, 27 Jun 2008 12:15:06 +0200 Subject: [Gambas-user] Daynumer /Month In-Reply-To: <4864BC40.5060300@...1740...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> <4864BC40.5060300@...1740...> Message-ID: <200806271215.06613.jscops@...11...> Le Friday 27 June 2008 12:09:04 Ron, vous avez ?crit?: > Stefan Miefert schreef: > > Hello, > > > > How can I get the daynumber of a month? Is their any function in gambas?. > > I try format but the > > Hi, > > day = Day(Now) > > http://gambasdoc.org/help/lang/day > > > Regards, > Ron the 2nd salut daynumber = Format$(Now, "dd") Jacky From smiefert at ...784... Fri Jun 27 12:33:15 2008 From: smiefert at ...784... (Stefan Miefert) Date: Fri, 27 Jun 2008 12:33:15 +0200 Subject: [Gambas-user] Daynumer /Month In-Reply-To: <4864BC40.5060300@...1740...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> <4864BC40.5060300@...1740...> Message-ID: <8D42310D957CFB46AA11921A711D4D1601F32B4DBD@...1899...> Hellor, thanks. I need the last day of a month:) My post is a little bit inaccurately:) From jscops at ...11... Fri Jun 27 13:09:32 2008 From: jscops at ...11... (Jacky) Date: Fri, 27 Jun 2008 13:09:32 +0200 Subject: [Gambas-user] Daynumer /Month In-Reply-To: <8D42310D957CFB46AA11921A711D4D1601F32B4DBD@...1899...> References: <8D42310D957CFB46AA11921A711D4D1601F32B4DBC@...1899...> <4864BC40.5060300@...1740...> <8D42310D957CFB46AA11921A711D4D1601F32B4DBD@...1899...> Message-ID: <200806271309.32896.jscops@...11...> Le Friday 27 June 2008 12:33:15 Stefan Miefert, vous avez ?crit?: > Hellor, > > thanks. I need the last day of a month:) My post is a little bit > inaccurately:) jrs = 01/04/08 ( french date format ) lastday = finmois(jrs) PUBLIC FUNCTION finmois(Jrs AS Date) AS Integer DIM Jrs1 AS Integer IF Month(Jrs) < 12 THEN Jrs1 = Day(Date(Year(Jrs), Month(Jrs) + 1, 1) - 1) ELSE Jrs1 = Day(Date(Year(Jrs) + 1, 1, 1) - 1) ENDIF RETURN Jrs1 END Jacky From pinozollo at ...626... Fri Jun 27 17:07:01 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 27 Jun 2008 11:07:01 -0400 Subject: [Gambas-user] gstlibs on gambas! In-Reply-To: <5757f8300806261450j108c9e36t68acaffeb0b2d2cf@...627...> References: <5757f8300806261450j108c9e36t68acaffeb0b2d2cf@...627...> Message-ID: <200806271107.03369.pinozollo@...626...> Alle 17:50, gioved? 26 giugno 2008, Pietro Di Costanzo ha scritto: > Hi to all! > After spending much time understanding the extern and pointers > functionality under gambas i've made a little app based on the gstreamer > libraries. > > The application can play audio/video files (with the video embedded in the > application), play-pause-stop them and has seeking functionality too. > To make all things work i've created some components based on the gstreamer > library (using the pygst structure) and a little simple gui based on them. > The code is very rudimentary for now, i've just implemented the functions > needed to make the things work, but with some time and your help i'm sure > we can write a complete gstreamer backend for gambas! > So if someone is interested in developing the class or an app based on this > class, please let me know! Ciao Pietro, player.set_property("video-sink", videosink.handle) gives "Null Object" Perch?? Why ? From steven at ...1545... Sat Jun 28 05:23:32 2008 From: steven at ...1545... (Steven Drinnan) Date: Sat, 28 Jun 2008 11:23:32 +0800 Subject: [Gambas-user] Music.Length In-Reply-To: <200806211027.07781.ronstk@...239...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> <200806211027.07781.ronstk@...239...> Message-ID: <1214623412.7516.11.camel@...1857...> Just one more prog that can do the job exiftool a python based tool that just spits all the info out to the command line. example: exiftool "/home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3" ExifTool Version Number : 7.25 File Name : 2 Unlimited - No Limit.mp3 Directory : /home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1 File Size : 4 MB File Modification Date/Time : 2005:06:04 10:23:06 File Type : MP3 MIME Type : audio/mpeg MPEG Audio Version : 1 Audio Layer : 3 Audio Bitrate : 160000 Sample Rate : 44100 Channel Mode : Joint Stereo MS Stereo : Off Intensity Stereo : Off Copyright Flag : False Original Media : False Emphasis : None Length : 197.825 s Picture : (Binary data 0 bytes, use -b option to extract) Title : No Limit Track : 15 Artist : 2 Unlimited Genre : Rock/Pop Album : Super Hits 1993-2003 Disc 1 Year : Comment : Duration : 03:17 (approx) Another one is id3v2 which gives this id3v2 -R "/home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3" id3v1 tag info for /home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3: Title : No Limit Artist: 2 Unlimited Album : Super Hits 1993-2003 Disc 1 Year: , Genre: Other (12) Comment: Track: 15 id3v2 tag info for /home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3: TLEN (Length): 197825 APIC (Attached picture): ()[, 0]: image/jpg, 0 bytes TIT2 (Title/songname/content description): No Limit TRCK (Track number/Position in set): 15 TPE1 (Lead performer(s)/Soloist(s)): 2 Unlimited TCON (Content type): Rock/Pop (255) TALB (Album/Movie/Show title): Super Hits 1993-2003 Disc 1 TLEN = 197825 gives the track length in milliseconds so that's 197.825s or 3min and 18s approx. I have not had a good look at it but both seem to do what you want. Steven Drinnan On Sat, 2008-06-21 at 10:27 +0200, Ron Onstenk wrote: > On Friday 20 June 2008, Benoit Minisini wrote: > > I don't know why apparently the length of the audio is not encoded in the file > > header... > > > > It is, but not in the way you think. > > In fact is the mp3 as we know nowadays a incomplete standard. > We need to split the parts out of it. > > Mp3 is the encoding method only used as _data_. > > mpeg the layout of a block containing _data_ > > The file containing blocks of _data_ > > Audio is encoded, mp3 in this case, in blocks and each block > has a header telling the rate used and block length. > The block information is following a mpeg standard. > Divide the bytes by rate and the time per block is known. > Add the time per block for each block and you have the > total play time. > > Storage on disk in a file was simple put all blocks > after each other and without a file header descibing the > content of the file. > > > It was the inovation of mp3 encoding that triggers a group > of enthousiast to write encoders/decoders to store there > music that way and made it as a pseudo standard for the > audiophiles, the 1/10 of the *.wav size that time in use. > > The early players read the rate from first block and used it > for the whole file play and position, not looking every block. > Just to win decoding time on the slow computers those days. > They where not able to use variable rates at all. > In the early 90's using 90% cpu time with win3.11 > > Later the mp3 encoding programs were changed to use variable > rates and it was posible by using those block headers. > > To know the total time now you need to read the whole file and > add the time per block. For file on local disk not a problem > but what if it is on local network share or via internet? > And how about live streams that use mp3 _encoding_? > The total time is only known when the stream is ready. > > If the file had also container layout and could describe the > content you can write the time into this container header > and that does not exist for the populair mp3 encoded files. > > It is missing the file(container) that the mp3 encoding > it is a good available encoding for streaming. > Just jump somewhere in the stream and in short time it plays. > > > side note 1) > The real name of a file should be myaudio.mp3.mpeg just as > myfileachive.tar.gz for files in a tar and late gzipped. > I's just MS DOS (DiskOperatingSystem) did not allow more as > 3 characters for the extension that made the *.mp3 naming scheme. > > side note 2) > when you were able to write the total length in the header. > Aborting a recording and you do not have a length to > write and the mp3 duration is 0 or endless. > In Result is you can't trust this value. > > Same problem why a *.avi file is not a good container for > streaming with the seek index on the end of the file > and the start of the file contains the amount of segments > in the file to be able to find the start of the index. > Aborting the write of a avi file with encoded (mp3, divx, cvid) > data block makes the avi file corrupt for play. > Remember the avi repair tools for this problem. > The index is need while the encoded data blocks do not have(always) > fixed lengths and decoding _must_ begin on a block start. > > Ron the 1'st > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From patrik at ...1931... Sat Jun 28 08:36:27 2008 From: patrik at ...1931... (Patrik Karlsson) Date: Sat, 28 Jun 2008 08:36:27 +0200 Subject: [Gambas-user] Music.Length In-Reply-To: <1214623412.7516.11.camel@...1857...> References: <577069a50806200210i701ff536pf4e655c4cfc45ff9@...627...> <200806201210.04181.gambas@...1...> <200806201241.48939.gambas@...1...> <200806211027.07781.ronstk@...239...> <1214623412.7516.11.camel@...1857...> Message-ID: <577069a50806272336lf419d89mfb39b9ab0163ef64@...627...> 2008/6/28 Steven Drinnan : > Just one more prog that can do the job > > exiftool > > a python based tool that just spits all the info out to the command > line. > > example: > > exiftool "/home/steven/Documents/My Music/Various Artists/Super Hits > 1993-2003 Disc 1/2 Unlimited - No Limit.mp3" ExifTool Version > Number : 7.25 > File Name : 2 Unlimited - No Limit.mp3 > Directory : /home/steven/Documents/My > Music/Various Artists/Super Hits 1993-2003 Disc 1 > File Size : 4 MB > File Modification Date/Time : 2005:06:04 10:23:06 > File Type : MP3 > MIME Type : audio/mpeg > MPEG Audio Version : 1 > Audio Layer : 3 > Audio Bitrate : 160000 > Sample Rate : 44100 > Channel Mode : Joint Stereo > MS Stereo : Off > Intensity Stereo : Off > Copyright Flag : False > Original Media : False > Emphasis : None > Length : 197.825 s > Picture : (Binary data 0 bytes, use -b option to > extract) > Title : No Limit > Track : 15 > Artist : 2 Unlimited > Genre : Rock/Pop > Album : Super Hits 1993-2003 Disc 1 > Year : > Comment : > Duration : 03:17 (approx) > > > Another one is > id3v2 > > which gives this > > id3v2 -R "/home/steven/Documents/My Music/Various Artists/Super Hits > 1993-2003 Disc 1/2 Unlimited - No Limit.mp3" > id3v1 tag info for /home/steven/Documents/My Music/Various Artists/Super > Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3: > Title : No Limit Artist: 2 > Unlimited > Album : Super Hits 1993-2003 Disc 1 Year: , Genre: Other (12) > Comment: Track: 15 > id3v2 tag info for /home/steven/Documents/My Music/Various Artists/Super > Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3: > TLEN (Length): 197825 > APIC (Attached picture): ()[, 0]: image/jpg, 0 bytes > TIT2 (Title/songname/content description): No Limit > TRCK (Track number/Position in set): 15 > TPE1 (Lead performer(s)/Soloist(s)): 2 Unlimited > TCON (Content type): Rock/Pop (255) > TALB (Album/Movie/Show title): Super Hits 1993-2003 Disc 1 > > TLEN = 197825 gives the track length in milliseconds so that's 197.825s > or 3min and 18s approx. > > I have not had a good look at it but both seem to do what you want. > > Steven Drinnan > > > On Sat, 2008-06-21 at 10:27 +0200, Ron Onstenk wrote: >> On Friday 20 June 2008, Benoit Minisini wrote: >> > I don't know why apparently the length of the audio is not encoded in the file >> > header... >> > >> >> It is, but not in the way you think. >> >> In fact is the mp3 as we know nowadays a incomplete standard. >> We need to split the parts out of it. >> >> Mp3 is the encoding method only used as _data_. >> >> mpeg the layout of a block containing _data_ >> >> The file containing blocks of _data_ >> >> Audio is encoded, mp3 in this case, in blocks and each block >> has a header telling the rate used and block length. >> The block information is following a mpeg standard. >> Divide the bytes by rate and the time per block is known. >> Add the time per block for each block and you have the >> total play time. >> >> Storage on disk in a file was simple put all blocks >> after each other and without a file header descibing the >> content of the file. >> >> >> It was the inovation of mp3 encoding that triggers a group >> of enthousiast to write encoders/decoders to store there >> music that way and made it as a pseudo standard for the >> audiophiles, the 1/10 of the *.wav size that time in use. >> >> The early players read the rate from first block and used it >> for the whole file play and position, not looking every block. >> Just to win decoding time on the slow computers those days. >> They where not able to use variable rates at all. >> In the early 90's using 90% cpu time with win3.11 >> >> Later the mp3 encoding programs were changed to use variable >> rates and it was posible by using those block headers. >> >> To know the total time now you need to read the whole file and >> add the time per block. For file on local disk not a problem >> but what if it is on local network share or via internet? >> And how about live streams that use mp3 _encoding_? >> The total time is only known when the stream is ready. >> >> If the file had also container layout and could describe the >> content you can write the time into this container header >> and that does not exist for the populair mp3 encoded files. >> >> It is missing the file(container) that the mp3 encoding >> it is a good available encoding for streaming. >> Just jump somewhere in the stream and in short time it plays. >> >> >> side note 1) >> The real name of a file should be myaudio.mp3.mpeg just as >> myfileachive.tar.gz for files in a tar and late gzipped. >> I's just MS DOS (DiskOperatingSystem) did not allow more as >> 3 characters for the extension that made the *.mp3 naming scheme. >> >> side note 2) >> when you were able to write the total length in the header. >> Aborting a recording and you do not have a length to >> write and the mp3 duration is 0 or endless. >> In Result is you can't trust this value. >> >> Same problem why a *.avi file is not a good container for >> streaming with the seek index on the end of the file >> and the start of the file contains the amount of segments >> in the file to be able to find the start of the index. >> Aborting the write of a avi file with encoded (mp3, divx, cvid) >> data block makes the avi file corrupt for play. >> Remember the avi repair tools for this problem. >> The index is need while the encoded data blocks do not have(always) >> fixed lengths and decoding _must_ begin on a block start. >> >> Ron the 1'st >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thank you, that is good to know. Since I am bundling some soundfx inside my gambas project, I have to use an internal function to get the length. (If I don't cp out the files to /tmp or so) -- Patrik Karlsson From pmathijssen at ...626... Sat Jun 28 14:27:50 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Sat, 28 Jun 2008 14:27:50 +0200 Subject: [Gambas-user] Font in datechooser Message-ID: Hi, When i use datechooser_activate () i want the day i doubleclicked on to get bold. Is this possible? Peter From pmathijssen at ...626... Sun Jun 29 06:21:42 2008 From: pmathijssen at ...626... (Peter Mathijssen) Date: Sun, 29 Jun 2008 06:21:42 +0200 Subject: [Gambas-user] Font in datechooser In-Reply-To: References: Message-ID: Hi, When i use datechooser_activate () i want the day i doubleclicked on to get bold. Is this possible? Peter From rterry at ...1822... Sat Jun 28 06:37:51 2008 From: rterry at ...1822... (richard terry) Date: Sat, 28 Jun 2008 14:37:51 +1000 Subject: [Gambas-user] Date difficulties Message-ID: <200806281437.51860.rterry@...1822...> Something I've never come to terms with which should be simple. I have a class containing items including a date eg as a simple example which dosn't exist and I don't use but will serve the purpose of the request: cOrder part as string date as date In a form I may have this sort of code Dim order as new cOrder and on the form, some textboxes e.g txtPart txtDate When I type into the box I want the contents to end up in the class: order.part = txtPart.text order.date = txtDate.text The program complains about invalid date. I.e all I want is a simple exmple of how to use a textbox to put a date in the correct format. Hope that's not too ambiguous. Thanks in advance. Richard From rterry at ...1822... Mon Jun 30 13:49:02 2008 From: rterry at ...1822... (richard terry) Date: Mon, 30 Jun 2008 21:49:02 +1000 Subject: [Gambas-user] Weird Press Enter > formatting error in IDE Message-ID: <200806302149.02513.rterry@...1822...> Version 1440. This should be reproducable. I'd typed in the function name and started writing a comment: Public Function Letter_Validate_Contents() as Boolean 'Checks that there is adequate content in a letter 'if there is returns a true flag '------------------------------------------------- end But I usually segregate my comments by putting a line top and bottom, so I clicked on the editor after the word Boolean, thing the action would insert a blank line. What it did was shift the whole of my subroutine contents **After** the 'end' keyword of the subroutine, as per the followin piccies. If you look at piccie number 1 you can see the cursor flash captured after the word Boolean, and in piccie number 2, the result, with the cursor 2 lines down (I only hit one action. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: wierd_hit_enter_format_error1.png Type: image/png Size: 11021 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: wierd_hit_enter_format_error2.png Type: image/png Size: 11812 bytes Desc: not available URL: