I want to make a listbox that uses txt-files to store the data. Does anyone have a good example or piece of code?
Thanks&Regards
C64
I want to make a listbox that uses txt-files to store the data. Does anyone have a good example or piece of code?
Thanks&Regards
C64
If you already know how to create a listbox, you may find TFileText useful.
How to create a list box ?
i have resource like this
----------------------------------
RESOURCE DIALOG r_opponentform_form_dialog
{
flags = EEikDialogFlagNoDrag |
EEikDialogFlagFillAppClientRect |
EEikDialogFlagNoTitleBar |
EEikDialogFlagWait;
buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
form = r_opponentform_form;
}
// ---------------------------------------------------------
// r_opponentform_form
// The form
//
// ---------------------------------------------------------
//
RESOURCE FORM r_opponentform_form
{
//flags = EEikFormEditModeOnly;
items =
{
DLG_LINE
{
type=EEikCtEdwin;
prompt=NAME_TEXT;
id=EApplicationStatus;
control=EDWIN
{
width=10;
maxlength=10;
};
}
};
}
---------------------------------------------------
I want to display list in my AppContainer while application loaded.
My ConstrulL method in AppContainer is
---------------------------------------------------
void CWAPServContainerApplication::ConstructL(const TRect& aRect)
{
iTimeWaster.CreateLocal();
CreateWindowL();
iOpponentsList = new (ELeave) CAknSingleHeadingStyleListBox;
iOpponentsList->SetContainerWindowL(*this);
// Second Phase Construction
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC(reader, R_WAPSERV_STATUS_DIALOG);
iOpponentsList->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy(); // reader
iOpponentsList->CreateScrollBarFrameL(ETrue);
iOpponentsList->ScrollBarFrame()->SetScrollBarVisibilityL(
CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
SetRect(aRect);
ActivateL();
}
---------------------------------------------------
but my app panic
please help me
Hi all,
Look out in this thread that deals with the same
http://discussion.forum.nokia.com/fo...ad.php?t=77730
Br,
Priju