docs

Home All DLL Functions Using the Template

CDDimWindowEx

Dim a parent window with a chosen overlay color.

Clarion declaration

CDDimWindowEx(LONG,LONG,LONG,LONG,LONG),SIGNED,PROC,PASCAL,RAW,NAME('CDDimWindowEx')

Parameters: Parent window handle; strength (0–255); red, green and blue (0–255 each).

Example

DimResult = CDDimWindowEx(0{PROP:Handle},90,0,120,255)

Pair a successful Dim with CDRestoreWindow. For automatic colors, use the global or procedure template settings.

For manual dim and restore calls, a positive result normally indicates an accepted state; 0 or a negative status should be checked before relying on the effect. The global template supplies the MAP and LIB linkage automatically.

See Manual Dimming, START Procedures, and Troubleshooting.

All DLL Functions Home