4D v16

TimePicker LCD SET COLOR

Home

 
4D v16
TimePicker LCD SET COLOR

TimePicker LCD SET COLOR 


 

TimePicker LCD SET COLOR ( objectName ; color {; colorG ; colorB} )  
Parameter Type   Description
objectName  Text in Name of subform object
color  Longint in Value of RGB color (4 bytes) or Value of red component (0..255) if the other parameters are passed
colorG  Longint in Value of green component (0..255)
colorB  Longint in Value of blue component (0..255)

The TimePicker LCD SET COLOR command sets the colors for the digits in the objectName subform object (digital clock only).

This command accepts two syntaxes:

  • If you only pass the color parameter, you must pass a 4-byte longint whose format (0x00RRGGBB) is described below (the bytes are numbered from 0 to 3, starting from right to left):
    ByteDescription
    3Must be zero for an absolute RGB color
    2Red component of color (0..255)
    1Green component of color (0..255)
    0Blue component of color (0..255)
  • You can also pass three parameters: color, colorG and colorB. In this case, each parameter must be a number between 0 and 255, representing a component of the RGB color.

Example  

Change the clock digits to red:

 TimePicker LCD SET COLOR("Subform1";0x00FF0000)
  // can also be written: TimePicker LCD SET COLOR ("Subform1";255;0;0)

 
PROPERTIES 

Product: 4D
Theme: TimePicker

 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Widgets ( 4D v16)