[comp.sys.mac.programmer] TCL CGridSelector probs

uad1020@dircon.uucp (Ian Cottee) (09/12/90)

I am working on a project which needs to be finished by the end of this 
week - beginning of next at a push. My main problem at the moment is that 
I am using the Think C class libraries and to implement a scrolling selectable 
list I am using the CGridSelector class in the more classes folder. It 
is only one column wide but every time I scroll it seems to increment 
by two. The whole thing just does not seem callibrated to real world. 
If I force the window to do an update then the correct items are drawn.
 If I scroll to the bottom of the document I find a big blank area. And 
finally - the grids only draw for the first page of items - whenever I 
scroll back to them they draw the grids around themselves - but whenever 
I go to anyother screenfull of items there are no grids at all.

This is driving me *maaaaadddd*. Can anyone please help - source code 
of actual implementations would be especially welcome. 

Cheers

Ian
-- 
/////////////////////////////////////////////////////////////////
// Ian Cottee ----- zobbo@cix.uucp                             //
//                  uad1020@dircon.uucp                        //
/////////////////////////////////////////////////////////////////

fjlim@garnet.berkeley.edu (09/13/90)

The CGridSelector class does not scroll properly. The problem is that the
drawing code assumes that the top left corner of the grid is always at
(0,0), which is not the case if you scroll down or to the right.

I have not had time to correct this problem. With just a quick look, one
obvious bug is in the DrawGrid() method. Lines are always drawn starting
at (0,0). The lines need to be drawn starting at frame.left and frame.top
and ending at right and bottom edges of the table.

I'm not sure what is causing you to scroll by two.

Sorry to post this to the entire newsgroup, but I don't know a valid
Internet address to reach dircon.uucp.

-- Greg