Re: [Gambas-user] annoying glitch

2015-03-09 Thread Gary Emms
Thank you On 08/03/15 15:08, Benoît Minisini wrote: > Le 07/03/2015 18:41, Gary Emms a écrit : >> Hi >> I'm trying to follow a tutorial from Linux Format. I have 2 list boxes >> and I'm trying to move an entry from one to the other using: >> >> Public Sub btnLeft_Click() >> >> Dim i As Integ

Re: [Gambas-user] annoying glitch

2015-03-08 Thread Benoît Minisini
Le 07/03/2015 18:41, Gary Emms a écrit : > Hi > I'm trying to follow a tutorial from Linux Format. I have 2 list boxes > and I'm trying to move an entry from one to the other using: > > Public Sub btnLeft_Click() > > Dim i As Integer > 'transfer selected itelms to left > For i = 0 To l

Re: [Gambas-user] annoying glitch

2015-03-08 Thread Gary Emms
Thank you for this. On 08/03/15 01:57, Dimitris Anogiatis wrote: > Hey Gary, > > I assume you're using the two for loops to find which item on the source > listbox is selected and then removed after the addition to the second > listbox is done. > Gambas listboxes are a bit more flexible. You can g

Re: [Gambas-user] annoying glitch

2015-03-07 Thread Dimitris Anogiatis
Hey Gary, I assume you're using the two for loops to find which item on the source listbox is selected and then removed after the addition to the second listbox is done. Gambas listboxes are a bit more flexible. You can get the index of the selected item with lstInCar.Index. If there is no item s

[Gambas-user] annoying glitch

2015-03-07 Thread Gary Emms
Hi I'm trying to follow a tutorial from Linux Format. I have 2 list boxes and I'm trying to move an entry from one to the other using: Public Sub btnLeft_Click() Dim i As Integer 'transfer selected itelms to left For i = 0 To lstInCar.Count - 1 If lstInCar[i].Selected Then