guides:programming:programmers_reference_manual:alphacolor_method_system

ALPHACOLOR method (System)

This method calculates a new color value when a transparency value is applied to it.

ColorAlpha = Exec_Method( "SYSTEM", "ALPHACOLOR", Color, AlphaValue )

NameRequiredDescription
ColorYesColor to adjust.
AlphaValueYesPercentage transparency to apply (value from 0 to 100).

Contains the adjusted color or "-1" if the color cannot be adjusted.

N/A

 
//// Get the system BTNFACE color and create a 20% “transparent” version of it.//
  
  Color      = Get_Property( @Window, "VISUALSTYLECOLOR", SYSCOLOR_BTNFACE$ )
  AlphaColor = Exec_Method( "SYSTEM", "ALPHACOLOR", Color, 20 )
 
 
 

DARKENCOLOR method, LIGHTENCOLOR method, MIXCOLORS method.

  • guides/programming/programmers_reference_manual/alphacolor_method_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1