[Gambas-user] GridView changes (was Circular References Update)

Richard richard.j.walker at ...247...
Mon Jan 22 03:23:49 CET 2007


On Saturday 20 Jan 2007 14:02, Charlie Reinl wrote:
> You can replace the TableView by GridView and give the old TableView
> name. I think thats the quickes way.
>

Yes Charlie, that is exactly what I did to make  1.9.47 versions of my 
program; one with a Gridview and one with a TableView. I don't really need a 
TableView as I don't alter any data on it so the GridView works just as well 
in the context. 

The unanticipated behaviour of my program's GridView/TableView must be coming 
from the parent GridView class. I see it has been completely rewritten and is 
now double the size of the 1.9.46a version (CGridView.cpp).

What I need is a reliable way to determine which is the currently selected row 
of the table and a way to cause another row to be selected. In 1.9.46a I was 
able to do it with something like this:

    TimerSummary.Rows[next_row].Selected = TRUE

This worked for either a GridView or a TableView but in 1.9.47 it is little 
better than a random selector! OK, "random" isn't the right word, but neither 
is "logical". I increment and decrement the next_row variable but the 
indicated selected row does not always track the variable. It can take 12 
clicks on a control to step down 10 rows and 13 clicks to come back to the 
top!

Fortunately this is just an "academic" problem as I will be delivering the 
program next weekend for my sister's birthday and it will be running fine 
under 1.9.46a on her machine.

Richard




More information about the User mailing list