Re: [Gambas-user] set of questions
Benoît Minisini replied: I think you should have been make a thread for each question, because now we are lost when reading the answers! Now I see the mistake. Sorry. I asked: I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. -8-- Can I run my application with just some command, without copying? Benoît Minisini replied: -8-- I will tell you when I make the environmental variable change. His name will be something like GB_DIR, or GB_ROOT. It would be excellent to find the answer in documentation, when the technology will be done. I asked: 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: You should use the last method if you have thousands of rows to display.. I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? I thank charlesg, Doriano Blengino and Benoît Minisini for excellent practical and theoretical answers. I asked: 3) When I hide persistent Form, how to display it again? Jussi Lahtinen replied: FromName.Show works with me..? And Benoît Minisini replied: Show() ? You want to ask me: What the problem is?. I often need to know, if SomeForm is already opened or yet not. I didn't find any property or method of the Form that told about it. The fastest way for me was to write such code in SomeForm class: --- ' Gambas class file PUBLIC VAR_FormIsShown AS Boolean PUBLIC SUB Form_Open() ... VAR_FormIsShown = TRUE END PUBLIC SUB Form_Close() ... VAR_FormIsShown = FALSE END --- In FMain I wrote: --- IF SomeForm.VAR_FormIsShown = FALSE THEN ... SomeForm.Show() ENDIF --- SomeForm had that slow GridView (from question №2). I wanted to make it open faster. In a month I suddenly found property Persistent. I already forgot about VAR_FormIsShown and switched it to true. SomeForm opened only ones. I suggested, that SomeForm.Show() wasn't antimethod for SomeForm.Hide() but only antimethod for SomeForm.Close(). When you answered to me , I saw my mistake. I added such code in SomeForm class: --- PUBLIC SUB Form_Hide() ... VAR_FormIsShown = FALSE END --- Now it works. Some persons are worrying about 'Hijacking', so I shall not ask: What is the best way to control if the Form is already opened?. I asked: 4) On my monitor with resolution 1024x768 Forms and widgets on them look great. But when I come to my friends with big wide monitors, some widgets (Buttons) became bigger while another widgets don't or not in such proportions. Why does it happen? Benoît Minisini replied: By default, form and control size is proportional to the height of the default font in pixels. If you don't want this behaviour on a form, just set the (Scaled) property to FALSE. Now it works correctly. :) There isn't (Scaled) in the list of Form's properties in documentation. And there is only STATIC PROPERTY READ gb.qt.Desktop.Scale AS Integer in the whole documentation. :( I asked: 1) May I create proprietary (not open-source) gambas2-applications and components for gambas2? and: 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? All is clear. Thanks. Faysal Banna wrote: the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB ! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment Dima is a modern citizen short equivalent for traditional Russian male-name Dmitriy. Russians prefer to put full name only in documents, or when somebody informs about the famous person. In the dialogs russians usually like when they are refered by the short equivalents. And be carefull: there is a Russian fermale-name Dina. You haven't hurt me. Best regards, -- Dima Malkov (Russia), male, 20 years old, use Gambas for 2 months, program in Linux for 2 months, use Linux for 2 years, speak English in practice and communicate with foreigners for 3 weeks. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
Re: [Gambas-user] set of questions
With FormName.Visible you know if form is shown or not. Jussi On Sat, Oct 24, 2009 at 11:41, Dima Malkov dima.malkov.rus...@gmail.com wrote: Benoît Minisini replied: I think you should have been make a thread for each question, because now we are lost when reading the answers! Now I see the mistake. Sorry. I asked: I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. -8-- Can I run my application with just some command, without copying? Benoît Minisini replied: -8-- I will tell you when I make the environmental variable change. His name will be something like GB_DIR, or GB_ROOT. It would be excellent to find the answer in documentation, when the technology will be done. I asked: 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: You should use the last method if you have thousands of rows to display.. I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? I thank charlesg, Doriano Blengino and Benoît Minisini for excellent practical and theoretical answers. I asked: 3) When I hide persistent Form, how to display it again? Jussi Lahtinen replied: FromName.Show works with me..? And Benoît Minisini replied: Show() ? You want to ask me: What the problem is?. I often need to know, if SomeForm is already opened or yet not. I didn't find any property or method of the Form that told about it. The fastest way for me was to write such code in SomeForm class: --- ' Gambas class file PUBLIC VAR_FormIsShown AS Boolean PUBLIC SUB Form_Open() ... VAR_FormIsShown = TRUE END PUBLIC SUB Form_Close() ... VAR_FormIsShown = FALSE END --- In FMain I wrote: --- IF SomeForm.VAR_FormIsShown = FALSE THEN ... SomeForm.Show() ENDIF --- SomeForm had that slow GridView (from question No.2). I wanted to make it open faster. In a month I suddenly found property Persistent. I already forgot about VAR_FormIsShown and switched it to true. SomeForm opened only ones. I suggested, that SomeForm.Show() wasn't antimethod for SomeForm.Hide() but only antimethod for SomeForm.Close(). When you answered to me , I saw my mistake. I added such code in SomeForm class: --- PUBLIC SUB Form_Hide() ... VAR_FormIsShown = FALSE END --- Now it works. Some persons are worrying about 'Hijacking', so I shall not ask: What is the best way to control if the Form is already opened?. I asked: 4) On my monitor with resolution 1024x768 Forms and widgets on them look great. But when I come to my friends with big wide monitors, some widgets (Buttons) became bigger while another widgets don't or not in such proportions. Why does it happen? Benoît Minisini replied: By default, form and control size is proportional to the height of the default font in pixels. If you don't want this behaviour on a form, just set the (Scaled) property to FALSE. Now it works correctly. :) There isn't (Scaled) in the list of Form's properties in documentation. And there is only STATIC PROPERTY READ gb.qt.Desktop.Scale AS Integer in the whole documentation. :( I asked: 1) May I create proprietary (not open-source) gambas2-applications and components for gambas2? and: 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? All is clear. Thanks. Faysal Banna wrote: the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB ! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment Dima is a modern citizen short equivalent for traditional Russian male-name Dmitriy. Russians prefer to put full name only in documents, or when somebody informs about the famous person. In the dialogs russians usually like when they are refered by the short equivalents. And be carefull: there is a Russian fermale-name Dina. You haven't hurt me. Best regards, -- Dima Malkov (Russia), male, 20 years old, use Gambas for 2 months, program in Linux for 2 months, use Linux for 2 years, speak English in practice and communicate with foreigners for 3 weeks. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart
Re: [Gambas-user] set of questions
Doriano While you are busy dumping on yourself, let me join in: you are wrong. 1) You are wrong that you do not have a good command of the English language. I have often marvelled (in that vaguely condescending British sort of a way :)) how good your (in particular) and every contributors (in general) English is. You write better English than half of Britain. This does not say much but is intended as a compliment. 2) You are wrong that you do not know anything about Gambas. Less skilled users, like myself, learn a lot from your contributions and your obvious knowledge of Linux. There are complaints that some posts 'have nothing do do with Gambas'. I do not accept that and suggest that most of the posts relate to the interface between Gambas and Linux. I am sure the problem here is that too many questions were asked in a single post. I am also sure that Ron's response is a bite without venom. The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read errors, he needs the help of people like you on this forum. -- View this message in context: http://www.nabble.com/set-of-questions-tp25987669p26022140.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
charlesg ha scritto: Doriano While you are busy dumping on yourself, let me join in: you are wrong. ... Hoping that this is the right place to post a thought... :-) I would only say the following. I am not angry with anyone, and I don't really intend to leave the list, only to limit myself a little. My only sadness is when I see users complaining or flaming other users, when there is no evidence of malice. Sometimes I did it too, and I regret. Nobody is perfect, and a kind advice seems more appropriate than a blame, in those cases. Regards to all, Doriano Blengino -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
On Friday 23 October 2009, Doriano Blengino wrote: charlesg ha scritto: Doriano While you are busy dumping on yourself, let me join in: you are wrong. ... Hoping that this is the right place to post a thought... :-) ---8--- Regards to all, Doriano Blengino Your doing well Doriano. BTW. Where in Italy do you live? I have been several times in the north part. Eating pasta and drinking gianti, hmmm I got thirsty again. :) Abbia un giorno piacevole e una computazione felice (yahoo :) ) Best regards, Ron_1st -- 111.11 x 111.11 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read Yes the big boss is a big wonder. Hey, this is my birthday or what? :-) What does Thespian of repute means? -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Benoît Minisini wrote: The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read Yes the big boss is a big wonder. Hey, this is my birthday or what? :-) What does Thespian of repute means? http://en.wikipedia.org/wiki/Thespian -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
On Friday 23 October 2009, Werner wrote: Benoît Minisini wrote: The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read Yes the big boss is a big wonder. Hey, this is my birthday or what? :-) What does Thespian of repute means? http://en.wikipedia.org/wiki/Thespian Nice. If Benoit's acting is of same quality as programming then the 'International Thespian Society' should honorary him to :) About my feelings/compliment to Benoit. His source code of gambas written in C did show me a beautifull usage of the m4 macro usage. It was never seen before by me used in sources code in same quantity and quality. I'm a lover of this usage in the past with M80/L80 for CP/M and the EditorAssemblerPlus for the TRS80. May be more programmers do so but Benoit's way looks to me not the regular common way for the C art o programming. Anyway I never see it done. Best regards, Ron_1st -- I can learn a lot of Benoit's programming :) -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: 1) May I create proprietary (not open-scource) gambas2-applications and components for gambas2? Yes, but Qt3 is not free for proprietary use. 3) When I hide persistent Form, how to display it again? FromName.Show works with me..? 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? With my project it was easy. Tools menu -- Update forms. Then possibly some minor changes to code. Example Write and Read, see documentation for details. 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? I think gb.qt4 is not completely ready yet. But in future you can, if I have understand correctly. Qt3 -- GTK+ works well. Jussi On Wed, Oct 21, 2009 at 15:15, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Faysal Banna ha scritto: no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. Uhm... I never used a Gridview in that way, I simply worked out with my words something that already is in the docs (in a very unixish fashion). I tried to explain better what the idea behind Data event is. But after that I have seen, in this thread, a complete example: I cut and paste: Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease ' ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result ' PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = mysql .host = localhost .Name = stock .login = charles .password=dog END WITH $hConnLocl.Open() 'create a result sql = SELECT * FROM grnLine $resData = $hConnLocl.Exec(sql) END '- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row : column : Str($resData[GridView1.Columns[column].text]) END '-- Hope this is what you need. Thanks for your nice appellation, sir :-), and regards. Doriano Blengino I don't see the connection with gambas from usb stick. Can you enligth me? Best regards, Ron_1st -- A: Hijacking the thread from other subjects. Q: What is the second most annoying thing in e-mail? -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list
Re: [Gambas-user] set of questions
Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Best regards, Ron_1st -- A: Hijacking the thread from other subjects. Q: What is the second most annoying thing in e-mail? -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Ron_1st ha scritto: On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Funny signature. Really, I didn't know what hijacking was, and even now I don't understand why one would desire to hijack (in other words, where is the advantage in hijacking?). Provided that there is no advantage, so nobody wants to do it, if I did it I did it without awareness. The start of the thread, posted by user Dima, where I replied is (citation): I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. followed by a numbered list of other questions. I replied to a few. The most important was about the Data event. Then someone else, Faysal Banna, asked about what I replied to Dima, without specifying more. I assumed he was talking about usb flash disk, because the other argument is already explained in the docs. Banna replied no no, it was about editing cells. But what he really wrote is (citation): no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside Now, for my poor english, I suppose the adjective besides acts as a junction between two predicates. So he wanted to know about gridview, and *besides*, something about editing of cells. Is it clear to you? For me, just not enough... :-) I did the best I could do about the Data event: I posted the good source provided by another user on the same thread. And I simply ignored the phrase following that besides. I write this full explanation (sorry) because I feel a little flamed. If you can, and if you want, go to see the whole thread on gambas-user. It started with a set of question, and just now Benoit is replying you should have been make a thread for each question to the poster. Then someone else (Banna) wrote something not clear to me, and even changed topic. Lastly, you teach to me that I am hijacking! :-) Better for me to take some course about computers... I like them but I don't understand them; and while I'm at it, an english course too... :-) Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
for all those who assumed i hijacked the thread and subject the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB ! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment and instead of u mumbling about Hijacking and bla bla bla u could have pointed to the solution if u know it or either directed to the documentation . Doriano ... Could you please point to a good documentation about GridView utilisation and/or TableView, besides your english is good just other people need to follow threads from the beginning. Regards... and please stay on track of events before u rush into mumbling bla bla stuff On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Ron_1st ha scritto: On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Funny signature. Really, I didn't know what hijacking was, and even now I don't understand why one would desire to hijack (in other words, where is the advantage in hijacking?). Provided that there is no advantage, so nobody wants to do it, if I did it I did it without awareness. The start of the thread, posted by user Dima, where I replied is (citation): I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. followed by a numbered list of other questions. I replied to a few. The most important was about the Data event. Then someone else, Faysal Banna, asked about what I replied to Dima, without specifying more. I assumed he was talking about usb flash disk, because the other argument is already explained in the docs. Banna replied no no, it was about editing cells. But what he really wrote is (citation): no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside Now, for my poor english, I suppose the adjective besides acts as a junction between two predicates. So he wanted to know about gridview, and *besides*, something about editing of cells. Is it clear to you? For me, just not enough... :-) I did the best I could do about the Data event: I posted the good source provided by another user on the same thread. And I simply ignored the phrase following that besides. I write this full explanation (sorry) because I feel a little flamed. If you can, and if you want, go to see the whole thread on gambas-user. It started with a set of question, and just now Benoit is replying you should have been make a thread for each question to the poster. Then someone else (Banna) wrote something not clear to me, and even changed topic. Lastly, you teach to me that I am hijacking! :-) Better for me to take some course about computers... I like them but I don't understand them; and while I'm at it, an english course too... :-) Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 = -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
Re: [Gambas-user] set of questions
Faysal Banna ha scritto: for all those who assumed i hijacked the thread and subject the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB ! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment and instead of u mumbling about Hijacking and bla bla bla u could have pointed to the solution if u know it or either directed to the documentation . Doriano ... Could you please point to a good documentation about GridView utilisation and/or TableView, besides your english is good just other people need to follow threads from the beginning. Dear Faysal, I am sorry - I don't know any other good place to find documentation, apart from the official docs (wiki) and the normal internet sites. To be sincere, I don't even know gambas so well - perhaps when, rarely or perhaps too often, I know something and I write about it, I write so much that what I write can be over-estimated. Now I must add that perhaps I am writing too much in this list, or I know english too little, or both. It is the second time in a few days that threads grow too much because of my messages; I will think about it. Regards to everyone, Doriano Regards... and please stay on track of events before u rush into mumbling bla bla stuff On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Ron_1st ha scritto: On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Funny signature. Really, I didn't know what hijacking was, and even now I don't understand why one would desire to hijack (in other words, where is the advantage in hijacking?). Provided that there is no advantage, so nobody wants to do it, if I did it I did it without awareness. The start of the thread, posted by user Dima, where I replied is (citation): I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. followed by a numbered list of other questions. I replied to a few. The most important was about the Data event. Then someone else, Faysal Banna, asked about what I replied to Dima, without specifying more. I assumed he was talking about usb flash disk, because the other argument is already explained in the docs. Banna replied no no, it was about editing cells. But what he really wrote is (citation): no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside Now, for my poor english, I suppose the adjective besides acts as a junction between two predicates. So he wanted to know about gridview, and *besides*, something about editing of cells. Is it clear to you? For me, just not enough... :-) I did the best I could do about the Data event: I posted the good source provided by another user on the same thread. And I simply ignored the phrase following that besides. I write this full explanation (sorry) because I feel a little flamed. If you can, and if you want, go to see the whole thread on gambas-user. It started with a set of question, and just now Benoit is replying you should have been make a thread for each question to the poster. Then someone else (Banna) wrote something not clear to me, and even changed topic. Lastly, you teach to me that I am hijacking! :-) Better for me to take some course about computers... I like them but I don't understand them; and while I'm at it, an english course too... :-) Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
Re: [Gambas-user] set of questions
On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: On Thursday 22 October 2009, Doriano Blengino wrote: Ron_1st ha scritto: I don't see the connection with gambas from usb stick. Can you enligth me? The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Funny signature. Really, I didn't know what hijacking was, and even now I don't understand why one would desire to hijack (in other words, where is the advantage in hijacking?). Provided that there is no advantage, so nobody wants to do it, if I did it I did it without awareness. No Doriano, you didn't hijack. Hijack is jumping in a tread with a new question and disturb the conversation in the current thread. It can happen so as did in this tread to top poster had some questions. The tread splits in top with answers to the several questions. In this case the tread was at the point talking about the usb-stick. In your first answer in this tread you did give answers to point 1(usb) and point 2(gridview) Then Faysal did ask for some example/ A few posts before Jussi answer with his situation for the gambas install on usb. Faysal jumps in and ask something [2009-10-21 12:52]. Doriano... do you have a sample src package of what you have just explained ? can u share a simple running example with source files and forms ? Your answer was [2009-10-21 13:38] can u share a simple running example with source files and forms ? About what? I suppose about running a gambas app out of a usb stick? Never tried but, if this is your request, I can try. ---8--- I played a bit, but it does not work. The path lib/gambasX seems to be hardcoded in the gbx executable. So Faysal wrote [2009-10-21 13:44] no no sir i was asking about the Grid View u were explaining to Dima ... ---8--- Then Jussi comes in at [2009-10-21 15:47] He answers some questions from the TOP (Topic Opening Poster) for Q 1, 3, 5 and 6. None of them refers to the gridview. Here Jussi should have answered in a reply to the opening post insted this place. The tread here was oriented at one of the questions, the usb case. Now Faysal ask [2009-10-21 16:51] again about the gridview. So I did replay [2009-10-22 09:10] as answer to Faysal. I don't see the connection with gambas from usb stick. Can you enligth me? Doriano did answer my post [2009-10-22 09:20] The first message of the thread, set of questions, contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already . So it was clear this branch in the topic was about the usb/gambas install. I did answer:[2009-10-22 11:13] He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. You may say I'm wrong because it is in the TOP, that is correct. My mistake, I was following the usb/install branch and had forgotten the TOP. IMHO Faysal should have ask his gridview case on your first answer where you did talk about it. At that moment there was no misunderstanding as did happen on the place he did request it [2009-10-21 12:52] where he asked for some src/example code. Because at this place the answers where the usb/install related you respond about this and not the gridview and he did answer with 'no no no' No ringing bells at Faysal there was some misunderstanding about the specific subjec part in discussion. Now you replay to my second post [2009-10-22 16:43] folowed by Faysal to your post. ---8--- gridview which is of my interest at the moment and instead of u mumbling about Hijacking and bla bla bla u could have pointed to the solution if u know it or either directed to the documentation ---8--- So he did attack you about mumbling. He did reply to the wrong post :) Doriano ... Could you please point to a good documentation about GridView utilisation and/or TableView, besides your english is good I agree. just other people need to follow threads from the beginning. And that is what you should do also and special pay attention to reply to the right message. This last one should be to me and the other one to the first post Doriano talked about the gridview. His later answers where to another question
Re: [Gambas-user] set of questions
On Thursday 22 October 2009, Faysal Banna wrote: just other people need to follow threads from the beginning. Regards... and please stay on track of events before u rush into mumbling bla bla stuff Do you mean Doriano with 'u rush'? Please wake up before you write something as reply. See my reply to Doriano just send. just other people need to follow treads from the beginning and reply to the relevant reply containing the subject part those people want answers to as i.e. src/example. That way they do not cry 'no no no' Best regards, Ron_1st -- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
On Thursday 22 October 2009, Doriano Blengino wrote: Faysal Banna ha scritto: for all those who assumed i hijacked the thread and subject the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB ! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment and instead of u mumbling about Hijacking and bla bla bla u could have pointed to the solution if u know it or either directed to the documentation . Doriano ... Could you please point to a good documentation about GridView utilisation and/or TableView, besides your english is good just other people need to follow threads from the beginning. Dear Faysal, I am sorry - I don't know any other good place to find documentation, apart from the official docs (wiki) and the normal internet sites. To be sincere, I don't even know gambas so well - perhaps when, rarely or perhaps too often, I know something and I write about it, I write so much that what I write can be over-estimated. I like you writing very much. You help people where you can. Now I must add that perhaps I am writing too much in this list, or I know english too little, or both. It is the second time in a few days that threads grow too much because of my messages; I will think about it. I do not have problems with your english. May be the grammar is not right but I think most people can follow. My grammar is also not top of the top. It's symple not our native language. Regards to everyone, Doriano Best regards to all gambas lovers, Ron_1st -- 111.11 x 111.11 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] set of questions
Using Gambas 2.7, Debian Lenny 32 -- Hello! Main question. I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. There is a folder on my USB-FLASH-DISK with my application and subfolders: 1) bin, includes files gba2, gbc2, gbi2, gbx2, soft links; 2) lib, includes files *.so.0.0.0, *.component, *.gambas, soft links; 3) share, includes icons/*.png, info/* (strange files), mime/*.xml. It also includes bash-script for copying all above to system folders /usr/bin/, /usr/lib/ and /usr/share. Can I run my application with just some command, without copying? Another questions: 1) May I create proprietary (not open-scource) gambas2-applications and components for gambas2? 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: You should use the last method if you have thousands of rows to display.. I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? 3) When I hide persistent Form, how to display it again? 4) On my monitore with resolution 1024x768 Forms and widgets on them look great. But when I come to my friends with big wide monitors, some widgets (Buttons) became bigger while another widgets don't or not in such proportions. Why it happens? 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? Some suggestions: 1) In gambas2-IDE I need the insert mode of type, that replaces the next character. P.S. Thanks to Benoît Minisini for help (Problem with UTF-8 in Gambas-connection to MySQL). The --default-character-set really was Latin1. Regards, -- Dima Malkov (Russia) -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease ' ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result ' PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = mysql .host = localhost .Name = stock .login = charles .password=dog END WITH $hConnLocl.Open() 'create a result sql = SELECT * FROM grnLine $resData = $hConnLocl.Exec(sql) END '- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row : column : Str($resData[GridView1.Columns[column].text]) END '-- rgds -- View this message in context: http://www.nabble.com/set-of-questions-tp25987669p25988021.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Dima Malkov ha scritto: Using Gambas 2.7, Debian Lenny 32 -- Hello! Main question. I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. There is a folder on my USB-FLASH-DISK with my application and subfolders: 1) bin, includes files gba2, gbc2, gbi2, gbx2, soft links; 2) lib, includes files *.so.0.0.0, *.component, *.gambas, soft links; 3) share, includes icons/*.png, info/* (strange files), mime/*.xml. It also includes bash-script for copying all above to system folders /usr/bin/, /usr/lib/ and /usr/share. Can I run my application with just some command, without copying? Copying is a very bad idea - there is the risk of messing up the host system. In theory it is possible to do what you want, at a variable degree of difficulty. The only problem can arise if gambas searches its components using absolute paths without querying environment variables. You can refer, in your script, to relative paths for executables, and use the environment variable LD_LIBRARY_PATH for shared libraries. About /usr/lib and /usr/share, I am not sure about what gambas does. 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: You should use the last method if you have thousands of rows to display.. I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? The second method refers to the Data event, and works like this: you don't load all the data in the GridView; instead, you wait for Gridview to ask for the data through the Data event. In the event handler, you load the requested data. This method if far faster because Gridview asks for data only when needed (ie, when they are visible). You put a Gridview in a form, and setup the Data event. When the form shows up, there will be, say, 10 rows visible; Gridview will raise the event 10 times, asking for data of each visible row. If you scroll the Gridview, as more rows will become visible, more data will be requested by mean of Data event. Sorry for the missing answers - I told you the few things I knew. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Doriano... do you have a sample src package of what you have just explained ? can u share a simple running example with source files and forms ? much regards On Wed, Oct 21, 2009 at 11:11 AM, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Dima Malkov ha scritto: Using Gambas 2.7, Debian Lenny 32 -- Hello! Main question. I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. There is a folder on my USB-FLASH-DISK with my application and subfolders: 1) bin, includes files gba2, gbc2, gbi2, gbx2, soft links; 2) lib, includes files *.so.0.0.0, *.component, *.gambas, soft links; 3) share, includes icons/*.png, info/* (strange files), mime/*.xml. It also includes bash-script for copying all above to system folders /usr/bin/, /usr/lib/ and /usr/share. Can I run my application with just some command, without copying? Copying is a very bad idea - there is the risk of messing up the host system. In theory it is possible to do what you want, at a variable degree of difficulty. The only problem can arise if gambas searches its components using absolute paths without querying environment variables. You can refer, in your script, to relative paths for executables, and use the environment variable LD_LIBRARY_PATH for shared libraries. About /usr/lib and /usr/share, I am not sure about what gambas does. 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: You should use the last method if you have thousands of rows to display.. I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? The second method refers to the Data event, and works like this: you don't load all the data in the GridView; instead, you wait for Gridview to ask for the data through the Data event. In the event handler, you load the requested data. This method if far faster because Gridview asks for data only when needed (ie, when they are visible). You put a Gridview in a form, and setup the Data event. When the form shows up, there will be, say, 10 rows visible; Gridview will raise the event 10 times, asking for data of each visible row. If you scroll the Gridview, as more rows will become visible, more data will be requested by mean of Data event. Sorry for the missing answers - I told you the few things I knew. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 = -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Faysal Banna ha scritto: Doriano... do you have a sample src package of what you have just explained ? can u share a simple running example with source files and forms ? About what? I suppose about running a gambas app out of a usb stick? Never tried but, if this is your request, I can try. I played a bit, but it does not work. The path lib/gambasX seems to be hardcoded in the gbx executable. I discovered that there are two environment variables, LD_PRELOAD and GAMBAS_PRELOAD. The first is well known - it forces to preload the indicated libraries, and it works; but then gambas crashes. The second one does not seem to do anything; I peeked in the sources, but I didn't understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then copy it back again and unset the other... May be I am missing something, but for what I have seen, there is no way to load the required library from a path different than the one compiled-in. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. much regards On Wed, Oct 21, 2009 at 2:38 PM, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Faysal Banna ha scritto: Doriano... do you have a sample src package of what you have just explained ? can u share a simple running example with source files and forms ? About what? I suppose about running a gambas app out of a usb stick? Never tried but, if this is your request, I can try. I played a bit, but it does not work. The path lib/gambasX seems to be hardcoded in the gbx executable. I discovered that there are two environment variables, LD_PRELOAD and GAMBAS_PRELOAD. The first is well known - it forces to preload the indicated libraries, and it works; but then gambas crashes. The second one does not seem to do anything; I peeked in the sources, but I didn't understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then copy it back again and unset the other... May be I am missing something, but for what I have seen, there is no way to load the required library from a path different than the one compiled-in. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 = -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
Faysal Banna ha scritto: no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. Uhm... I never used a Gridview in that way, I simply worked out with my words something that already is in the docs (in a very unixish fashion). I tried to explain better what the idea behind Data event is. But after that I have seen, in this thread, a complete example: I cut and paste: Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease ' ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result ' PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = mysql .host = localhost .Name = stock .login = charles .password=dog END WITH $hConnLocl.Open() 'create a result sql = SELECT * FROM grnLine $resData = $hConnLocl.Exec(sql) END '- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row : column : Str($resData[GridView1.Columns[column].text]) END '-- Hope this is what you need. Thanks for your nice appellation, sir :-), and regards. Doriano Blengino -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
1) May I create proprietary (not open-scource) gambas2-applications and components for gambas2? Yes, but Qt3 is not free for proprietary use. 3) When I hide persistent Form, how to display it again? FromName.Show works with me..? 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? With my project it was easy. Tools menu -- Update forms. Then possibly some minor changes to code. Example Write and Read, see documentation for details. 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? I think gb.qt4 is not completely ready yet. But in future you can, if I have understand correctly. Qt3 -- GTK+ works well. Jussi On Wed, Oct 21, 2009 at 15:15, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Faysal Banna ha scritto: no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. Uhm... I never used a Gridview in that way, I simply worked out with my words something that already is in the docs (in a very unixish fashion). I tried to explain better what the idea behind Data event is. But after that I have seen, in this thread, a complete example: I cut and paste: Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease ' ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result ' PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = mysql .host = localhost .Name = stock .login = charles .password=dog END WITH $hConnLocl.Open() 'create a result sql = SELECT * FROM grnLine $resData = $hConnLocl.Exec(sql) END '- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row : column : Str($resData[GridView1.Columns[column].text]) END '-- Hope this is what you need. Thanks for your nice appellation, sir :-), and regards. Doriano Blengino -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] set of questions
what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: 1) May I create proprietary (not open-scource) gambas2-applications and components for gambas2? Yes, but Qt3 is not free for proprietary use. 3) When I hide persistent Form, how to display it again? FromName.Show works with me..? 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? With my project it was easy. Tools menu -- Update forms. Then possibly some minor changes to code. Example Write and Read, see documentation for details. 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? I think gb.qt4 is not completely ready yet. But in future you can, if I have understand correctly. Qt3 -- GTK+ works well. Jussi On Wed, Oct 21, 2009 at 15:15, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Faysal Banna ha scritto: no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. Uhm... I never used a Gridview in that way, I simply worked out with my words something that already is in the docs (in a very unixish fashion). I tried to explain better what the idea behind Data event is. But after that I have seen, in this thread, a complete example: I cut and paste: Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease ' ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result ' PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = mysql .host = localhost .Name = stock .login = charles .password=dog END WITH $hConnLocl.Open() 'create a result sql = SELECT * FROM grnLine $resData = $hConnLocl.Exec(sql) END '- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row : column : Str($resData[GridView1.Columns[column].text]) END '-- Hope this is what you need. Thanks for your nice appellation, sir :-), and regards. Doriano Blengino -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net