[Gambas-user] GridView and ListView Selections

user demosthenesk at ...626...
Sat Oct 16 08:55:38 CEST 2010


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 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 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, Matti wrote:
> >> 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 ( [ Selected AS Boolean ] )
> >>> ------------------------------
> >>>
> >>> Selects or deselects all items in the view. 
> >>>
> >>>       * If Selected is TRUE, then all items are selected. This is the
> >>>         default value.
> >>>       * If Selected is FALSE, then all items are deselected.
> >>>
> >>>
> >>>
> >>> 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 = False
> >>>>     ListView1.MoveNext
> >>>>   Loop
> >>>>
> >>>> Probably, there are more elegant ways, but it works.
> >>>>
> >>>> Regards
> >>>> Matti
> >>>>
> >>>>
> >>>> Am 15.10.2010 18:28, schrieb 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
> >>>>> something similar.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> ------------------------------------------------------------------------------
> >>>>> Download new Adobe(R) Flash(R) Builder(TM) 4
> >>>>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> >>>>> Flex(R) Builder(TM)) enable the development of rich applications that run
> >>>>> across multiple browsers and platforms. Download your free trials today!
> >>>>> http://p.sf.net/sfu/adobe-dev2dev
> >>>>> _______________________________________________
> >>>>> Gambas-user mailing list
> >>>>> Gambas-user at lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>>>>
> >>>>
> >>>> ------------------------------------------------------------------------------
> >>>> Download new Adobe(R) Flash(R) Builder(TM) 4
> >>>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> >>>> Flex(R) Builder(TM)) enable the development of rich applications that run
> >>>> across multiple browsers and platforms. Download your free trials today!
> >>>> http://p.sf.net/sfu/adobe-dev2dev
> >>>> _______________________________________________
> >>>> Gambas-user mailing list
> >>>> Gambas-user at lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>>
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>> Download new Adobe(R) Flash(R) Builder(TM) 4
> >>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> >>> Flex(R) Builder(TM)) enable the development of rich applications that run
> >>> across multiple browsers and platforms. Download your free trials today!
> >>> http://p.sf.net/sfu/adobe-dev2dev
> >>> _______________________________________________
> >>> Gambas-user mailing list
> >>> Gambas-user at lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>>
> >>
> >> ------------------------------------------------------------------------------
> >> Download new Adobe(R) Flash(R) Builder(TM) 4
> >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> >> Flex(R) Builder(TM)) enable the development of rich applications that run
> >> across multiple browsers and platforms. Download your free trials today!
> >> http://p.sf.net/sfu/adobe-dev2dev
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> > 
> > 
> > 
> > ------------------------------------------------------------------------------
> > Download new Adobe(R) Flash(R) Builder(TM) 4
> > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> > Flex(R) Builder(TM)) enable the development of rich applications that run
> > across multiple browsers and platforms. Download your free trials today!
> > http://p.sf.net/sfu/adobe-dev2dev
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > 
> 
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list