Re: create CText and pixmap

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Wolf,

I tried your suggestion but I couldn't get it working. No matter where I
put it in the code. Do you have / know a bigger example?

Thanks,

Jasper.





Wolf
<wolfritz@KING       To:     EUforum <EUforum at topica.com>
.IGS.NET>            cc:
Subject:     Re: create  CText and
                                         pixmap
05-11-2001
18:35
Please respond
to EUforum







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

... don't use ... create(CText......

Partial example: To write text in a pixmap:

setTextColor(your_pixmap_id,Black)
setFont(your_pixmap_id,"MS Sans Serif",18,or_all({Bold,Italic}))
setPosition(your_pixmap_id,10,10)
wPuts(your_pixmap_id,"Some Text in a PixMap")

... basically, you are writing text into your pixmap, after loading your
BMP
into the pixmap, and *before* displaying it.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu