Skip to content

GetColor Method

Description

Retrieves the current color of the specified resource theme display element.

Syntax

Public Function GetColor( _
    ByVal [Section](#) As String, _
    ByVal [KeyName](#) As String _
) As ULong

Parameters

  • Section: Section the element is in. I.e. Ribbon, Window, Toolbar, etc.
  • KeyName: Name of the element in the section whose color you want to return. I.e. RibbonFace, RibbonText, RecentFileListBackground, etc.

Return Type

Integer representation of the color used for the specified element.

Remarks

Sample usage:

ResourceImages.GetColor("Window", "ButtonFace")
ResourceImages.GetColor("Ribbon", "RibbonText")

You can open any of the style DLLs as a resource to view the various INI files that are contained in them. Inside the items contained in brackets are the Sections and the items below the section are the KeyNames. Below is the Ribbon section and key names from the black 2010 theme. View the INI files for a complete list of sections and key names.

Ribbon

RibbonFace = 115 115 115  
RibbonInactiveFace = 158 158 158  
RibbonText = 226 226 226  
GroupSpacing = 0  
TabSelectedText = 0 0 0  
TabNormalText = 226 226 226  
TabHighlightText = 255 255 255  
GroupCaptionText = 36 36 36  
GroupClientText = 0 0 0  
ControlEditNormal = 198 198 198  
ControlEditSelected = 204 204 204  
MenuPopupText = 59 59 59  
MenuPopupSeparator = 199 200 201  
MenuPopupGripperShadow = 226 228 231  
ControlHighlightText = 30 57 91  
RecentFileListBackground = 233 234 238  
RecentFileListEdgeHighLight = 245 245 245  
RecentFileListEdgeShadow = 216 216 216  
MinimizedFrameEdgeHighLight = 78 78 78  
MinimizedFrameEdgeShadow = 78 78 78  
MenuPopupGripper = 255 255 255  
MenuPopupExpandedGripperLight = 255 255 255  
MenuPopupExpandedGripperDark = 255 255 255  
FileButtonText = 255 255 255  
FileButtonImageCount = 7  
BackstageMenuTextColor = 255 255 255  

See Also

ResourceImages Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.