| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > MenuStyleManager Class > MenuStyleManager Methods >====== SetFlatMode ( set menu flat mode) ====== | [[setdefaultthemevalues set default menu colors and indicators .htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setfont set menu text font .htm|{{btn_next_n.gif|Next page}}]] | | || **SetFlatMode( **//mode //**)** {{blk2blue.jpg|blk2blue.jpg}} | //mode// | A BYTE value that sets the menu flat mode. A value of TRUE (1) turns flat mode on, and a value of FALSE (0) turns it off. | The **SetFlatMode** method controls the flat mode appearance of a target menu. When flat mode is off (FALSE), the selection bar appears "raised" in the menu structure. Otherwise the appearance of the selection bar is "flat". **Implementation:** The method is usually called right after the **Init** method, and prior to setting menu colors. **Example:** | **  MenuStyleMgr.Init(?MenuBar)** | | ** ****MenuStyleMgr.SetFlatMode(False)** | | **  MenuStyleMgr.SetColor(MenuBrushes:ImageBkgnd,12632256,12632256)** | | **  MenuStyleMgr.SetColor(MenuBrushes:SelectedBkgnd,12632256,12632256,False)** | | **  MenuStyleMgr.SetColor(MenuBrushes:SelectedBarBkgnd,12632256,12632256,True)** | | **  MenuStyleMgr.SetColor(MenuBrushes:HotBkgnd,12632256,12632256,True)** | | **  MenuStyleMgr.SetColor(MenuBrushes:FrameBrush,8421504, 8421504,True)** | | **  AppFrame{PROP:Text} = 'Visual Styles Demo - Window2K Menu Style Active'** | | **  DISPLAY()** | **See Also:     [[getflatmode get menu flat mode .htm|GetFlatMode( get menu flat mode )]]**