Forelayer, please explain

enonod

Well-Known Member
Licensed User
Can somebody please educate me on the Forelayer to a form. I have never come across this in other languages and the only thing that rings bells is the Canvas in Delphi.

The help file on this subject is a little curt.
Is there only one Forelayer?
Does that mean there are two layers, Form and Forelayer?
Can they be switched between? At speed?
Can it be sent to back etc.
If I can draw on the Form why have a Forelayer?
Why was it introduced?

Anything else you can tell me about it :)

Finally, thank you.
 

Erel

Administrator
Staff member
Licensed User
There is the default layer which you can call the backlayer and the forelayer (only one).
The forelayer allows you to easily draw moving objects without redrawing the background.

You can't switch the layers.
Here is an example that uses the forelayer:
http://www.basic4ppc.com/files/BouncingSmiley.zip

The forelayer was introduced in version 3.00 and libraries where not supported at that time.
It is now possible to use ImageLib (and other image libraries) to do such things.
However the forelayer is still useful as it is very simple to use.
 

enonod

Well-Known Member
Licensed User
Thank you Erel
 
Top