Forelayer, please explain

Discussion in 'Questions (Windows Mobile)' started by enonod, Jun 3, 2008.

  1. enonod

    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.
  2. Erel

    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:

    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.
  3. enonod

    enonod Well-Known Member Licensed User

    Thank you Erel
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice