×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Jakarta, Indonesia
    Posts
    164

    Left softkey on top (landscape mode)

    Hi all, I've tried below code as mention on http://wiki.forum.nokia.com/index.ph..._in_custom_UIs to check is the left softkeys is on top or bottom when the screen mode is landscape.

    Code:
    TBool CBottomBar::IsLeftSoftkeysOnTop() const
    	{
    	CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
    	MEikButtonGroup* buttonGroup = cba->ButtonGroup();
    	TInt leftId=buttonGroup->CommandId(0);
    	TInt rightId=buttonGroup->CommandId(2);
    	CCoeControl* left = cba->ControlOrNull(leftId);
    	CCoeControl* right = cba->ControlOrNull(rightId);
    	
    	if(left && right)
    		{
    		if(left->Position().iY < right->Position().iY)
    			{
    			return ETrue;
    			}
    		}
    	return EFalse;
    	}
    But the return value is always EFalse. I have debug above code and found that below line :

    Code:
    	//..
    	if(left->Position().iY < right->Position().iY)
    	//..
    That left->Position().iY and right->Position().iY is always have the same value == 0.

    Have someone tried this already and get success? What's wrong with my code?

    FYI, I'm using S60 3rd FP1 SDK.

    Regards,




    Herwin

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Left softkey on top (landscape mode)

    Dunno really, when i made that code, I used 3rd ed MR SDK, and it worked just fine with my E90.

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Jakarta, Indonesia
    Posts
    164

    Re: Left softkey on top (landscape mode)

    This is a rectangle for the left and the right softkey I got from the code :

    Portrait :
    ----------
    S60 Emu (240x320)
    Left : 2 3 117 24
    Right : 124 3 239 24

    E70 (352x416)
    Left : 3 4 171 36
    Right : 182 4 350 36

    Landscape :
    -----------
    S60 Emu (320x240)
    Left : 216 0 320 240
    Right : 216 0 320 240

    E70 (416x352)
    Left : 281 0 416 352
    Right : 281 0 416 352

    S60 Emu (800x352)
    Left : 541 0 800 352
    Left : 541 0 800 352

    It looks like when the screen mode is portrait, the rectangle is correct but when the screen mode is landscape, left and right softkey has the same rectangle on my code.
    Any suggestion? I don't have MR SDK with me now, I only have 3rd ed FP1, maybe it works only on the MR SDK?

    Regards,



    Herwin

  4. #4
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Jakarta, Indonesia
    Posts
    164

    Re: Left softkey on top (landscape mode)

    Solved, I've tried the code with the MR SDK and it works fine.

    Regards,



    Herwin

Similar Threads

  1. Softkeys in landscape mode
    By ronald29 in forum Symbian User Interface
    Replies: 8
    Last Post: 2009-03-22, 13:33
  2. Cba issue in Landscape Mode
    By bharatuppal in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-11-13, 15:03
  3. drawRGB problem in landscape mode in S60 3rd edition FP1 emulator
    By retset in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-11-06, 10:39
  4. skinning in landscape mode.
    By ravinder007 in forum Symbian
    Replies: 0
    Last Post: 2007-01-24, 11:01
  5. Skinning in landscape mode.
    By ravinder007 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-01-11, 10:24

Posting Permissions

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