0

/*****in the book ive read, they gave me a code which will be placed in the .rss file as shown below...*****/

RESOURCE LISTBOX r_demo_listbox
{
flags = EAknListBoxSelectionList;
array_id = r_demo_listbox_items;
}

RESOURCE ARRAY r_demo_listbox_items
{
items =
{
LBUF { txt = "Item1"; },
LBUF { txt = "Item2"; },
LBUF { txt = "Item3"; }
};
}


/*******and then, they gave me a code wherein i dont know where to place it ************/


// create listbox instance CEikTextListBox* list = new (ELeave) CAknSingleStyleListBox();
// set container control
list->SetContainerWindow(*this);
// initialize resource reader, passing resource id as parameter
TResourceReader rr;
iEikonEnv->CreateResourceReaderLC(rr, R_DEMO_LISTBOX);
// load and construct the resource
list->ConstructFromResourceL(rr);
CleanupStack::PopAndDestroy(); // rr

/*** anyone who knows about this, please tell me where to place it and what shall i do next...im just a newbie:sad: ***/

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by fsemilla
0

what compiler and operating system? We can't tell you where to put that code because you didn't post enough code. Sorta difficult to see your program from where I'm setting :)

0

im using the microsoft visual studio .net 2003 and the symbian OS...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.