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_OBJECT

Method 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 NameDescriptionVisability
CLASS_CONSTRUCTORConstructorPublic
CALL METHOD cl_gui_resources=>CLASS_CONSTRUCTOR...more details

GET_BACKGROUND_COLORReturns Value of Background Color; buffers std. resourcesPublic
CALL METHOD cl_gui_resources=>GET_BACKGROUND_COLOR...more details

GET_COLORReturns the Value of a GUI Color (General)Public
CALL METHOD cl_gui_resources=>GET_COLOR...more details

GET_COLORSReturns the Value of GUI Colors (General) in TablePublic
CALL METHOD cl_gui_resources=>GET_COLORS...more details

GET_DYNPRO_COLORSNot yet UsablePublic
CALL METHOD cl_gui_resources=>GET_DYNPRO_COLORS...more details

GET_FONTNAMEReturns the Name of the Font; buffers standard resourcesPublic
CALL METHOD cl_gui_resources=>GET_FONTNAME...more details

GET_FONTSIZEReturns Font Size in Points; Buffers Standard ResourcesPublic
CALL METHOD cl_gui_resources=>GET_FONTSIZE...more details

GET_FONT_INFOSReturns Name and Size of FontPublic
CALL METHOD cl_gui_resources=>GET_FONT_INFOS...more details

GET_FOREGROUND_COLORReturns Value of Foreground Color; buffers std. resourcesPublic
CALL METHOD cl_gui_resources=>GET_FOREGROUND_COLOR...more details

GET_LIST_COLORReturns Value of a List Color; buffers standard resourcesPublic
CALL METHOD cl_gui_resources=>GET_LIST_COLOR...more details

GET_LIST_COLORSReturns Table of all List Colors; buffers standard resourcesPublic
CALL METHOD cl_gui_resources=>GET_LIST_COLORS...more details

GET_STANDARD_RESOURCESBuffers Standard GUI Resources (List Colors, Font Info, ...)Private
CALL METHOD cl_gui_resources=>GET_STANDARD_RESOURCES...more details

GET_THEMENAMEGets name of theme; buffers standard resourcesPublic
CALL METHOD cl_gui_resources=>GET_THEMENAME...more details

ON_RESOURCES_CHANGEDFor 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.

