Something like this will work Fabrice.
If you change the text color and copypixels ink value you can also get
interesting effects.
Hope this helps
Brad
---- watch for word wrapping-------
-- set a default text member to the text you want to grab the image
of
-- you may need to play with the .fontsize,leftIndent , and font
properties to get your desired effect
member("source text").text="SALUT!!"
temp=new(#bitmap)
-- get an image of your graphic you want to lay the text over
temp.image=member("button base").image.duplicate()
myrect=member("button base").rect
-- you can name it anything you want but this will give the text with an
extension of button
myname=member("source text").text&& "button"
temp.member.name=myname
member(myname).image.copyPixels(member("source text").image,myrect,
myrect,[#ink: 3])
temp=void
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Fabrice Closier
Sent: Thursday, 17 October 2002 3:05 PM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> image of a text member
In same line,
how do you manage to mixe 2 different casts together?
i mean a #bitmap member and a text member.
to obtain a new#bitmap cast member with text burned into it?
Fabrice
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]