Re: [Gambas-user] Selection from GridView
To do the first write (select first, third and sixth rows - gvYourGridView is the name of the gridview in your form) gvYourGridView.Rows.[0].Selected = True gvYourGridView.Rows.[2].Selected = True gvYourGridView.Rows.[5].Selected = True To do the second only write gvYourGridView.Rows.Unselect Regards, Ricardo Díaz 2009/9/9 Aleksandrs Livshics alek...@mpe.lv Hi Gambas users. I cannot fond how to select several rows from a GridView. The difficulty happens only if the rows to select are not consequent. If there is a simple interval of rows, then selection works well, but if I want to select, say, row1 and row5 ? Also how can a row selection be canceled without selecting of another row? Just mouse click on the selected row does not cancel the selection... My version is 2.7. Aleks -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 2.16
Benoît Minisini schrieb: Hi, This new release includes the main following changes: - Gambas now compiles with libtool 2.x on recent Ubuntu versions. - CTRL+PageUp and CTRL+PageDown now switch between tabs in the IDE. - Shortcuts are correctly saved in all cases in the IDE menu editor. - The READ instruction has been fixed on 64 bits systems. - gb.pdf now compiles with recent poppler versions. The full ChangeLog is: --- [CONFIGURATION] * BUG: Try to fix building with Autoconf 2.64 * NEW: Put custom autoconf macros in the m4 directory. * NEW: Drop libltdl. * NEW: Use a recent libtool. * NEW: Make the ./reconf script verbose. [DEVELOPMENT ENVIRONMENT] * BUG: Clear the breakpoint list when opening a new project. * BUG: In the menu editor, shortcuts are now correctly saved in all cases. * BUG: Do not fail to load a project when a component is not installed. * BUG: In the Requires tab of the project property dialog, requirements are not incorrectly converted to lower case anymore. * BUG: Keep case of Exclude and Requires component properties. [INTERPRETER] * BUG: Fix many compilation warnings with gcc 4.4. * BUG: Setting a breakpoint in the startup class works again. * BUG: The READ instruction could lead to a crash when reading a string with a maximum length. Fix backported from Gambas 3. * BUG: 64-bits fixes in the interpreter API. Watching file descriptors won't crash anymore on 64 bits system when adresses outside of 32 bits address space are used. * BUG: Fix an uninitialized value in the date formatting routine. [COMPILER] * BUG: Ambiguous braces error message was incorrect, and has been replaced by Ambigous brackets. * BUG: Fix symbol tables that sometimes didn't work correctly when storing symbols having non-ASCII characters. [GB.FORM.MDI] * NEW: Ctrl+PgUp and Ctrl+PgDown are two new shortcuts to move to the previous or next tab in the Workspace control. [GB.NET] * BUG: Fix an uninitialized value in SerialPort class, when retrieving the port signal status. [GB.OPENGL] * BUG: Fix bad code factorization with Gl.Vertex, Gl.Color, Gl.TexCoord and Gl.RasterPos [GB.PDF] * BUG: Make gb.pdf compile with poppler = 0.11.3. [GB.SDL] * NEW: Remove the old m4 directory before starting backporting the updated configuration process from Gambas 3. [GB.SETTINGS] * BUG: Fix the internal string quoting routine of the Settings class, so that storing strings with newline inside works correctly. --- Enjoy it! Thanks for it, Benoit. Just tried it, compiled fine and seems to work here. Regards Rolf -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Word Wrap in GridView
When there is a longer string than fits into a cell, GridView will wrap the text. But it won't by itself make the line taller to show the whole text properly. Instead, you will see just a little bit of the letters in the second line and the first line appears pushed upwards a bit. How can I find out if GridView has wrapped text in a cell to adjust the line height by code? Thanks for your tips! Rolf -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Word Wrap in GridView
Hi all My problem is similar. When I used gb.gui, GridView wrap the text, but when I use gb.qt, it don't do it. ¿How can I wrap the text in a cell? thanks Rolf, I don't know how to help you, sorry 2009/9/10 Rolf-Werner Eilert eilert-sprac...@t-online.de When there is a longer string than fits into a cell, GridView will wrap the text. But it won't by itself make the line taller to show the whole text properly. Instead, you will see just a little bit of the letters in the second line and the first line appears pushed upwards a bit. How can I find out if GridView has wrapped text in a cell to adjust the line height by code? Thanks for your tips! Rolf -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] a IDE-Bug in 2.16.0 rev 2323
Salut Benoit, [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease=Ubuntu 8.04.3 LTS [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.16.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 - gambas2 -- 2.16.0 Revision: 2323 /usr/local/bin/gbx2 changing in IDE-Editor the sub/function by selecting it in the ComboBox raise an Error and IDE crashes. -- Amicalment Charlie attachment: Bildschirmfoto-gambas2.png-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Database manager Save Table problem
I m a new Gambas2 user, and I am not sure where little things like this should be posted, so if it should be somewhere else, please let me know. My system is Ubuntu Jaunty 9.04, Gambas2-2.15.2, Postgresql In the Database Manager, when I save changes to a table which has an index defined, I get an error message that the index already exists. Looking at the code, in FTable.class, function WriteTable, there are two WriteTableDef calls, the first which creates a temporary table (which it deletes afterward), and then a call to write the actual table. Postgres evidently requires index names to be unique within the database, so the create of the temporary table fails as it tries to create another index with the same name, and which of course then it does not process the write of the actual table. It works fine if I delete the indexes first, then save the table, then add the indexes back (until I save it again). My guess is that the write of the temporary table exists to ensure there aren't any problems in the table definition before the actual table is written. Anyone have any good ideas about a way around this (changing FTable.class) ? And, how does a user ask if the changes could be incorporated in Gambas ? Thanks for the help, Dick -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
Am Donnerstag, den 10.09.2009, 12:08 -0400 schrieb Richard Frost: I m a new Gambas2 user, and I am not sure where little things like this should be posted, so if it should be somewhere else, please let me know. My system is Ubuntu Jaunty 9.04, Gambas2-2.15.2, Postgresql In the Database Manager, when I save changes to a table which has an index defined, I get an error message that the index already exists. Looking at the code, in FTable.class, function WriteTable, there are two WriteTableDef calls, the first which creates a temporary table (which it deletes afterward), and then a call to write the actual table. Postgres evidently requires index names to be unique within the database, so the create of the temporary table fails as it tries to create another index with the same name, and which of course then it does not process the write of the actual table. It works fine if I delete the indexes first, then save the table, then add the indexes back (until I save it again). My guess is that the write of the temporary table exists to ensure there aren't any problems in the table definition before the actual table is written. Anyone have any good ideas about a way around this (changing FTable.class) ? And, how does a user ask if the changes could be incorporated in Gambas ? Thanks for the help, Dick Salut Dick, for your pb I'v no answer, but but for your Q: here you are right, you found it, ...had you hints ? -- Amicalment Charlie -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
I m a new Gambas2 user, and I am not sure where little things like this should be posted, so if it should be somewhere else, please let me know. My system is Ubuntu Jaunty 9.04, Gambas2-2.15.2, Postgresql In the Database Manager, when I save changes to a table which has an index defined, I get an error message that the index already exists. Looking at the code, in FTable.class, function WriteTable, there are two WriteTableDef calls, the first which creates a temporary table (which it deletes afterward), and then a call to write the actual table. Postgres evidently requires index names to be unique within the database, so the create of the temporary table fails as it tries to create another index with the same name, and which of course then it does not process the write of the actual table. Apparently on other database systems, two index can have the same name provided they are on different tables. I will modify the postgresql driver to add the table name before each index, it should solve the problem. And, as usual, someone finds a bug just after a new version is released. :-) Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] question about Dialog.SelectDirectory()
Salut Benoit, my be a very stupid question, but for what I'm looking for, is like the Dialog.SelectDirectory() but when I change into a folder/directory I would like to see also the files in that folder/directory. And as result the path to the folder/directory is returned. Reason: Choosing an SQLightn Database or I have to say where all the invoices have to be stored looking for the right one. -- Amicalment Charlie -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
Benoît Minisini wrote: I m a new Gambas2 user, and I am not sure where little things like this should be posted, so if it should be somewhere else, please let me know. My system is Ubuntu Jaunty 9.04, Gambas2-2.15.2, Postgresql In the Database Manager, when I save changes to a table which has an index defined, I get an error message that the index already exists. Looking at the code, in FTable.class, function WriteTable, there are two WriteTableDef calls, the first which creates a temporary table (which it deletes afterward), and then a call to write the actual table. Postgres evidently requires index names to be unique within the database, so the create of the temporary table fails as it tries to create another index with the same name, and which of course then it does not process the write of the actual table. Apparently on other database systems, two index can have the same name provided they are on different tables. I will modify the postgresql driver to add the table name before each index, it should solve the problem. And, as usual, someone finds a bug just after a new version is released. :-) Regards, Thanks Benoît, Sorry about the timing of finding this (relative to the new release), I am a very new Gambas user. So far it is very impressive ... thanks for your's and everyone's hard work. I also made another post which disappeared, so I'll mention it here in case it helps someone else. When I first installed, and tried to edit tables with the database manager, it appeared to do nothing. Eventually I discovered that the workspace area of the window where the table edit forms are was sized so narrow that it didn't show up (I had a hard time even noticing that it was there until I looked at the form design). By dragging it back towards the tree view part of the window, everything was just fine. Thanks again, Dick -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
Benoît Minisini a écrit : ... Apparently on other database systems, two index can have the same name provided they are on different tables. ? strange (and I'm not sure this fit in SQLs standards) However, in PG, you can't have a doublon, either it is from tables, indexes, sequences (exception for functions, unless args are the same) unless your items are in different schemas. I will modify the postgresql driver to add the table name before each index, it should solve the problem. Be careful because this is PG's standard naming system; an index is automatically named as: tablename_columnname_key (..._pkey for primary keys) And, as usual, someone finds a bug just after a new version is released. :-) Yeah, Murphy's law is and endless PITA, just like french taxes spontaneous generation... But cheer up, even though you're doing great ;-) JY -- Q: Why do firemen wear red suspenders? A: To conform with departmental regulations concerning uniform dress. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
Benoît Minisini a écrit : ... Apparently on other database systems, two index can have the same name provided they are on different tables. ? strange (and I'm not sure this fit in SQLs standards) However, in PG, you can't have a doublon, either it is from tables, indexes, sequences (exception for functions, unless args are the same) unless your items are in different schemas. I will modify the postgresql driver to add the table name before each index, it should solve the problem. Be careful because this is PG's standard naming system; an index is automatically named as: tablename_columnname_key (..._pkey for primary keys) Yep. Modifying the driver is not the solution at all. I must modify the IDE instead... -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] question about Dialog.SelectDirectory()
It's not a stupid question Charlie, you can use the DirChooser control that's available in gb.form You can have a form with that control come up as modal (so you can't do anything else until you have chosen a directory and inside it you can put a dirchooser control you can get the selected path like this: tmpPath = DirChooser1.SelectedPath I hope this helps Regards Dimitris On Thu, Sep 10, 2009 at 12:49 PM, Charlie Reinl karl.re...@fen-net.dewrote: Salut Benoit, my be a very stupid question, but for what I'm looking for, is like the Dialog.SelectDirectory() but when I change into a folder/directory I would like to see also the files in that folder/directory. And as result the path to the folder/directory is returned. Reason: Choosing an SQLightn Database or I have to say where all the invoices have to be stored looking for the right one. -- Amicalment Charlie -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user