newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
Symbian C++
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
rbrunner
54
eric
54
Andreas
44
sandeepmhptr
41
alh
32
more
Feeds
More feeds...
Displaying Tint on screen
Login
to reply to this topic.
Fri, 2006-01-06 12:18
yasir5
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.
Login
or
register
to post in forums
Fri, 2006-01-06 12:22
r55
Joined: 2005-07-06
Forum posts: 53
Re: Displaying Tint on screen
copy TInt into Tbuf using AppendNum.
 
Fri, 2006-01-06 12:28
yasir5
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
r55
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
yasir5
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
yasir5
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.
Forum posts: 53
Forum posts: 9
Forum posts: 53
gc.UseFont(fontUsed);
gc.SetPenColor(KRgbBlack);
TPoint pos(50,50);
_LIT(KExampleText,"blacktext");
gc.DrawText(KExampleText,pos);
Forum posts: 9
something like
TInt a = 500;
// something here that converts it into displayable TDes or anything else.
//and then
gc.DrawText();
Thanks
Forum posts: 9
TInt a = 507;
TBuf<20> decode;
_LIT(char_display, "%c");
decode.Num(a);
gc.UseFont( iCoeEnv->NormalFont() );
gc.DrawText( decode, TPoint( 50,100 ) );
Cheers