Posted 18 years ago
by Steve Weller
Using version 2.0.60.0, >net 1.1, Windows Xp Pro.
If I add a new NavigationPanel to my form, the renderer is set to (the now obsolete?) Office2003NavigationBarRenderer. This means that if I change any of the renderer properties the generated code will no longer compile, reporting errors like this:
error CS1502: The best overloaded method match for 'ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer.Office2003NavigationBarRenderer(ActiproSoftware.Drawing.WindowsColorSchemeType)' has some invalid arguments
error CS1503: Argument '1': cannot convert from 'ActiproSoftware.Drawing.Office2003ColorSchemeType' to 'ActiproSoftware.Drawing.WindowsColorSchemeType'
error CS0619: 'ActiproSoftware.Drawing.Office2003ColorSchemeType' is obsolete: 'This enumeration is obsolete. Please use the improved WindowsColorScheme enumeration instead.'
from the following (generated) code:
ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer office2003NavigationBarRenderer1 = new ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer(ActiproSoftware.Drawing.Office2003ColorSchemeType.WindowsDefault);
Help!
If I add a new NavigationPanel to my form, the renderer is set to (the now obsolete?) Office2003NavigationBarRenderer. This means that if I change any of the renderer properties the generated code will no longer compile, reporting errors like this:
error CS1502: The best overloaded method match for 'ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer.Office2003NavigationBarRenderer(ActiproSoftware.Drawing.WindowsColorSchemeType)' has some invalid arguments
error CS1503: Argument '1': cannot convert from 'ActiproSoftware.Drawing.Office2003ColorSchemeType' to 'ActiproSoftware.Drawing.WindowsColorSchemeType'
error CS0619: 'ActiproSoftware.Drawing.Office2003ColorSchemeType' is obsolete: 'This enumeration is obsolete. Please use the improved WindowsColorScheme enumeration instead.'
from the following (generated) code:
ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer office2003NavigationBarRenderer1 = new ActiproSoftware.UIStudio.NavigationBar.Office2003NavigationBarRenderer(ActiproSoftware.Drawing.Office2003ColorSchemeType.WindowsDefault);
Help!