Użytkownik Ed Leafe napisał:
>       I don't see the difference with that explanation versus how it works 
> now.
>
>       The Expand property of columns is meant to allow a potentially wide 
> column (say, such as 'comments' or 'notes') to be as wide as the grid will 
> allow without involving scrolling. After a resize of the grid or a column 
> resize, the difference between the total widths of the columns and the grid 
> width is applied to the Expand=True column, so that afterwards the column 
> widths always add up to the grid width.
>
>       How is that different than what you were suggesting?
>
>    

If all columns are visible, there is no difference.
But the difference is significant for columns that are scrolled off 
(invisible).
Simply, current behaviour doesn't allow existence of such columns if
at last one expanded column exist.
Check grid behaviour with and without expanded column and column sizing.
You will see difference.

BTW, current version of dGrid raises an exception:
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
2378, in _delayedUpdateColumnWidths
     col.Width += adj
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
1421, in _setWidth
     grd._syncColumnCount()
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
3187, in _syncColumnCount
     self.SetColSize(wxCol, colObj.Width)
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
1401, in _getWidth
     idx = self.Parent._convertDaboColNumToWxColNum(self.ColumnIndex)
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
2119, in _convertDaboColNumToWxColNum
     daboVis = self._getDaboVisibleCols()
   File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dGrid.py", line 
2097, in _getDaboVisibleCols
     return [e[0] for e in enumerate(self._columns) if e[1].Visible]
RuntimeError: maximum recursion depth exceeded

-- 
Regards
Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to