SAP CL_GUI_RESOURCES OO Class - GUI Resources (Fonts, Colors, ...)
CL_GUI_RESOURCES is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_GUI_RESOURCES including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Inheritance
This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_GUI_RESOURCES is CL_GUI_OBJECTMethod list of CL_GUI_RESOURCES SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
Method Name | Description | Visability |
CLASS_CONSTRUCTOR | Constructor | Public |
CALL METHOD cl_gui_resources=>CLASS_CONSTRUCTOR...more details | ||
GET_BACKGROUND_COLOR | Returns Value of Background Color; buffers std. resources | Public |
CALL METHOD cl_gui_resources=>GET_BACKGROUND_COLOR...more details | ||
GET_COLOR | Returns the Value of a GUI Color (General) | Public |
CALL METHOD cl_gui_resources=>GET_COLOR...more details | ||
GET_COLORS | Returns the Value of GUI Colors (General) in Table | Public |
CALL METHOD cl_gui_resources=>GET_COLORS...more details | ||
GET_DYNPRO_COLORS | Not yet Usable | Public |
CALL METHOD cl_gui_resources=>GET_DYNPRO_COLORS...more details | ||
GET_FONTNAME | Returns the Name of the Font; buffers standard resources | Public |
CALL METHOD cl_gui_resources=>GET_FONTNAME...more details | ||
| ||
GET_FONTSIZE | Returns Font Size in Points; Buffers Standard Resources | Public |
CALL METHOD cl_gui_resources=>GET_FONTSIZE...more details | ||
GET_FONT_INFOS | Returns Name and Size of Font | Public |
CALL METHOD cl_gui_resources=>GET_FONT_INFOS...more details | ||
GET_FOREGROUND_COLOR | Returns Value of Foreground Color; buffers std. resources | Public |
CALL METHOD cl_gui_resources=>GET_FOREGROUND_COLOR...more details | ||
GET_LIST_COLOR | Returns Value of a List Color; buffers standard resources | Public |
CALL METHOD cl_gui_resources=>GET_LIST_COLOR...more details | ||
GET_LIST_COLORS | Returns Table of all List Colors; buffers standard resources | Public |
CALL METHOD cl_gui_resources=>GET_LIST_COLORS...more details | ||
GET_STANDARD_RESOURCES | Buffers Standard GUI Resources (List Colors, Font Info, ...) | Private |
CALL METHOD cl_gui_resources=>GET_STANDARD_RESOURCES...more details | ||
GET_THEMENAME | Gets name of theme; buffers standard resources | Public |
CALL METHOD cl_gui_resources=>GET_THEMENAME...more details | ||
ON_RESOURCES_CHANGED | For Changes to GUI Settings (Color, Font...) | Public |
CALL METHOD cl_gui_resources=>ON_RESOURCES_CHANGED...more details |
CL_GUI_RESOURCES attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
Name | Level | Description | Initial Value | Type | Visability |
COLOR_FORM_AFFIRMATIV | Constant | Affirmative Color | 46 | LIKE I | Public |
COLOR_FORM_APPL_TOOLBAR | Constant | Application Toolbar Color | 41 | LIKE I | Public |
COLOR_FORM_BUTTON | Constant | Pushbutton Color | 32 | LIKE I | Public |
COLOR_FORM_CHECKBOX | Constant | Checkbox Color | 34 | LIKE I | Public |
COLOR_FORM_DIALOG | Constant | Dialog Box Color | 37 | LIKE I | Public |
COLOR_FORM_DLGTITLE | Constant | Dialog Title Color | 45 | LIKE I | Public |
COLOR_FORM_DROPDOWN_ENTRY | Constant | Dropdown List Entry Color | 52 | LIKE I | Public |
COLOR_FORM_ENTRY | Constant | Entry Field Color | 31 | LIKE I | Public |
COLOR_FORM_ENTRY_BOTTOM_BORDER | Constant | Bottom Border Color | 56 | LIKE I | Public |
COLOR_FORM_ENTRY_READONLY | Constant | Read-Only Entry Field Color | 49 | LIKE I | Public |
COLOR_FORM_ERROR | Constant | Error Color | 48 | LIKE I | Public |
COLOR_FORM_FRAME | Constant | Frame Color | 35 | LIKE I | Public |
COLOR_FORM_FRAME_TITLE | Constant | Frame Title Color | 51 | LIKE I | Public |
COLOR_FORM_LABEL | Constant | Label Color | 30 | LIKE I | Public |
COLOR_FORM_MENU | Constant | Menu Color | 39 | LIKE I | Public |
COLOR_FORM_MENUITEM | Constant | Menu Item Color | 44 | LIKE I | Public |
COLOR_FORM_RADIO | Constant | Radiobutton Color | 33 | LIKE I | Public |
COLOR_FORM_SCROLLBAR | Constant | Scrollbar Color | 38 | LIKE I | Public |
COLOR_FORM_STATUSBAR | Constant | Status Bar Color | 43 | LIKE I | Public |
COLOR_FORM_SUBSCR_INNERBORDER | Constant | Subscreen Inner Border Color | 54 | LIKE I | Public |
COLOR_FORM_SUBSCR_OUTERBORDER | Constant | Subscreen Outer Border Color | 53 | LIKE I | Public |
COLOR_FORM_TABBUTTON | Constant | Tab Button Color | 50 | LIKE I | Public |
COLOR_FORM_TABSTRIP | Constant | Frame Color | 55 | LIKE I | Public |
COLOR_FORM_TITLE | Constant | Title Color | 40 | LIKE I | Public |
COLOR_FORM_TOOL_TB | Constant | Toolbar Color | 42 | LIKE I | Public |
COLOR_FORM_WARNING | Constant | Warning Color | 47 | LIKE I | Public |
COLOR_FORM_WINDOW | Constant | Main Window Color | 36 | LIKE I | Public |
COLOR_STYLE_DISABLED | Constant | Disabled Style Color | 16 | LIKE I | Public |
COLOR_STYLE_INTENSIFIED | Constant | Intensified Style Color | 2 | LIKE I | Public |
COLOR_STYLE_INVERSE | Constant | Inverse Style Color | 4 | LIKE I | Public |
COLOR_STYLE_REGULAR | Constant | Regular Style Color | 1 | LIKE I | Public |
COLOR_STYLE_SELECTED | Constant | Selected Style Color | 8 | LIKE I | Public |
COL_BACKGROUND_LEVEL1 | Constant | Color ID: Background, Step 1 | 36 | LIKE I | Public |
COL_BACKGROUND_LEVEL2 | Constant | Color ID: Background, Step 2 | 35 | LIKE I | Public |
COL_TEXTAREA | Constant | Color ID: Background for Text Areas | 31 | LIKE I | Public |
COL_TREE_LEVEL1 | Constant | Color ID: Tree Level 1 | 60 | LIKE I | Public |
COL_TREE_LEVEL2 | Constant | Color ID: Tree Level 2 | 61 | LIKE I | Public |
COL_TREE_LEVEL3 | Constant | Color ID: Tree Level 3 | 62 | LIKE I | Public |
COL_TREE_LEVEL4 | Constant | Color ID: Tree Level 4 | 63 | LIKE I | Public |
GOT_STANDARD_RESOURCES | Static Attribute | Standard GUI Resources Have Already Been Buffered | LIKE I | Private | |
LIST_COLOR_TABLE | Static Attribute | Buffer for Current List Colors | LIKE CNTL_COL_VALUE_TAB | Private | |
LIST_COL_BACKGROUND | Constant | List Color Background | 0 | LIKE I | Public |
LIST_COL_GROUP | Constant | List Color Group | 7 | LIKE I | Public |
LIST_COL_HEADING | Constant | List Color Heading | 1 | LIKE I | Public |
LIST_COL_KEY | Constant | List Color Key | 4 | LIKE I | Public |
LIST_COL_NEGATIVE | Constant | List Color Negative | 6 | LIKE I | Public |
LIST_COL_NORMAL | Constant | List Color Normal | 2 | LIKE I | Public |
LIST_COL_POSITIVE | Constant | List Color Positive | 5 | LIKE I | Public |
LIST_COL_TOTAL | Constant | List Color Total | 3 | LIKE I | Public |
LIST_INTENSIFIED | Constant | Intensified Version of List Color | 1 | LIKE I | Public |
LIST_INVERSE | Constant | Inverse Version of List Color | 2 | LIKE I | Public |
STD_BACKGROUND_COLOR | Static Attribute | Current Background Color; Context Specific | LIKE I | Private | |
STD_BACKGROUND_COLOR_LEVEL1 | Static Attribute | Current Screen Background Color, Level 1 | LIKE I | Private | |
STD_BACKGROUND_COLOR_LEVEL2 | Static Attribute | Current Screen Background Color, Level 2 | LIKE I | Private | |
STD_FONTNAME | Static Attribute | Current Default Font Name | LIKE STRING | Private | |
STD_FONTSIZE | Static Attribute | Current Default Font Size | LIKE I | Private | |
STD_FOREGROUND_COLOR | Static Attribute | Current Default Foreground Color | LIKE I | Private | |
STD_TEXTAREA_COLOR | Static Attribute | Current Text Area Color | LIKE I | Private | |
STD_THEMENAME | Static Attribute | Current Theme Name | LIKE STRING | Private |
Events of Class CL_GUI_RESOURCES
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... RESOURCES_CHANGED - Changes to GUI Settings (Colors, Font...)Links to Related Class(s)
CL_GUI_R...Full list of available SAP object classes
Search for further information about these or an SAP related objects