[Gambas-user] Listbox

Fabien Bodard gambasfr at ...11...
Sun Jul 11 13:27:50 CEST 2004


Le samedi 10 Juillet 2004 01:55, Gianni Piccini a écrit :
> On Fri, 9 Jul 2004 23:19:28 +0200, you wrote:
> > i don't understand what do topindex....
>
> Sorry for my bad question. I'll give an example: I've 2 listboxes, same
> width and height, placed side by side. They have both 20 items, but only 5
> are visible, due the height of listboxes. If I scroll one of them, the
> first item visible will not be the first, but, for example, the 5 (in vb
> the index of first visible item is readable with listbox.topindex). So, I
> need to make second listbox with item 5 at the top of visibles...
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

ok i understand now


In fact not possible in ListBox... Mabe Benoit have miss that...

ListView1.Current.EnsureVisible ( ) 
ListView2.Find[listView1.Current.key].EnsureVisible ( )

You must in this  case have the same key name in the listview
dim i as integer

For i = 0 to 10
                              key,text,pic, next
  ListView1.add(str(i), i)
  ListView1.add(str(i), i)

next






More information about the User mailing list