Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Doriano Blengino
Dominique SIMONART ha scritto: > Doriano Blengino a écrit : > >> jbskaggs ha scritto: >> >> > FOR i = 0 TO ListView1.count - 1 STEP 1 > myArray[i] = i > NEXT > > FOR i = ListView1.count - 1 TO 0 STEP -1 > a = Int(Rnd(i + 1)) > SWAP myArray[i], myArray[a] >>

Re: [Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-12 Thread jbskaggs
Have you tried "me.center"? agrgal wrote: > > I wrote some code to center a Form window, even the Desktop Size is > different. Here it is: > > FMain.X = Int((Desktop.Width - FMain.Width) / 2) > FMain.Y = Int((Desktop.Height - FMain.Height) / 2) > > Meanwhile the Form is resized regarding to

[Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-12 Thread agrgal
I wrote some code to center a Form window, even the Desktop Size is different. Here it is: FMain.X = Int((Desktop.Width - FMain.Width) / 2) FMain.Y = Int((Desktop.Height - FMain.Height) / 2) Meanwhile the Form is resized regarding to the Y coordinate, it doesn't work as well for the X coordi

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Dominique SIMONART
Doriano Blengino a écrit : > jbskaggs ha scritto: > FOR i = 0 TO ListView1.count - 1 STEP 1 myArray[i] = i NEXT FOR i = ListView1.count - 1 TO 0 STEP -1 a = Int(Rnd(i + 1)) SWAP myArray[i], myArray[a] PRINT i, a NEXT > Ap

[Gambas-user] Input box incorrect size of the text control. My first problem.

2009-04-12 Thread agrgal
Hi, everybody! Excuse my English. I've noticed an embarrasing 'bug' when I use an Input Box in my programs. Functionality isn't put at risk but looks horrible. I think an image is better than words... http://www.nabble.com/file/p23013689/inputbox.png How can I fix this problem? It happens whate

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Dominique SIMONART
-- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs
You were correct! There was a extra comma in the data file that was breaking the loop! BTW to you an everyone else if you celebrate it, Happy Easter! If not ignore me. ;) JB SKaggs Simonart Dominique wrote: > > Hi again :) > > May be you did not see the last sentence of my answer wich > is

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs
This works much better at getting a more shuffled list! Thanks Doriano Blengino wrote: > > jbskaggs ha scritto: >> FOR i = 0 TO ListView1.count - 1 STEP 1 myArray[i] = i NEXT FOR i = ListView1.count - 1 TO 0 STEP -1 a = Int(Rnd(i + 1)) SWAP myArray[i], my

Re: [Gambas-user] sticker

2009-04-12 Thread Werner
cristian abarzua wrote: > Hello. > > I sent you a sticker for their programs. > I hope I do not bother Benoit > > Greetings > nice :-) -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative E

Re: [Gambas-user] LinkedIn

2009-04-12 Thread Jeff
Cool. I have set it up. It will be interesting to see how many join. On Sat, 2009-04-11 at 22:28 +0200, Benoît Minisini wrote: > > Hey Benoit > > I thought about setting up a group on LinkedIn for Gambas users. Could > > help to spread the word. Are you ok with it or would you rather not? > > > >

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Simonart Dominique
Hi again :) May be you did not see the last sentence of my answer wich is written in 3 places? Your code is just fine and I don't have any problem with the ListViews. Of course, I had to initialize the ListView1 with my own data like this: FOR i = 0 to 21 ListView1.Add(Str(i), "number " &

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Doriano Blengino
jbskaggs ha scritto: > >>> FOR i = 0 TO ListView1.count - 1 STEP 1 >>> myArray[i] = i >>> NEXT >>> >>> FOR i = ListView1.count - 1 TO 0 STEP -1 >>> a = Int(Rnd(i + 1)) >>> SWAP myArray[i], myArray[a] >>> PRINT i, a >>> NEXT >>> Apart from the problem of missing records, there could be al