×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Control faded on showing menu pane

    Hi FN


    When a menu pane is showed to the user by pressing the soft key button, all control behind it will be kind of faded right? And if you hide the menu pane the controls on the container will be redrawn (not faded anymore).

    But my control is not redrawn after the menu pane is hidden. So it keeps the whitish color on the control.

    Why is this happened? Anyone know the solution?

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Control faded on showing menu pane

    Hi,

    If I am correct you have a container derived of CCoeControl (which calls CreateWindowL) and all your controls in the container ( which calls SetContainerWindowL). Now implement the following api sth like

    Code:
    TInt CMyCalendarContainer::CountComponentControls() const
        {
        return 1; // return nbr of controls inside this container
        }
    
    // ---------------------------------------------------------
    // CMyCalendarContainer::ComponentControl(TInt aIndex) const
    // ---------------------------------------------------------
    //
    CCoeControl* CMyCalendarContainer::ComponentControl(TInt aIndex) const
        {
        switch ( aIndex )
            {
            case 0:
                return iGrid;
            default:
                return NULL;
            }
        }
    In my case iGrid is the only control i have in my container. Do accordingly in your container your controls will be redrawn
    Regards,
    Sriky

  3. #3
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Re: Control faded on showing menu pane

    Sorry sriky27 your answer didn't answered my problem.

    The control is showed on the container. Everything is fine. Until the container is faded, because of showing the menu pane.

    That is all the problem. If I hadn't count the control correctly or return it on ComponentControl(TInt aIndex) it wouldn't be showed at all right? :)

    Anyway thanks for answering.

    Anyone else know why?

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Control faded on showing menu pane

    Could you tell me the structure of your container and the controls used. what api's are called in the constructl of your container like createwindowl or Setcontainerwindowl. It would clear up the fog surrounding your question as it is a bit foggy.
    Regards,
    Sriky

  5. #5
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Re: Control faded on showing menu pane

    Hi sriky


    I think I need to draw the background using CAknsBasicBackgroundControlContext myself.

    Thanks anyway.

  6. #6
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Control faded on showing menu pane

    Hi,

    Thatzz correct how would you get the event. May you should try redrawing in the FocusGained event.
    Regards,
    Sriky

Similar Threads

  1. How to get cascade menu pane?
    By JohnsonZ in forum Symbian
    Replies: 16
    Last Post: 2007-09-28, 10:19
  2. Parent ID for a cascade menu pane
    By iulian_moldovan in forum Symbian
    Replies: 1
    Last Post: 2007-01-05, 04:42
  3. Replies: 3
    Last Post: 2006-11-23, 17:24
  4. changing menu pane without using Dyn...
    By saurbh_g in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-11-24, 05:10
  5. Replies: 1
    Last Post: 2004-11-25, 03: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
  •