×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    43

    View/container from dialog resource?

    I have view/container architecture of S60 application. Is it possible to have one container be loaded from resource as dialog? I would like to have one container defined as a dialog with "DLG_LINE" items. Basically, can I load from resource and attach a whole dialog page into my CMyContainer::ConstructL to the current container like a compound control?

    Thanks for any help.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    444

    Re: View/container from dialog resource?

    Hi,

    Why do you want to convert dialog from container while dialog itself as like container.

    You can directly execute dialog with ExecuteLD or with RunLD() from your container or from your view.

    Regards,
    Kavit.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    43

    Re: View/container from dialog resource?

    Thanks for answer.
    Quote Originally Posted by Kavit Patel View Post
    Hi,

    Why do you want to convert dialog from container while dialog itself as like container.
    I have several tabs in the application implemented as view/container architecture. For few containers I dynamically add controls (list, labels, etc) inside method CXXContainer::ConstructL. For another screen will be quite convenient to describe items in the resources and load, rather than add each control programmatically. And, I would like that "tabs" looking of multi-view and the menu will remain unchanged: simply the controls and layout are described in resource file, but not in my code.

    ExecuteLD will simply make the dialog on top of my view, but not part of it.

    As far as I understood this http://www.forum.nokia.com/document/...A2453143A.html "Compound controls" could be a dialog page, but I don't find any example how can I do it.

    Pavel

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: View/container from dialog resource?

    You should check the "Creating Custom Controls" (or something very similar) article on the FN main site (www.forum.nokia.com, Documentation/Symbian C++ on the left, UI). It shows how to create your control from resource file. After learning it, you will be able to either start defining your own description or re-use existing ones (such as DIALOG+DLG_LINE).

Similar Threads

  1. problem in using dialog resource
    By ayman09 in forum Symbian
    Replies: 2
    Last Post: 2008-05-18, 12:05
  2. Why am i getting this error?
    By shankha in forum Symbian
    Replies: 4
    Last Post: 2007-10-12, 11:21
  3. Using a resource query dialog
    By aleianna in forum Symbian User Interface
    Replies: 6
    Last Post: 2007-03-16, 09:22
  4. Multiple Resource file - Dialog
    By clifford_dias in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-11-13, 16:43
  5. resource dialog
    By plmanikandan in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-05-19, 08:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×