problem to add in .rss file

Login to reply to this topic.
Tue, 2007-08-14 11:12
Joined: 2007-07-04
Forum posts: 6

I have add a resource in .rss such that
RESOURCE LISTBOX r_main_listbox
{
flags = EAknListBoxSelectionList;
}

In AppView class I have to use this R_MAIN_LISTBOX but this doesnt work. Would you please
help me.


Tue, 2007-08-14 11:14
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

Clean build.....reallyclean build too is better really Smiling

Tue, 2007-08-14 11:26
Joined: 2007-07-04
Forum posts: 6
Re: problem to add in .rss file

thanks . I have cleaned but it doesnt work yet

Tue, 2007-08-14 11:35
Joined: 2007-06-20
Forum posts: 93
Re: problem to add in .rss file

can u paste the code here which not work in ur AppView class?


Thanks & Regards,
C Singh

Tue, 2007-08-14 11:37
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

Maybe try deleting all the generated files manually., coz i dont really see any problem in the little information and the code that you have provided in your first post!!

Tue, 2007-08-14 11:57
Joined: 2007-07-04
Forum posts: 6
Re: problem to add in .rss file

in AppView class I define a method like that:
void CFileExplorerAppView::CreateListBoxL( )
{
iListBox = new (ELeave) CAknSingleStyleListBox ();
iListBox->SetContainerWindowL(*this);

TResourceReader reader;
iEikonEnv->CreateResourceReaderLC( reader, R_MAIN_LISTBOX );

// Create the list box
iListBox->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy(); // reader

// Add vertical scroll bars (which are visible when necessary)
iListBox->CreateScrollBarFrameL( ETrue );
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
}

I have #include but doesnt work.

Tue, 2007-08-14 12:41
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

What did you #include??

Wed, 2007-08-15 04:21
Joined: 2007-07-04
Forum posts: 6
Re: problem to add in .rss file

#include in view class

Wed, 2007-08-15 04:22
Joined: 2007-07-04
Forum posts: 6
Re: problem to add in .rss file

include AppName.rsg in view class

Wed, 2007-08-15 05:49
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

Check if might be AppName_UID3.rsg

Wed, 2007-08-15 05:50
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

Also remember that it should be #include . I am not sure if #include "AppName_UID3.rsg" might work

Wed, 2007-08-15 11:58
Joined: 2007-07-04
Forum posts: 6
Re: problem to add in .rss file

hello Symbian_Neil

at last it works by include AppName_0xEB192E7A.rsg

Wed, 2007-08-15 17:50
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: problem to add in .rss file

Glad to hear that you sorted your problem Smiling

  • Login to reply to this topic.