N
Neville Lang
Hi all,
On a Pocket PC app, I have a TabControl with a number of TabPages. When a
user taps on one of the TabPages, I use Graphics to draw an image comprising
DrawLine, DrawEllipse and DrawString. I have found that each time you tap on
another TabPage and then come back the TabPage that has my image on it, the
OnPaint redraws it all again. While this is what should normally occur with
OnPaint, is there any way of saving that image in memory after it is drawn
and so on further OnPaints, instead of redrawing it again, the program just
shifts the saved copy back onto the surface?
In a related query, is there are way that I can create the above drawing in
the "background" before presenting it to the user on screen? At the moment,
the user can see each element being drawn due to slow graphics draws.
Regards,
Neville Lang
On a Pocket PC app, I have a TabControl with a number of TabPages. When a
user taps on one of the TabPages, I use Graphics to draw an image comprising
DrawLine, DrawEllipse and DrawString. I have found that each time you tap on
another TabPage and then come back the TabPage that has my image on it, the
OnPaint redraws it all again. While this is what should normally occur with
OnPaint, is there any way of saving that image in memory after it is drawn
and so on further OnPaints, instead of redrawing it again, the program just
shifts the saved copy back onto the surface?
In a related query, is there are way that I can create the above drawing in
the "background" before presenting it to the user on screen? At the moment,
the user can see each element being drawn due to slow graphics draws.
Regards,
Neville Lang