Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User pranay_preet's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    184
    Hello Friends,

    I m trying to display the Digital clock in Symbian. I m using following code snippet.
    I am getting WSERV6 Panic on device, But On Emulator It Works fine without any panic.
    I m unable to find the solution.

    Please guide...

    Code:
    CEikonEnv* eikonEnv=CEikonEnv::Static();
    	rwss = eikonEnv->WsSession();
    	RAnimDll clockAnimDll(rwss); 
    	TInt err =  clockAnimDll.Load(_L("CLOCKA.DLL"));
    
    	if(err == KErrNone )
    	{
    	 RDigitalClock* bigClock = new RDigitalClock(clockAnimDll, (RWindowBase)Window()); 
    	
    	TMargins margin;
    	margin.iLeft=0;
    	margin.iTop = 0;
    	margin.iRight=0;
    	margin.iBottom=0;
    	
    	STimeDeviceShadow tds;
    	tds.iColor = KRgbGray;
    	tds.iIsOn = EFalse;
    	tds.iOffset = TPoint(1,1);
    	
    	bigClock->ConstructL(User::UTCOffset(),
    				     TPoint(8,0),
    				     TSize(aRect.Width(),30),  
    				     margin,
    				     tds,
    				     TRgb::KRgbWhite,
    				     1);
    													
             TFontSpec MyFontSpec(_L("Arial"), 90);
             MyFontSpec.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
             CFbsFont *font = iCoeEnv->CreateScreenFontL(MyFontSpec);
    	
             _LIT(timebuffer,"%D%M%Y%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S%:3%+B");
    
    	TBuf<252> timeFormat;
    	timeFormat.Copy(timebuffer);
    	
    	TDigitalDisplayTextSection* textSection =new(ELeave) TDigitalDisplayTextSection(
    		font->Handle(),
    		TRgb::KRgbBlack,
    		EDigitalDisplayHorizontalTextAlignmentLeft, 
    		EDigitalDisplayVerticalTextAlignmentCenterExclDescent,
    		0, 0,
    		timeFormat);
    			
    	if(textSection != NULL)
    	{
    		bigClock->AddTextSectionL(*textSection);
    	}
    
    	bigClock->SetVisible(ETrue); 
    	bigClock->Draw();
    
    	}
    Thanks & Regards,
    --PRANAY--

  2. #2
    Registered User pranay_preet's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    184
    Hello Friends,

    I m waiting for reply.....
    Is anybody having any Idea Regarding this..

    Please Guide.

    Thanx.
    Thanks & Regards,
    --PRANAY--

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You can check if the open source Symbian code still has+uses this API, and how. http://developer.symbian.org, and search for it (like RDigitalClock) in the source. If you find folders like tsrc, tinc and similar, there are test codes which can be interesting.

Similar Threads

  1. digital clock / carbide
    By mlegsss in forum Themes/Carbide.ui
    Replies: 0
    Last Post: 2007-09-18, 22:18
  2. Help with new digital clock
    By Mellie75rox in forum Themes/Carbide.ui
    Replies: 0
    Last Post: 2007-07-01, 10:59
  3. help ,with digital clock
    By mayisme in forum Themes/Carbide.ui
    Replies: 0
    Last Post: 2007-05-15, 03:10
  4. Digital clock
    By deepakskole2006 in forum Mobile Java General
    Replies: 4
    Last Post: 2006-07-19, 16:05
  5. about analog and digital clock
    By kmsoomro in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-05-12, 09:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved