docs

Home All functions Categories

vuTransparentColorKey(hWindow, Red, Green, Blue)

vuTransparentColorKey(LONG,LONG,LONG,LONG), Signed

Description

Makes a specific color in a window transparent, given its handle and the RGB color components. This allows parts of the window to appear see-through where the chosen color is displayed.

Parameters

Parameter Data Type Description
hWindow LONG Handle of the target window.
Red LONG Red component of the transparent color (0255).
Green LONG Green component of the transparent color (0255).
Blue LONG Blue component of the transparent color (0255).

Returns

A LONG value:

Example

hWindow = WINDOW{PROP:Handle}  ! Get the handle of the current window
Red     = 255
Green   = 255
Blue    = 255

IF vuTransparentColorKey(hWindow, Red, Green, Blue)
  MESSAGE('White areas of the window are now transparent.')
ELSE
  MESSAGE('Failed to apply color key transparency.')
END

Notes

Home All functions Categories