| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > MenuStyleManager Class > MenuStyleManager Methods >====== SetVerticalGradient ( set vertical color gradient) ====== | [[setthemecolors.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setverticalselection set vertical color gradient .htm|{{btn_next_n.gif|Next page}}]] | | || **SetVerticalGradient( **//MenuPart//** ,<;**//vertical//**>)** {{blk2blue.jpg|blk2blue.jpg}} | //MenuPart// | A BYTE value representing a specific area of the menu. There are a series of internal equates available to easily identify these elements: | | MenuBrushes:NormalBkgnd | EQUATE(1) !Normal Background | | MenuBrushes:SelectedBkgnd | EQUATE(2) !Selected Background | | MenuBrushes:HotBkgnd | EQUATE(3) !Hot Background | | MenuBrushes:ImageBkgnd | EQUATE(4) !Image Background | | MenuBrushes:NormalBarBkgnd | EQUATE(5) !Normal Select Bar Background | | MenuBrushes:SelectedBarBkgnd | EQUATE(6) !Selected Bar Background | | MenuBrushes:GrayBrush | EQUATE(7) !Gray Brush | | MenuBrushes:FrameBrush | EQUATE(8) !Frame Brush | | //vertical// | An optional BYTE value that specifies the direction of the color gradient. When TRUE (1), the direction of the gradient color is vertical. Otherwise, if omitted or False, the gradient is horizontal. | The **SetVerticalGradient** method is used to designate that any colors applied to the target //MenuPart// will be in a vertical direction. **Implementation:** The method is not called anywhere within the **MenuStyleManager** Class. It is an optional method that can be used by the developer to detect and possibly change the menu appearance by specifying a vertical gradient at runtime. It should be called prior to the **SetColor** method. **Return Data Type:**     STRING **See Also:     [[getstartcolor get starting gradient color .htm|GetStartColor (get starting gradient color)]]**, **[[getendcolor get ending gradient color .htm|GetEndColor (get ending gradient color)]]**, **[[setcolor specify color for menu part .htm|SetColor ( specify color for menu part )]]**