×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    change phone orentation , icon hide

    Hi

    I am drawing icon at home screen using RWindow nd CWindwGraphics classses, all things going gud(able to draw icon at home screen ), but when we change phone orentation , icon hide and not shown on screen.


    please suggest me that how fix the orentaion in my application:

    Actually i m creating a classes derived from CActive.

    Regards,

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: change phone orentation , icon hide

    Have you already handled the HandleResourceChangeL() in the container, which is called up when orientation changes.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: change phone orentation , icon hide

    yes i am getting event in HandleResourceChangeL() , but icon does not visible .

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: change phone orentation , icon hide

    Quote Originally Posted by soni_neeraj View Post
    yes i am getting event in HandleResourceChangeL() , but icon does not visible .
    Do you actually re-position the icon when the event comes?

    Does it re-appear when the orientation changes back?

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: change phone orentation , icon hide

    Hi Wizard,

    Yes i am repositioning the icon when event comes in HandleResourceChangeL() Function.
    No Icon does not reappear when orientation changes back.

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: change phone orentation , icon hide

    Can you debug the code to actually see at what coordinates does it gets drawn when orientation changes.Plus you might want to paste some code here as what happens in the class.

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

    Re: change phone orentation , icon hide

    Have you checked that you do add it to coordinates which are still visible in the screen ?

    Also you might also want to add code to re-position it on top of the window z-order.

  8. #8
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: change phone orentation , icon hide

    Hi Thanks for reply , problem at my end: actually i was fixing orentation as application started.

    Now i check the orientaion, now it working.

    Thanks to all of you for quick and valuable reply.

Similar Threads

  1. Replies: 1
    Last Post: 2011-08-26, 10:50
  2. Hide WRT Icon
    By amitku in forum Symbian
    Replies: 1
    Last Post: 2010-04-19, 12:06
  3. Can app get supported orentation of the device?
    By daveice in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-08-28, 10:31
  4. Replies: 0
    Last Post: 2004-12-16, 15: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
  •