[Gambas-user] A little question about treeView

Jorge Carrión shordi at ...626...
Thu Nov 5 22:34:51 CET 2015


Works fine,Toby!
I don't know why I thought the property key was read-only... I'm gettinng
old, I guess... 😁😁

Thank you very much.

Regards

2015-11-05 21:56 GMT+01:00 Tobias Boege <taboege at ...626...>:

> On Thu, 05 Nov 2015, Jorge Carri??n wrote:
> > I have a treeView and I change the current item by
> >
> > myTreeview.moveto(newkey)
> >
> > Since then, the current key is newkey but the item is not highlightes on
> > screen
> >
> > I can't find the way to highlight the new item... How can it be done?
> >
>
> TreeView has two distinct cursors: one for the visually selected item (in
> single selection mode) and an internal cursor.
>
> The Move*() methods modify the internal cursor and have no effect on the
> GUI. You must set the Key property of TreeView to change the selected
> element on the GUI.
>
> Part of that is written on the TreeView documentation start page[0].
>
> Regards,
> Tobi
>
> [0] http://gambaswiki.org/wiki/comp/gb.qt4/treeview
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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