[Gambas-user] TreeView - programmatically changed selection (solved)
richard terry
rterry at ...1946...
Mon Jun 15 02:05:25 CEST 2009
On Mon, 15 Jun 2009 07:19:15 am Ian Haywood wrote:
> With the TreeView (using gui.qt), I can change the "internal cursor" using
> .MoveTo, .MoveUp, etc. but the user-visible selection does not change. Is
> there any way to do this programmatically?
>
> Thanks,
>
> Ian
> ---------------------------------------------------------------------------
>--- Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Ian,
Turns out to be really simple
Treeview1.item.EnsureVisible()!!!
Works a charm.
More information about the User
mailing list