Re: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Nicolas Koch
> FOR EACH $DIR IN Dir(sPath, "*") >if left$($DIR,1)<>"." then ComboBox1.Add($DIR) > NEXT Thanks Ron and Thank you for schooling me Benoit for explaining to me what I was doing wrong. Best Regards, Nick - This SF.Net

Re: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Ron_1st
On Thursday 27 November 2008, Nicolas Koch wrote: > PUBLIC SUB sPath($FILE AS String) >   sPath = "~/src/test" > >   ComboBox11.Clear >   FOR EACH $DIR IN Dir(sPath, "*") >     ComboBox1.Add($DIR) if left$($dir,1)<>"." then >   NEXT >   ComboBox1.Remove("1") > > END > FOR EACH $DIR IN

Re: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Benoit Minisini
On jeudi 27 novembre 2008, Nicolas Koch wrote: > I am in Gambas 2.9 > > And even if I do ComboBox.List = Dir(sPath) hidden folders show. Of course: you must put Dir(sPath) in a string array, removes elements from the array, and assing the array to ComboBox1.List. > I > was trying to hide tho

Re: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Nicolas Koch
I am in Gambas 2.9 And even if I do ComboBox.List = Dir(sPath) hidden folders show. I was trying to hide those and ComboBox1.Remove("1") was the only way I could find that works. It works but spits out error as I said. Nick On Thu, Nov 27, 2008 at 2:50 AM, Benoit Minisini <[EMAIL PROTECTED]>

Re: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Benoit Minisini
On jeudi 27 novembre 2008, Nicolas Koch wrote: > Hello Gambas Users, > > Ok an interesting problem I've noticed in gb.gtk or with gb.gui. If > you have a ComboBox with items in it and you try to hide one of the > items from listing invoking ComboBox1.Remove("1") you'll get this > error. > > (test

[Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?

2008-11-26 Thread Nicolas Koch
Hello Gambas Users, Ok an interesting problem I've noticed in gb.gtk or with gb.gui. If you have a ComboBox with items in it and you try to hide one of the items from listing invoking ComboBox1.Remove("1") you'll get this error. (test 26729): Gtk-WARNING **: gtktreemodel.c:429: Negative numbers