Displaying Tint on screen

Login to reply to this topic.
Fri, 2006-01-06 12:18
Joined: 2006-01-06
Forum posts: 9
Hi guys I am reading in a file into my program but something is going wrong, It would help me a great deal if someobody can tell me how to display TInt on screen.

Thanks in advance
cheers.

Fri, 2006-01-06 12:22
Joined: 2005-07-06
Forum posts: 53
Re: Displaying Tint on screen
copy TInt into Tbuf  using AppendNum.
Fri, 2006-01-06 12:28
Joined: 2006-01-06
Forum posts: 9
Re: Displaying Tint on screen
thanks r55, I want to do this ina  gui app, can you write some code that does this plzz.

Fri, 2006-01-06 12:34
Joined: 2005-07-06
Forum posts: 53
Re: Displaying Tint on screen
const CFont* fontUsed = iEikonEnv->TitleFont();
gc.UseFont(fontUsed);

gc.SetPenColor(KRgbBlack);

TPoint pos(50,50);
_LIT(KExampleText,"blacktext");
gc.DrawText(KExampleText,pos);
Fri, 2006-01-06 12:37
Joined: 2006-01-06
Forum posts: 9
Re: Displaying Tint on screen
hi r55 can you kindly display a TInt on the screen.
something like

TInt a = 500;

// something here that converts it into displayable TDes or anything else.

//and then

gc.DrawText();

Thanks
Fri, 2006-01-06 12:47
Joined: 2006-01-06
Forum posts: 9
Re: Displaying Tint on screen
thanks guys I have managed to figure it out. Its something like this

  TInt a = 507;
TBuf<20> decode;
_LIT(char_display, "%c");
decode.Num(a);
gc.UseFont( iCoeEnv->NormalFont() );
gc.DrawText( decode, TPoint( 50,100 ) );

Cheers
  • Login to reply to this topic.