IBM Support

Why can't one apply the defined themes to some of the UI components (such as buttons) in the Rich Client Platform (RCP)?

Question & Answer


Question

Why can't one apply the defined themes to some of the UI components (such as buttons) in the Rich Client Platform (RCP)? *|* -28C2FA99D8C3F5348525791700454153- *|*

Answer

Technote (FAQ)


Question

Why can't one apply the defined themes to some of the UI components (such as buttons) in the Rich Client Platform (RCP)?

Answer

Sterling uses Eclipse Standard Widget Toolkit (SWT) classes to build the UI components in RCP. If an Eclipse class has a restriction on certain platforms then that reflects in the controls defined by the Sterling UI in the RCP screens. The RCP Javadocs will speak about such restrictions/limitations.
For example Eclipse's org.eclipse.swt.widgets.Control.setBackground () method has a restriction and the color (which this method tries to set the Background to) is overridden by the platform (Windows UNIX etc). The RCP Javadocs mention this. Refer to the snippet below from the Eclipse Javadocs.
Snippet from eclipse java docs:
org.eclipse.swt.widgets.Control.setBackground
public void setBackground (Color color)
??????? sets the receiver's background color to the color specified by the argument or to the default system color for the control if the argument is null.?
Note: This operation is a hint and the platform can override it. For example on Windows one cannot change the background of a Button.

Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceSterling Selling and Fulfillment SuiteAdapters

Historical Number

FAQ3797

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10765693