Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 16:26, 23 June 2008.

How to create Text View

From Forum Nokia Wiki

#include <FRMTLAY.H>
#include <FRMTVIEW.H>
#include <TXTRICH.H>
#include <GDI.H>
 
Link against: etext.lib 
Link Againts : form.lib


// Rectangle in which to view text //
TRect iViewRectangle; 
 
// Text Layout //
CTextLayout* iLayout; 
 
// Text View //
CTextView* iTextView; 
 
// Rich Text Document
CRichText* iRichText; 
 
// Prerequisites for view - viewing rectangle
iViewRectangle=Rect(); // Construct view rectangle
 
 
// Construct layout, giving width of view rectangle 
iLayout=CTextLayout::NewL(iRichText,iViewRectangle.Width()); 
 
 
// Get graphics context
CWindowGc& gc=SystemGc(); 
 
 
CBitmapDevice* device=(CBitmapDevice*) (gc.Device()); 
 
// Text view
iTextView=CTextView::NewL(iLayout, iViewRectangle, device, device, &Window(), 
 &iCoeEnv->RootWin(),&iCoeEnv->WsSession()  );
Related Discussions
Thread Thread Starter Forum Replies Last Post
Application lose focus after it is launched by app-Installer (Auto-Launch Problem) ashfaq.ghori General Symbian C++ 12 2008-02-12 09:18
application crash and database related issue mayankkedia General Symbian C++ 2 2004-08-24 05:00
Question about displaying text? Casper1314 Symbian User Interface 1 2007-04-24 09:49
Error ListBox from FileText fagnerpb General Symbian C++ 5 2008-03-09 14:46
rich text editor problem (switcing from text to numbers) noam segal Symbian User Interface 1 2007-10-31 14:01
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX