[Gambas-user] listbox display selected item

Dimitris Anogiatis dosida at ...626...
Thu Jul 23 06:30:57 CEST 2009


JY,to select a specific item in a listview you have to provide the item's
key like this

Listview1["Blah"].Selected = True

 if you want to automatically select the first item that is on the listview
you try this

IF Listview1.Count > 0 THEN
  Listview1.MoveFirst
  Listview1.Item.Selected = True
ENDIF

Hope that helps

Regards,
Dimitris

On Wed, Jul 22, 2009 at 8:44 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote:

> Hi,
>
> is there a way to make an item appear selected when the mouse is hovering
> it?
> (just after ListBox activation)
>
> --
> "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
> the Ugly)." (By Matt Welsh)
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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