×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    86

    Question how to solve out change font style when you are reading

    Hi all,
    I have a question:how to solve out change font style when you are reading?
    Reading uses CEikRichTextEditor class, change font style need to start another thread?
    Oh, I want to add a progress bar to show changing font style, let users waiting.
    how to solve out that?

    thank you
    where there is a will, there is a way.

  2. #2
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    86

    Question Re: how to solve out change font style when you are reading

    no one can help me? or nobody know my meaning?
    I'm using CEikRichTextEditor to display plain text. It's a long synchronous procedure to change font color while much text in editor. Hence I want to add a progress bar when the editor is changing font color.
    The question is how can I display the progress bar while changing color. Can I use AO or RThread to do that ?
    who can help me?
    where there is a will, there is a way.

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    86

    Smile Re: how to solve out change font style when you are reading

    Code:
    RThread iNoteThread;
    static TInt ThreadFunc(TAny* aNoteName)
    	{
    	CTrapCleanup* c=CTrapCleanup::New();
    	CActiveScheduler* activeScheduler = new CActiveScheduler();
    	CActiveScheduler::Install(activeScheduler);
    	
    	TInt nDialogId = 0;
    	
    	CAknGlobalNote *pDialog = NULL;
    	TRAPD(err, pDialog = CAknGlobalNote::NewL());
    	pDialog->SetSoftkeys(R_AVKON_SOFTKEYS_EMPTY);
    	const TDesC& name = *(static_cast<const TDesC*>(aNoteName));
    
    	TRAP(err, (nDialogId = pDialog->ShowNoteL(EAknGlobalWaitNote, name)));
    	User::WaitForAnyRequest();
    	TRAP(err, pDialog->CancelNoteL(nDialogId));
    	
    	delete pDialog;
    	delete c;
    	}
    
    void CMoboGlobalNoteThread::StartGlobalNoteThread(const TDesC& aText)
    	{
        iNoteThread.Create(_L("wait note"),&ThreadFunc,KStackSize,KInitHeapSize,KHeapSize,(TAny*)&aText);
        iNoteThread.Resume();
    	}
    
    void CMoboGlobalNoteThread::StopGlobalNoteThread()
    	{
    	iNoteThread.RequestSignal();
    	iNoteThread.Close();
    	}
    how about this way?
    where there is a will, there is a way.

Similar Threads

  1. How to change the system font?
    By xhsoldier in forum Symbian C++
    Replies: 3
    Last Post: 2009-03-06, 01:30
  2. Change font style to Bold
    By nital_shah in forum Symbian C++
    Replies: 2
    Last Post: 2009-02-06, 07:07
  3. Replies: 1
    Last Post: 2007-10-30, 08:51
  4. Change the default font for 7650
    By edmundkkchan in forum Symbian C++
    Replies: 1
    Last Post: 2002-09-24, 07:02
  5. how do you change the size of the font?
    By Nokia_Archive in forum Symbian C++
    Replies: 1
    Last Post: 2002-05-31, 14:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •