Symbian
Symbian OS Library

FAQ-0817 Why can I only access controls on the first dialog page?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: UIKON
Created: 09/10/2002 Modified: 04/14/2003
Number: FAQ-0817
Platform: Symbian OS v6.0

Question:
I am trying to get a control in my multi-page dialog using STATIC_CAST(CONTROL_CLASS *,Control(CONTROL_ID));
but my code panics when the CONTROL_ID is referring to a control in multi-page dialog, except for the 1st page. What am I doing wrong?


Answer:
Under the 9200 Series SDK, the Control() method of CEikDialog can only access controls on the active page. To activate a different page, use
    dialog->SetActivePageByIdL(TInt aPageId);