Ancestor |
datawindow
|
Library |
gradient.pbl
|
Description |
Create a simple gradient.
|
Usage |
Place this object on the window you want to
have the gradient, resize to the size of the window,
call the gradient method. If your object can be resized
then you should resize this control and call the
resize method.
|
Model |
| c_gradient |
Private:
Constant String cis_DatawindowDef = 'datawindow(units=0 timer_interval=0 color=0 processing=0 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 97 print.margin.bottom = 97 print.paper.source = 0 print.paper.size = 0 print.prompt=no ) header(height=1 color="536870912" ) summary(height=1 color="0" ) footer(height=1 color="0" ) detail(height=5 color="0" ) table(column=(type=char(10) updatewhereclause=yes name=dummy dbname="dummy" ) )'
Protected:
Integer ii_Red, ii_Green, ii_Blue
nc_gradient inc_gradient |
integer
gradient
(integer ai_red, integer ai_green, integer ai_blue)
integer
initialize
()
integer
repaint
()
|
|
Functions |
gradient
|
| Description |
Set the gradient Values and RePaints the Control
to the current size with the new gradient colours.
|
| Return |
integer
1, gradient set ok
-1, Gradient was not good!
|
| Access |
public
|
| Arguments |
| Argument |
DataType |
Description |
| ai_red |
integer |
Red value in 0 - 255 range
|
| ai_green |
integer |
Green value in 0 - 255 range
|
| ai_blue |
integer |
Blue value in 0 - 255 range |
|
| Usage |
c_1.Gradient( 255, 255, 0 )
|
initialize
|
| Description |
Initialize the Object Ready for use. This function
is called from the constructor.
|
| Return |
integer
1, Initialized ok
-1, Initialize failed
|
| Access |
private
|
| Arguments |
(none)
|
| Usage |
(none)
|
repaint
|
| Description |
RePaint The Control to the current size with the
current gradient settings.
|
| Return |
integer
1, RePaint was sucessfull
-1, RePaint failed
|
| Access |
public
|
| Arguments |
(none)
|
| Usage |
c_1.RePaint()
|
|
Events |
|
constructor
|
| Description |
Call the initialize function.
|
|
destructor
|
| Description |
Destroy the gradient service
|
|
|
|
See Also |
nc_gradient
|