Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    10

    Cool How to call a function while dialog RunDL() is executing?

    I have a dialog derived from CAknDialog that I create using PrepareLC() and RunLD(). The only item in the dialog is an editor, defined in a DLG_LINE in the dialog resource. I want to access the editor _after_ the dialog's PreLayoutDynInitL() and PostLayoutDynInitL() functions execute. In particular, I want to call the editor's SetCursorPosL() function. That call has no effect when called from PostLayoutDynInit(). RunLD() maintains control of the dialog, so I can't just write a dialog function that includes a call to SetCursorPosL(), because there'd be no way to invoke that function (as RunLD() executes). Any way of doing this? Or do I need to execute the dialog differently?

    Dan

  2. #2
    Regular Contributor
    Join Date
    Apr 2005
    Posts
    89

    Re: How to call a function while dialog RunDL() is executing?

    Try to do it in ActivateL.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    10

    Re: How to call a function while dialog RunDL() is executing?

    Thank you much! That worked nicely:

    void CHelpDialog::ActivateL()
    {
    CEikDialog::ActivateL();
    iEditor->SetCursorPosL( 0, EFalse );
    }

    Thanks again,

    Dan

Similar Threads

  1. Dialog conflict in S90: "Connect to" and incoming call. Please help!
    By johnsmat in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-08-27, 07:36
  2. How to call nonexported virtual function
    By zhang_guoqing in forum Symbian
    Replies: 0
    Last Post: 2004-07-26, 08:23
  3. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11
  4. Override "accept/reject call " dialog
    By hajekj in forum Symbian
    Replies: 0
    Last Post: 2003-04-28, 13:11
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 01:00

Posting Permissions

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