Thursday, January 14, 2016

How UIQ in the waiting dialog that make?




            


If that: UIQ in the waiting dialog how to get me to wait to get hold of the dialog box, users can press the Cancel dialog message so that I can make in the program dialog message, and wait for the dialog to dynamically change the text? .
Please friends did point to suggest, thank you!

Reply:
UIQ SDK There are examples of DIALOG, ah, you can follow to write Well, SDK also described in the HELP
Reply:
What you say is uiq3, my sdk is 2.1, which can not find a reference example ah
Reply:
RSS:
RESOURCE DIALOG r_wait_dialog
{
title = "Title";
flags = EEikDialogFlagNotifyEsc;
buttons = R_EIK_BUTTONS_CANCEL;
items =
{
DLG_LINE
{
type = EEikCtLabel;
id = EWaitLabelId;
control = LABEL
{
txt = "Please wait ...";
};
}
};
}

==========================================
/ *
================================================== ==========================
Name: WaitDialog.h
Author:
Version:
Copyright:
Description: Dialog for waiting operation
================================================== ==========================
* /

#ifndef WAITDIALOG_H
#define WAITDIALOG_H

# Include & lt; eikdialg.h & gt;

class MWaitDialogObserver
{
public:
virtual void DialogDismissedL (TInt aError) = 0;
};

class CWaitDialog: public CEikDialog
{
public:
CWaitDialog (MWaitDialogObserver & amp; aObserver)
: IObserver (aObserver)
{

}
/ **
* Destructor.
* /
~ CWaitDialog ()
{}

void SetPormptTextL (const TDesC & amp; aDes);

protected: // Functions from base classes

/ **
* From CEikDialog: This is called by the dialog framework, returns true if the
* Dialog can exit, false otherwise.
*
*param AButtonId Id of the softkey which was pressed
*return ETrue if the dialog can exit, false otherwise.
* /
TBool OkToExitL (TInt aButtonId);
private:

MWaitDialogObserver & amp; iObserver;
};

No comments:

Post a Comment