Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread user
Good morning to all, Yes that would be nice and would help to thinking while reading similar methods in other controls. On Fri, 2010-10-15 at 23:21 +0200, Matti wrote: > This is not a problem with the docs. > You expected a similar method that the programmer didn't have written. > Maybe he should

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread BenoƮt Minisini
> This is not a problem with the docs. > You expected a similar method that the programmer didn't have written. > Maybe he should better have wirtten a method like ListView1.Unselect? > Yes. The selection interface between ListView/ColumnView/Treeview should have the same methods as as the GridV

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread Matti
This is not a problem with the docs. You expected a similar method that the programmer didn't have written. Maybe he should better have wirtten a method like ListView1.Unselect? Am 15.10.2010 22:58, schrieb user: > i have difficulties with the docs. > > they are not easy searched. > > for examp

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread user
i have difficulties with the docs. they are not easy searched. for example i found easy for gridview unselect and i expected to be something similar for other controls with Select methods as Listview i did not expect to find the unselect in SelectAll method! On Fri, 2010-10-15 at 22:13 +0200, M

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread Matti
You are right, that's the elegant solution: ListView1.SelectAll(False) It is always good to read the docs carefully (which I didn't) Am 15.10.2010 21:56, schrieb user: > Hm, i think i found it > > > ListView.SelectAll (gb.qt) > Syntax > > -- > SUB SelectAll (

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread user
Hm, i think i found it ListView.SelectAll (gb.qt) Syntax -- SUB SelectAll ( [ Selected AS Boolean ] ) -- Selects or deselects all items in the view. * If Selected is TRUE, then all items are selected. This is the defaul

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread user
Thanks i got it! On Fri, 2010-10-15 at 21:10 +0200, Matti wrote: > >From the docs: > .ListViewItem.Selected > PROPERTY Selected AS Boolean > Indicates if the item is selected > > I tried it (Gambas3) like this: > ListView1.MoveFirst > Do While ListView1.Item > ListView1.Item.Selected = Fa

Re: [Gambas-user] GridView and ListView Selections

2010-10-15 Thread Matti
>From the docs: .ListViewItem.Selected PROPERTY Selected AS Boolean Indicates if the item is selected I tried it (Gambas3) like this: ListView1.MoveFirst Do While ListView1.Item ListView1.Item.Selected = False ListView1.MoveNext Loop Probably, there are more elegant ways, but it wor

[Gambas-user] GridView and ListView Selections

2010-10-15 Thread user
Hi to all again, In a GridView we can unselect the selected rows as following grdResults.Rows.Unselect In a ListView control when i want to unselect how we can do it? i try to find something like lswResults.Items.Unselect but there is no Items (as there is Rows class for grd) class or some