Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
How to manage colors of Office 2003 style 
The control can assume the appearance of a Office 2003 style button by setting its Surface property to SURFACE_OFFICE_2003. 
The Office 2003 style carries new dedicated colors which replace the default colors set through the BackColor property (with the exception of the outer border drawn when the SpecialEffect property is set to a value different from SPECIAL_EFFECT_NONE). 
Office 2003 buttons are rendered through the use of a vertical linear gradient made up of 2 colors, one set to the North of the button and one set to the South of the button. If needed, an optional color can be applied to the border. 
 
Depending upon the button state, all predefined colors may be changed; below a summary of colors applied (with involved properties) in various button states: 
  • Normal 
  • Office2003ColorNorth 
    Office2003ColorSouth 
    Office2003ColorBorder (if left undefined, the border will not be rendered) 
  • Pressed 
  • Office2003ColorNorthPressed 
    Office2003ColorSouthPressed 
    Office2003ColorBorderPressed (if left undefined, the border will not be rendered) 
  • Mouse over  
  • Office2003ColorNorthMouseOver 
    Office2003ColorSouthMouseOver 
    Office2003ColorBorderMouseOver (if left undefined, the border will not be rendered) 
    The border's width, expressed in pixels, can be modified through the Office2003BorderWidth property. 
     
     
     
     
     
     
     
    Copyright © 2002-2009 MultiMedia Soft 
    Return to index