×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Sep 2004
    Location
    Adelaide
    Posts
    73

    Floating Window problem

    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
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355
    How about CountComponentControls() and ComponentControl() ? Are they implemented in your CEasybeeFepControl ?

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    187
    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
  •