Problem with QqueryDialog

Login to reply to this topic.
Wed, 2008-05-28 09:01
Joined: 2007-10-09
Forum posts: 25

Hi,

I display a Dialog box,Showing some info and OK softKey.It works fine,but if I dont press the ok Key for some time.Then the Dialog box disapperas and only the OK softkey can be seen.Any idea what the problem could be.I have included my Code snippet

HBufC* title = StringLoader::LoadLC( R_MYAPP_CAPTION );
CAknQueryDialog* dialog = CAknQueryDialog::NewL( CAknQueryDialog::ENoTone );
CleanupStack::PushL( dialog );
HBufC* prompt = StringLoader::LoadLC( R_MYAPP_STRING);
dialog->SetPromptL( *prompt );
CleanupStack::PopAndDestroy( prompt );
CleanupStack::Pop( dialog );
dialog->PrepareLC( R_COMMON_DIALOG );
dialog->QueryHeading()->SetTextL( *title );
if( dialog->RunLD() == EAknSoftkeyOk )
{
}
CleanupStack::PopAndDestroy(1);//Pop


Mon, 2008-06-09 07:03
Joined: 2007-01-17
Forum posts: 99
Re: Problem with QqueryDialog

Do not use CleanupStack::PushL() and CleanupStack::Pop() for Dialog and see,RunLD() destroys the dialog after use. It works just fine for me without these things.


Shashi Kiran G M

Mon, 2008-06-09 07:55
Joined: 2007-10-09
Forum posts: 25
Re: Problem with QqueryDialog

Hey thanks for the reply.

I will give it a try. If posisble could u include u code and the resource u used. Thanks in advance.

  • Login to reply to this topic.