Read-only archive of the All About Symbian forum (2001–2013) · About this archive

DrawText pb

1 replies · 1,288 views · Started 27 September 2004

Hi,
I'm trying to use the DrawText(const TDesC& aText,const TPoint& aPosition) function but I don't know how to use it. Actually I have a problem with the first parameter. How can I create a new TDesc ?? Can anyone give me an example ?
cheers

graphicsxp wrote:Hi,
I'm trying to use the DrawText(const TDesC& aText,const TPoint& aPosition) function but I don't know how to use it. Actually I have a problem with the first parameter. How can I create a new TDesc ?? Can anyone give me an example ?
cheers

Hi,
You just need to create a descriptor

_LIT(KMessage,"My Message"😉;
Then use KMessage as the TDesc &....
DrawText(KMessage, aPoint);

I think...