Ed Leafe wrote:
On Jun 2, 2006, at 12:11 PM, Paul McNett wrote:

IIRC (and if not, my feeling for what should happen is) these simply become the defaults. So if the properties haven't been set at the column level, the column gets the font properties at the grid level by default.

It doesn't work that way. Run the dGrid sample, and bring up the command window:

g = self._dGrid_test
g.FontFace = "Courier New" # or something obviously different
g.FontSize = 48
# Add a new column
g.ColumnCount = 5
g.setValue(0, 4, "Hey")

    Note that the new column is the same as the rest.

Ok, new grid columns should pull from the attr of the grid. It is probably that I'm not overriding the font properties of the grid to save the changes to the attr.

We can either set it up that columns that don't have a specific value assigned default to the grid's value for those props. Then it can either be passive or active: changing the value of a property at the grid level changes that property in all columns (active), or only in those columns for which values were not explicitly given (passive).

Passive. This is both the easiest to implement (no extra work required, except maybe a refresh()), and would seem to be the expected behavior in my mind. All we need to do is get the grid font properties saving to the attr, and because all columns use that same attr (they don't use a copy of it) the changes to the grid props should just flow through.


--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to