setimage_apply_image_to_menu_part_.htm
Navigation: Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== SetImage ( apply image to menu part ) ====== | |
SetImage ( MenuPart , ImageName )
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 |
ImageName | A string constant or variable containing the name of the file to display. |
The SetImage method is used to apply a valid image to a target MenuPart, This method is generally used to replace any color gradient assignment with a more complex color image of watermark.
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 an image for a target menu area at runtime.
setimage_apply_image_to_menu_part_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1