On Wednesday 18 November 2009 03:35:00 pm Paul McNett wrote:
> John wrote:
> > On Wednesday 18 November 2009 03:04:31 pm Paul McNett wrote:
> >> John wrote:
> >>> You know what would be very cool if the grids saved there
> >>> configuration. Like when the user changes the size of a column.
> >>
> >> It's done that forever. It saves column width, row height, relative
> >> column position, and sort order. Are you not seeing that?
> >>
> >> Paul
> >
> > Does not work for me. Is there a setting I'm missing? Can I assume it
> > is saved in the Dabopreference.db?
>
> Run dabo/ui/uiwx/dGrid.py. Change a column width, close, and run again. Did
> that stick?
>
> Yes, it saves to the preference file.
>
> There's no setting for it, other than you need to have dGrid.SizableColumns
> and dColumn.Sizable set to True for custom sizes, and dGrid.MovableColumns
> and dColumn.Movable set to True for custom positions. But if those were
> False you wouldn't be able to size/move them at all.
>
> Paul
I can find
dGrid.ResizableColumns
dColumn.Resizable = True
dColumn.Movable = True
But not attrb or properties you are using - dGrid.SizableColumns and
dColumn.Sizable. Maybe something in wx?
below is my setup of a grid.
attenGrid = dabo.ui.dGrid(self, RegID = "attengridID", SelectionMode = 'Row',
AlternateRowColoring = True, ColumnCount = 10, Editable = False,
MovableColumns = True, ResizableColumns = True)
attenGrid.DataSource = self.Form.esatten
attenGrid.Columns[0].Caption = 'Attended'
attenGrid.Columns[0].DataField = 'here'
#attenGrid.Columns[0].Width = 90
attenGrid.Columns[0].Resizable = True
attenGrid.Columns[0].Movable = True ...
What do I have to change?
Johnf
_______________________________________________
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]