Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Colors and Fonts : Assigning colors and fonts to ActiveX Automation objects and ActiveX controls
 

Assigning colors and fonts to ActiveX Automation objects and ActiveX controls

Properties associated with ActiveX Automation objects and ActiveX controls allow you to define unique characteristics, such as color and font, for each object. For example, to set colors for an ActiveX control, you need to set one or more of the color properties of the control to some RGB value. There are three ways to obtain an RGB value. You can use the RGB–VALUE function, use the COLOR-TABLE:GET-RGB-VALUE( ) method, or you can get the value from some color property of an ActiveX control or an ActiveXAutomation object. For fonts, an ActiveX Automation Server or ActiveX control generally provide a Font object that allows you to specify font properties.
For further information about assigning colors and fonts to ActiveX controls and ActiveX Automation objects, see ActiveXAutomation Support and ActiveXControl Support.