xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_Shadow()

Displays a shadow around a rectangular area on the screen.

Syntax

HB_Shadow( <nTop>, <nLeft>, <nBottom>, <nRight>, ;
          [<nColorAttr>] ) --> NIL

Arguments

<nTop> and <nLeft>
Numeric values indicating the screen coordinates for the upper left corner of the shadow.
<nBottom> and <nRight>
Numeric values indicating the screen coordinates for the lower right corner of the shadow.
<nColorAttr>
This is an optional numeric color attribute in the range between 0 and 255 for drawing a shadow. The default attribute is 7, which corresponds to a color value of "W/N". Refer to ColorToN() for obtaining a numeric color attribute from a color string.

Return

The function HB_Shadow() displays a shadow around a rectangular area on the screen and returns always NIL.

Description

Info

See also:@...BOX, @...CLEAR, @...TO, HB_ClrArea(), Scroll(), SetColor()
Category: Screen functions , xHarbour extensions
Source:rtl\shadow.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example demonstrates how to display a shadow around a box.

   #include "Box.ch"

   PROCEDURE Main
      SET COLOR TO "W+/B"
      CLS

      DispBox( 10,10,20,50, B_DOUBLE + Space(1), "W+/R" )

      HB_Shadow( 10,10,20,50 )

      DispOut( "Shadowed box" )
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe