Unit AMBncTrBmp |
TAMBncTrBmp version 1.0 copyright © november 1997 by Alexander Meeder (ameeder@dds.nl) This is a really transparent bitmap component. You can choose one color of an original *.BMP file. This color is'nt just replace with another color (as with the canvasses BrushCopy-function) but the picture is real transparent. Extra properties: * Bounce: boolean is a method to let the picture bounce on the Parent-control (Form, panel etc.) * Direction: up_right, down_right, down_left, up_left; start moving in this direction, after that is gives the status in which direction the picture is moving at the moment * Interval: milisecond, interval between every move * MoveBy: between 1 and 100 pixels to move the picture Events: * OnBounced: every time the picture hits the border of its parent (Form, panel etc.) you can trigger this event and one of its parameters is the new direction it moves * OnMoved: every time the picture is moved you can trigger this event This version is for Delphi 1.x and Delphi 2.x and Delphi 3.x
Classes |
Functions |
Register -
Types |
Constants |
Variables |
Functions |
Types |
TBounced = procedure (Sender: TObject; Direction: TDirections) of object
TDirections = (up_right, down_right, down_left, up_left);
TMoveBy = 1 .. 100
Constants |
Variables |