Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor lauyk001's Avatar
    Join Date
    Sep 2004
    Location
    Adelaide
    Posts
    73
    Hi everyone

    I am having trouble displaying a label in a floating window for the FEP. My Fep is based on the FEPEXAMPLE by Nokia. I have managed to get a blank floating window but it does not dispay the label that I have added in.

    Can anyone tell me what I am suppose to do to get the label to display. Below are snipper of my code. When I add iLabel->SetExtent in Sizechanged() it shows a whole blank screen and I can't even see the underneath application, Whereas after commenting that line it shows a floating window but no label is dispay on it.

    from Anh Tu


    void CEasybeeFepControl::ConstructL()
    {
    CreateWindowL();
    SetNonFocusing();
    RWindow& window = Window();
    window.SetOrdinalPosition(0, ECoeWinPriorityFep);
    TPoint fepControlPos(0, 0);
    window.SetExtent(fepControlPos, TSize(100, 90));
    window.SetNonFading(ETrue);

    //load the T9 resource in our own FEP.
    }

    void CEasybeeFepControl:raw(const TRect& aRect) const
    {
    CWindowGc& gc = SystemGc();
    gc.Clear(aRect);

    }

    void CEasybeeFepControl::SizeChanged()
    {
    iLabel->SetExtent(TPoint(0,0), iLabel->MinimumSize());
    }

  2. #2
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    How about CountComponentControls() and ComponentControl() ? Are they implemented in your CEasybeeFepControl ?

  3. #3
    try to add
    SetExtent(fepControlPos, TSize(100, 90));
    before
    window.SetExtent(fepControlPos, TSize(100, 90));

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