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] Form problem with Gambas v2.16
Benoit, I think this is not really difficult to create five different forms but I don't want to rewrite all my code after doing this transformation. To be more clear, can I take each code of each TabStrip and put it in a new form or did I need to rewrite the code on each new form about button, panel, label, etc ... ? If I copy/paste all objects form the TabStrip (Tab1) to a new form, are all these objects will keep with the same name to bo coherent to the code associate ? Now, the last question... I don't know how to embed them in the TabStrip at runtime ... Can you explain me please ? Thank you in advance.. Olivier Cruilles Mail: linu...@club-internet.fr Le 24 oct. 2009 à 00:29, Benoît Minisini a écrit : Here is the file: The limit is 4096 constant by class, a constant being a string or a floating point number. This limit cannot be changed in Gambas 2, because of the bytecode. But you can solve that problem by not putting everything in the same class. You have a TabStrip with five tabs. Just create five different forms, and embed them in the TabStrip at runtime. Of course this limit is a boring one, but having more than 4096 constants in a class usually means that there is a problem in the design. Regards, -- 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 -- 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] Form problem with Gambas v2.16
- Original Message - From: Olivier Cruilles linu...@club-internet.fr [QUOTE] To be more clear, can I take each code of each TabStrip and put it in a new form or did I need to rewrite the code on each new form about button, panel, label, etc ... ? [/QUOTE] Cut/Copy/Paste. [QUOTE] If I copy/paste all objects form the TabStrip (Tab1) to a new form, are all these objects will keep with the same name to bo coherent to the code associate ? [/QUOTE] Yes. [QUOTE] Now, the last question... I don't know how to embed them in the TabStrip at runtime ... Can you explain me please ? [QUOTE] You make each window a child of the tabstrip that it ought to be on. IMNSHO, it's a bad idea because if you need to have one control on a tab reach into another control on another tab and find out what's happening, you can't, unless you set up lots of form properties. To try and solve your problem, split your constants into two classes so that, say, all the strings are in one class and all the integers etc in another. -- 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] modules
Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY -- Praise the Lord and pass the ammunition. -- Stephen Coonts, The Minotaur -- 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
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
[Gambas-user] new feature idea
in the search/replace... make a system to allow pattern exemple : FF a, b, c, d, x(0), S11, -680876936 FF d, a, b, c, x(1), S12, -389564586 this is a vb6 style i want to replace this by FF(d, a, b, c, x[1], S12, -389564586) so a patern like: search line with FF pattern for change : * *(*)* replace pattern *(*[*]*) so the part with the * are stored and re distribued with the new patern ... -- 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] new feature idea
Fabien Bodard ha scritto: in the search/replace... make a system to allow pattern exemple : FF a, b, c, d, x(0), S11, -680876936 FF d, a, b, c, x(1), S12, -389564586 this is a vb6 style i want to replace this by FF(d, a, b, c, x[1], S12, -389564586) so a patern like: search line with FF pattern for change : * *(*)* replace pattern *(*[*]*) so the part with the * are stored and re distribued with the new patern Or, perhaps even better, use #1, #2, #3 in the replace pattern, with the style of mmv(1). This can be used to exchange the order of actual parameters in a function call. Regards, -- Doriano Blengino Listen twice before you speak. This is why we have two ears, but only one mouth. -- 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] Tableview question
I've need to use the table view to allow user to edit/add new cells Despite reading Doc's and looking at the examples in the IDe I'm no closer to getting the concept of how the thing works, so I wonder if anyone could explain its use in simple terms and show me a simple sample of how to allow; *user to click on cell enter add information exit value appearing in the cell, adding new row etc. In the meantime I'll pore over the gambas IDE sourcecode and try again! Regards richard -- 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] Tableview question
Am Sonntag, den 25.10.2009, 06:57 +1100 schrieb richard terry: I've need to use the table view to allow user to edit/add new cells Despite reading Doc's and looking at the examples in the IDe I'm no closer to getting the concept of how the thing works, so I wonder if anyone could explain its use in simple terms and show me a simple sample of how to allow; *user to click on cell enter add information exit value appearing in the cell, adding new row etc. In the meantime I'll pore over the gambas IDE sourcecode and try again! Regards richard Salut, I do not remember if it deals with Tableview, or say not with the Tableview used in gambas3, but Gareth Bult ( Encryptec Limited) made a DBGridEditor you find here : http://encryptec.net/software_old/gambas-grideditor but related to mySQL. -- Amicalment Charlie -- 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] modules
Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY You mean, when loading a module at runtime? -- 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] modules
Benoît Minisini a écrit : Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY You mean, when loading a module at runtime? well, both @ runtime and when beginning the project when you choose the components modules you need. ie: base_erp that calls users, clients, suppliers, docs, ... without having to check them. -- Chaos is King and Magic is loose in the world. -- 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] Form problem with Gambas v2.16
Benoit, I found that you talked me: 'embed them in the TabStrip at runtime' So I create a new Form by copy/paste with all objects of the Tab1. I copy/paste too the code corresponding and now all It's ok. Thank you, now I know a new method to develop Gambas projects. Olivier Cruilles Mail: linu...@club-internet.fr Le 24 oct. 2009 à 00:29, Benoît Minisini a écrit : Here is the file: The limit is 4096 constant by class, a constant being a string or a floating point number. This limit cannot be changed in Gambas 2, because of the bytecode. But you can solve that problem by not putting everything in the same class. You have a TabStrip with five tabs. Just create five different forms, and embed them in the TabStrip at runtime. Of course this limit is a boring one, but having more than 4096 constants in a class usually means that there is a problem in the design. Regards, -- 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 -- 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] Gambas equivilent help
Very simple question that i cant seem to answer on my own: What is the gambas equivilent of the java BitSet class? is it a Byte[] array? i dont know but thats about the only thing i could think of. -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26044750.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] Gambas equivilent help
Very simple question that i cant seem to answer on my own: What is the gambas equivilent of the java BitSet class? is it a Byte[] array? i dont know but thats about the only thing i could think of. There is no equivalent of the Java BitSet class. You must implement it by your own, and you can use a Byte array for that if you want. Regards, -- 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