Products Downloads


French version


 

In most Adelia graphical objects (apart from objects providing a color palette as graphics), the colors are coded in the form of a NUM_BIN_4 integer value in BGR format (historical code inherited from the Windows version).


For example, the _TXT_COL_RED constant corresponds to the value 0x000000FF or &RGB(255;0;0).


For Adelia Cloud only, Adelia Studio 14 PTF08 adds support for alpha transparency (ABGR format) as well as predefined functions allowing colors to be easily generated (&RGB and &RGBA).


The alpha channel of the &RGBA function indicates the opacity of the color, from 0 (transparent) to 255 (opaque).



E.g. transparent entry fields and semi-transparent text.



However, the following limitations must be taken into account, particularly if you are using an external tool to calculate the colors:

  • To maintain backward compatibility, the alpha channel is inverted in the produced value. e.g. &RGBA(127,127,127,0) produces the value 0xFF7F7F7F - rather than 0x007F7F7F.
  • The Visual Adelia objects reserve certain color values:
    • The value 0x0F000000 (251658240) is reserved in most objects to designate the default system color (inherited from the theme).
    • In the graphical list, colors 0x2F000000 (788529152 - system color inherited from the Windows theme), and 0xFFFFFFFF (-1) are also reserved.
  • Versions of Windows and Java in desktop mode do not support transparency. The Windows version displays either a similar opaque color or black if an RGBA color is assigned to a graphical object.

↑ Top of page


  • Aucune étiquette