nc_gradient


Ancestor

nonvisualobject

Library

gradient.pbl

Description

Create a simple gradient in a datawindow.

Usage

Call this objects to create a gradient in a given datawindow.

Model

nc_gradient
Private:
Integer cii_Segments = 64
integer gradient (datawindow adw_dw, integer ai_width, string as_band, integer ai_red, integer ai_green, integer ai_blue)

Functions


gradient

Description Create a gradient in the background of the specified datawindow using the specified colours. This function can be called multiple times as it deletes the old gradient before creating the new one, you might want to set redraw off before making the call.

Return integer
  • 1, Gradient created sucessfully
  • -1, Gradient failed

  • Access public

    Arguments
    Argument DataType Description
    adw_dw datawindow Datawindow to create gradient
    ai_width integer Width for the gradient
    as_band string DW Band to create the gradient in
    ai_red integer Red Value in range 0 - 255
    ai_green integer Green Value in range 0 - 255
    ai_blue integer Blue Value in range 0 - 255

    Usage lnc_Gradient.Gradient( dw_1, 255, 0 ,0 )

    Events

    (none)

    See Also

    (none)