Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-25 Thread Doriano Blengino
kevinfishburne ha scritto: Doriano Blengino wrote: Read carefully the documentation about the WRITE instruction - in the first few lines you find the explanation. When you write something out, you can specify the length of the data you write. If you don't specify it, gambas will do it

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-25 Thread Doriano Blengino
Doriano Blengino ha scritto: The subroutine could look something like this: sub square_diamond(left, right, top, bottom as integer) step = (right+left) / 2 SORRY: step = (right - left) / 2 Urgh... Regards, Doriano

Re: [Gambas-user] output to open office files

2010-01-25 Thread Ricardo Díaz Martín
Robi, To compress and insert new content.xml into your Document.ods Template you can do this: EXEC [zip, -gj, odsTemplate, YourModifiedcontent.xml] WAIT Your system need to be installed zip utility on before (on ubuntu: sudo apt-get install zip) I got something like you need but not equal. All

Re: [Gambas-user] IconView control questions

2010-01-25 Thread Benoît Minisini
I'm having a little trouble figuring out how to get the iconview control to behave as I would like. The grid spacing property seems to adjust the horizontal distance between the icons, but is there any way to change the vertical spacing between the icons and the text, and between sequential

Re: [Gambas-user] problem with database manager (gambas3)

2010-01-25 Thread Benoît Minisini
2. cannot add /modify /delete the records in a table. if no records in the table and I click on the view , I get exception and gb3 terminate . the add button always disable and the delete button is not working. In revision #2638, you can now create and remove records. The DataView control

Re: [Gambas-user] problem with Music.Pause

2010-01-25 Thread Benoît Minisini
Hello everybody, i have a problem with the function Music.Pause. I use Gambas 2.19 on ubuntu 9.10 and i develop an application for listen music. I use the following components: gb - gb.form - gb.gtk - gb.sdl.sound - gb.setting The problem is that when i use the function in object the song

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-25 Thread Simonart Dominique
Hi, May be I've to elaborate a little bit? I see the process like this: 1) you transpose each cell of your initial array to a pixel of a picture where the coordinates of the pixel is equal to the coordinate of the cell and the grey color of the pixel is equal to the elevation in the cell 2)

[Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Matteo Pasotti
Hi everybody, I'm still here beacuse I can't understand why the Count property of a TreeView changes using qt rather than gtk. Now I'm using Gambas 2.19 (on Ubuntu 9.10) from the ppa repo deb http://ppa.launchpad.net/madnessmike/gambas/ubuntu karmic main. I've attached a project example.

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Benoît Minisini
Hi everybody, I'm still here beacuse I can't understand why the Count property of a TreeView changes using qt rather than gtk. Now I'm using Gambas 2.19 (on Ubuntu 9.10) from the ppa repo deb http://ppa.launchpad.net/madnessmike/gambas/ubuntu karmic main. I've attached a project example.

[Gambas-user] Q: about components

2010-01-25 Thread Charlie Reinl
Salut Benoît, talking gambas2 the question is: why a component uses itself as component ? The reason why I ask that, in our DBReport project, I set as component and as requires all gb.db.* components, what was a mistake, or say more kindly, not necessary. But it was not easy to strip them,

Re: [Gambas-user] Q: about components

2010-01-25 Thread Benoît Minisini
Salut Benoît, talking gambas2 the question is: why a component uses itself as component ? The reason why I ask that, in our DBReport project, I set as component and as requires all gb.db.* components, what was a mistake, or say more kindly, not necessary. But it was not easy to strip

[Gambas-user] Natural sorting in Gambas 3

2010-01-25 Thread Benoît Minisini
Hi, I have implemented string natural comparison and sorting in the last Gambas 3 revision. With that, you can, for example, sort a file name array returned by Dir() that way: Photo1.jpg Photo1a.jpg Photo1b.jpg Photo2.jpg ... Photo9.jpg Photo10.jpg Photo11.jpg Instead of:

Re: [Gambas-user] problem with database manager (gambas3)

2010-01-25 Thread kobolds
I updated rev 2640 . thanks it fixed . Benoît Minisini wrote: 2. click on a test table you will see no records on records view . double click on the records view you will get exception . this exception only happen if no record . if there's a record then the exception won't come out

Re: [Gambas-user] Natural sorting in Gambas 3

2010-01-25 Thread Steven James Drinnan
Wow that must be a first in a programming language, as most don't even bother. It's something that I always had a bug bear about. But have never had the time to implement this sort of sort on my programs. Great work, it this sort of functionality that has made Gambas great. Steven Drinnan On

[Gambas-user] V2.19 closes unexpectedly

2010-01-25 Thread Fiddler63
If I right click on Modules (in the left hand tree) and select properties (with no modules available) Gambas closes it current session. Not a major, but. Ubuntu 9.10 64 bit. Kim -- View this message in context: http://old.nabble.com/V2.19-closes-unexpectedly-tp27318860p27318860.html Sent

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Kadaitcha Man
2010/1/26 Benoît Minisini gam...@users.sourceforge.net: Benoît, Just for that you should go with the GTK+ way :P Regards, Dimitris But is it really useful? We need to know how many root items a TreeView or a ColumnView has, too! Perhaps a new property. However, when I need to know such

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Kadaitcha Man
On 26 January 2010 12:44, Dimitris Anogiatis dos...@gmail.com wrote: Benoît, Just for that you should go with the GTK+ way :P Just for that, he should go with however Windows does it. Neener! Neener! :) -- The

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Benoît, Perhaps another approach would be to get rid of the Count property and create a Count method that would count the children of a given root in the control (and optionally all it's branches). for example / (root) item1 item2--item3 |-item4 |-item5 |-item6 item7

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Ooops, Correction on the second example it should read countMyTreeItems = Treeview1.Count(item2, true) Sorry guys it's a bit late over here Regards Dimitris On Tue, Jan 26, 2010 at 12:49 AM, Dimitris Anogiatis dos...@gmail.comwrote: Benoît, Perhaps another approach would be to get rid of