NameLevelDescriptionInitial ValueTypeVisability
COLOR_FORM_AFFIRMATIVConstantAffirmative Color46LIKE
I
Public
COLOR_FORM_APPL_TOOLBARConstantApplication Toolbar Color41LIKE
I
Public
COLOR_FORM_BUTTONConstantPushbutton Color32LIKE
I
Public
COLOR_FORM_CHECKBOXConstantCheckbox Color34LIKE
I
Public
COLOR_FORM_DIALOGConstantDialog Box Color37LIKE
I
Public
COLOR_FORM_DLGTITLEConstantDialog Title Color45LIKE
I
Public
COLOR_FORM_DROPDOWN_ENTRYConstantDropdown List Entry Color52LIKE
I
Public
COLOR_FORM_ENTRYConstantEntry Field Color31LIKE
I
Public
COLOR_FORM_ENTRY_BOTTOM_BORDERConstantBottom Border Color56LIKE
I
Public
COLOR_FORM_ENTRY_READONLYConstantRead-Only Entry Field Color49LIKE
I
Public
COLOR_FORM_ERRORConstantError Color48LIKE
I
Public
COLOR_FORM_FRAMEConstantFrame Color35LIKE
I
Public
COLOR_FORM_FRAME_TITLEConstantFrame Title Color51LIKE
I
Public
COLOR_FORM_LABELConstantLabel Color30LIKE
I
Public
COLOR_FORM_MENUConstantMenu Color39LIKE
I
Public
COLOR_FORM_MENUITEMConstantMenu Item Color44LIKE
I
Public
COLOR_FORM_RADIOConstantRadiobutton Color33LIKE
I
Public
COLOR_FORM_SCROLLBARConstantScrollbar Color38LIKE
I
Public
COLOR_FORM_STATUSBARConstantStatus Bar Color43LIKE
I
Public
COLOR_FORM_SUBSCR_INNERBORDERConstantSubscreen Inner Border Color54LIKE
I
Public
COLOR_FORM_SUBSCR_OUTERBORDERConstantSubscreen Outer Border Color53LIKE
I
Public
COLOR_FORM_TABBUTTONConstantTab Button Color50LIKE
I
Public
COLOR_FORM_TABSTRIPConstantFrame Color55LIKE
I
Public
COLOR_FORM_TITLEConstantTitle Color40LIKE
I
Public
COLOR_FORM_TOOL_TBConstantToolbar Color42LIKE
I
Public
COLOR_FORM_WARNINGConstantWarning Color47LIKE
I
Public
COLOR_FORM_WINDOWConstantMain Window Color36LIKE
I
Public
COLOR_STYLE_DISABLEDConstantDisabled Style Color16LIKE
I
Public
COLOR_STYLE_INTENSIFIEDConstantIntensified Style Color2LIKE
I
Public
COLOR_STYLE_INVERSEConstantInverse Style Color4LIKE
I
Public
COLOR_STYLE_REGULARConstantRegular Style Color1LIKE
I
Public
COLOR_STYLE_SELECTEDConstantSelected Style Color8LIKE
I
Public
COL_BACKGROUND_LEVEL1ConstantColor ID: Background, Step 136LIKE
I
Public
COL_BACKGROUND_LEVEL2ConstantColor ID: Background, Step 235LIKE
I
Public
COL_TEXTAREAConstantColor ID: Background for Text Areas31LIKE
I
Public
COL_TREE_LEVEL1ConstantColor ID: Tree Level 160LIKE
I
Public
COL_TREE_LEVEL2ConstantColor ID: Tree Level 261LIKE
I
Public
COL_TREE_LEVEL3ConstantColor ID: Tree Level 362LIKE
I
Public
COL_TREE_LEVEL4ConstantColor ID: Tree Level 463LIKE
I
Public
GOT_STANDARD_RESOURCESStatic AttributeStandard GUI Resources Have Already Been BufferedLIKE
I
Private
LIST_COLOR_TABLEStatic AttributeBuffer for Current List ColorsLIKE
CNTL_COL_VALUE_TAB
Private
LIST_COL_BACKGROUNDConstantList Color Background0LIKE
I
Public
LIST_COL_GROUPConstantList Color Group7LIKE
I
Public
LIST_COL_HEADINGConstantList Color Heading1LIKE
I
Public
LIST_COL_KEYConstantList Color Key4LIKE
I
Public
LIST_COL_NEGATIVEConstantList Color Negative6LIKE
I
Public
LIST_COL_NORMALConstantList Color Normal2LIKE
I
Public
LIST_COL_POSITIVEConstantList Color Positive5LIKE
I
Public
LIST_COL_TOTALConstantList Color Total3LIKE
I
Public
LIST_INTENSIFIEDConstantIntensified Version of List Color1LIKE
I
Public
LIST_INVERSEConstantInverse Version of List Color2LIKE
I
Public
STD_BACKGROUND_COLORStatic AttributeCurrent Background Color; Context SpecificLIKE
I
Private
STD_BACKGROUND_COLOR_LEVEL1Static AttributeCurrent Screen Background Color, Level 1LIKE
I
Private
STD_BACKGROUND_COLOR_LEVEL2Static AttributeCurrent Screen Background Color, Level 2LIKE
I
Private
STD_FONTNAMEStatic AttributeCurrent Default Font NameLIKE
STRING
Private
STD_FONTSIZEStatic AttributeCurrent Default Font SizeLIKE
I
Private
STD_FOREGROUND_COLORStatic AttributeCurrent Default Foreground ColorLIKE
I
Private
STD_TEXTAREA_COLORStatic AttributeCurrent Text Area ColorLIKE
I
Private
STD_THEMENAMEStatic AttributeCurrent Theme NameLIKE
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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!