create CText and pixmap
- Posted by Jasper_Holshuijsen at dsw.nl Nov 05, 2001
- 313 views
Hi everyone, Retro: the bitmaps that were placed in a window disappeared when the window was resized. I solved this problem by using a pixmap. New problem: I can't use "create Ctext" to place text in a pixmap. When a draw a pixmap over text the text is not visible anymore. My solution was this: divide the screen in different areas. Use "create Ctext" for the areas where text is involved and bitBlt for the areas with bitmaps. For the "text areas" is use setBitmap and then I put the text over the bitmap. This works but has major drawback. It's slow. When I reopen a minimized window the bitBlt part is done immediately. The setBitmap follows shortly and the text a while after. I think because the last two are not imbedded in a procedure. Has anyone a better solution? Bye, Jasper.