On Oct 22, 2010, at 3:59 AM, Fraser Burns wrote:

> Since "ShowColumnLabels" is deprecated, why does the code that the 
> wizard generates still call it?

        Can you give me an example of where a wizard-generated app uses 
'ShowColumnLabels'? I just ran the wizard, and can't find anywhere in the code 
that the word exists

> Shouldn't that code be calling "ShowHeaders" instead, with the "old" 
> methods still existing  in dGrid.py so as not to interfere with existing 
> code? After all you have set them to just give the warning and then use 
> ShowHeaders anyway.
> Or is there something about the way the methods come down that make this 
> too difficult until you do the actual cutover?
> Since your wizards are so good, I am naturally going to keep using them, 
> which means that I am continuing to create code that should be being 
> phased out.

        I agree that the tools should not create code that will become useless, 
but I also think that you're overstating the problem. The name of a property 
has been changed; the property works exactly the same as it always has. Every 
editor has a Find/Replace function; if you're using vim, typing:

:%s/ShowColumnLabels/ShowHeaders/g

will completely update your code to use the new name.

        It's really kind of funny that you recently noticed an inconsistency in 
the hotkeys for running code. The reason for the name change was that the 
property was originally named to be consistent with the corresponding row-level 
property ('ShowRowLabels'). However, given that there are so many other 
properties that deal with grid headers/column-labels, and they all refer to 
those things as 'Headers' ('HeaderBackColor', 'HeaderFont', 'HeaderFontBold', 
'HeaderFontDescription', 'HeaderFontFace', 'HeaderFontInfo', 
'HeaderFontItalic', 'HeaderFontSize', 'HeaderFontUnderline', 'HeaderForeColor', 
'HeaderHeight', 'HeaderHorizontalAlignment', 'HeaderVerticalAlignment'), it was 
felt that 'ShowHeaders' was more consistent. 


-- Ed Leafe



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

Reply via email to