Stefano Palmeri schrieb: > Il martedì 25 novembre 2008 11:06:27 Rolf-Werner Eilert ha scritto: >> Hi, >> >> is it possible to set TableView.Row from Code during runtime? >> >> Would be nice to make sure a certain row in the table is selected before >> the user begins working with it (e. g. to draw attention to this row). >> >> Just tried this >> >> IF po > -1 THEN mesListe.Row = po >> >> but nothing happened. It should trigger the click event of the TableView >> (mesListe) to show something, but I guess this isn't possible here, is it? >> >> Thanks for your ideas. >> >> Rolf >> > > I'm not sure that I perfectly understood, but it should be: > > TableView1.MoveTo(1, 0)
Ok, I didn't perfectly express my thoughts :-) The question was how to get the event as if the user had clicked the row. If I do it by code the way you describe it, the click event isn't raised, so I will have to take care the other SUB is called then. > I use gb.qt. So do I... And do you know a way to scroll the tableview down to a new entry to make it visible WITHOUT selecting the row? I tried TableView.Row = 17 'no problem, works like MoveTo TableView.Current.EnsureVisible 'that runs good TableView.Row = -1 'that destroys the selection I just want to show the user "here is something new, please click me!" without setting the selection to the line. Regards, Rolf ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
