×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    pop up notes on display of container

    hi,
    we are creating an expense calculator application in carbide v2.0.We want the appplication to show a note during the first day of the month asking the user to enter his budget.So we tried writing a code which displays the note when the first container view opens.But it wont execute the function.No matter what we try a note refuses to display on initialisation of the first container of the application.Is it possible to do that?Where are we going wrong?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: pop up notes on display of container

    on which function you are trying to call the Note Dialog.

    note: your problem is no way related to carbide.c++ so please try using correct Forum Section.

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

    Re: pop up notes on display of container

    Is this Symbian code, or something else ?

    You should always put the questions under correct technology section according to the implementation technology you are using. Anyway,

    what kind of code are you using ?
    What parts of it does execute ?
    And what does not ?

  4. #4
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: pop up notes on display of container

    Ya this application is being designed using carbide c++ for symbian OS.I dnt understand how our problem isnt related to carbide c++ ide.we have tried calling the note function using expContainer->RunNote1L(&msg) in the Initialise controls function belonging to the container class.That didnt work.We have tried calling the function in the container's constructor,activateL function but nothing works.What actually is my problem?coding error or something else?

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: pop up notes on display of container

    can you show use the code where you call the dialog.

    note: the section of the DiBo is only for problems related to Carbide.c++ . and your is a coding error.

  6. #6
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: pop up notes on display of container

    This is what we did.and can u also elaborate on DIBo?

    void CExpContainer::InitializeControlsL()
    {
    iLabel1 = new ( ELeave ) CEikLabel;
    iLabel1->SetContainerWindowL( *this );
    {
    TResourceReader reader;
    iEikonEnv->CreateResourceReaderLC( reader, R_EXP_CONTAINER_LABEL1 );
    iLabel1->ConstructFromResourceL( reader );
    CleanupStack::PopAndDestroy(); // reader internal state
    }

    BudgetPopL();
    }
    void CExpContainer::BudgetPopL()
    {
    TTime iTime;
    TBuf<16> buf1,buf2,buf3;
    TBufC<32> msg;
    CExpContainer* expContainer;
    msg = _L("Enter the Budget for the current month!");
    iTime.HomeTime();
    TDateTime dateTime = iTime.DateTime();
    _LIT(KFormatTxt1,"%/0%1%");
    iTime.FormatL(buf1,KFormatTxt1);
    _LIT(KFormatTxt2,"%/1%2%");
    iTime.FormatL(buf2,KFormatTxt2);
    _LIT(KFormatTxt3,"%/2%3%");
    iTime.FormatL(buf3,KFormatTxt3);

    CexpbDatabase* expbDb = CexpbDatabase::NewL();
    TexpbTableItem iexpbTableItem;
    TexpbTableItem Bnew;

    Bnew= expbDb->GetexpbTableLastRecordL(iexpbTableItem);

    if (TInt(Bnew.iexpbMonth)==buf2 && TInt(Bnew.iexpbYear)==buf3 && buf1==1)
    {
    expContainer->RunNote1L(&msg);
    }
    }

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: pop up notes on display of container

    can you replace
    Code:
    if (TInt(Bnew.iexpbMonth)==buf2 && TInt(Bnew.iexpbYear)==buf3 && buf1==1)
    {
    expContainer->RunNote1L(&msg);
    }
    with
    Code:
    expContainer->RunNote1L(&msg);
    also carbide.c++ generates static methods, so try using directly.

    note: DiBo = "Discussion Boards"

Similar Threads

  1. Replies: 3
    Last Post: 2008-05-10, 10:49
  2. Container does not display controls
    By redbart in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-04-03, 10:19
  3. Camera streaming to display , how?
    By skela in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2007-11-12, 15:06
  4. Hot to display pop up message with more text than two lines
    By Brunnen-G in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-05-21, 14:54

Posting Permissions

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