what i need is this:
an example for creating a time query dialog
the c++ code is :
CAknTimeQueryDialog* TheTimeDialog = CAknTimeQueryDialog::NewL(TheTime);
TheTimeDialog->ExecuteLD(_ID_);
the documentation says
TheTimeDialog->RunLD(); should work, but it doesn't
the resource file entry should look like this
RESOURCE DIALOG timedialog_name
{
title = "timedialog_title"; // Max 255 characters
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
flags = EAknGeneralQueryFlags; ???
items =
{
DLG_LINE
{
type = ???;
prompt = "enter the time";
id = _ID_;
control = ????;
}
};
}
This is the theory. I cannot find the right parameters for the resource entry and that's why the application crashes.
The documentation sdk isn't helpful,
Yes I'm new to symbian development
Thank You
wfettich wrote:what i need is this:an example for creating a time query dialog
the c++ code is :
CAknTimeQueryDialog* TheTimeDialog = CAknTimeQueryDialog::NewL(TheTime);
TheTimeDialog->ExecuteLD(_ID_);
the documentation says
TheTimeDialog->RunLD(); should work, but it doesn't
the resource file entry should look like this
RESOURCE DIALOG timedialog_name
{
title = "timedialog_title"; // Max 255 characters
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
flags = EAknGeneralQueryFlags; ???
items =
{
DLG_LINE
{
type = ???;
prompt = "enter the time";
id = _ID_;
control = ????;
}
};
}
This is the theory. I cannot find the right parameters for the resource entry and that's why the application crashes.
The documentation sdk isn't helpful,
Yes I'm new to symbian development
Thank You
Why don tu look the examples its there in dialog example in sdk series
wfettich wrote:what i need is this:an example for creating a time query dialog
the c++ code is :
CAknTimeQueryDialog* TheTimeDialog = CAknTimeQueryDialog::NewL(TheTime);
TheTimeDialog->ExecuteLD(_ID_);
the documentation says
TheTimeDialog->RunLD(); should work, but it doesn't
the resource file entry should look like this
RESOURCE DIALOG timedialog_name
{
title = "timedialog_title"; // Max 255 characters
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
flags = EAknGeneralQueryFlags; ???
items =
{
DLG_LINE
{
type = ???;
prompt = "enter the time";
id = _ID_;
control = ????;
}
};
}
This is the theory. I cannot find the right parameters for the resource entry and that's why the application crashes.
The documentation sdk isn't helpful,
Yes I'm new to symbian development
Thank You
Hi!
I am trying to use it too, and in the example AknExQuery ("Query control example"😉,
the dialog appears using just NewL () and ExecuteLD().
The problem is another:
I did not find anywhere an example about how to retrieve the modified data:
the Time() function is inline and protected, and I was not able to get the data, even if I tried to derive the class and access the function from within the derived class.
Anyone used it successfully?
Bruno
Ps: I am using SDK 1.2 and programming for 3650, Borland C++ BuilderX (Mobile Edition) and I have not a huge experience with C++
What about the TTime object you pass at construction? Doesn't that hold the newly entered value?
---------
I fixed it by using a time query edit. Borland C++ BuilderX actually has such an edit and I used it to generate the code.
BCX will create a container and a view class for a new view and on that view you can add the time query edit from the ui designer. Basically it will create an object of type CEikTimeEditor in the container class. And you can access it from there. The class CEikTimeEditor however cannot be found in the documentation even if it is supported. You need to make a search through the header files to find its description. If you can't manage I'll send you some code of how I did it but it would be better for you if you find it out yourself because you can use the same method on other types of dialogues.
The lack of good documentation for Avkon is terrible and you will often need to search through header files to find what you need. You can find some other good docs on www.series60.com , forum.nokia.com ,www.symbian.com or the symbian newsgroups
wfettich wrote:What about the TTime object you pass at construction? Doesn't that hold the newly entered value?
---------
I fixed it by using a time query edit. Borland C++ BuilderX actually has such an edit and I used it to generate the code.BCX will create a container and a view class for a new view and on that view you can add the time query edit from the ui designer. Basically it will create an object of type CEikTimeEditor in the container class. And you can access it from there. The class CEikTimeEditor however cannot be found in the documentation even if it is supported. You need to make a search through the header files to find its description. If you can't manage I'll send you some code of how I did it but it would be better for you if you find it out yourself because you can use the same method on other types of dialogues.
The lack of good documentation for Avkon is terrible and you will often need to search through header files to find what you need. You can find some other good docs on www.series60.com , forum.nokia.com ,www.symbian.com or the symbian newsgroups
thank you very much for your reply,
I will try both solutions!
Bye
Bruno
Ps I am looking at the headers too, but I still did not try CEikTimeEditor, and the documentation for CAknTimeQueryDialog is esactly the header. 😞
I am glad that you have successfully tried CEikTimeEditor, so I can try to study it without to ask me about it is functioning or not! 😊
thank you again!