×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    5

    Question Show some text (View Model)

    Hi,

    I am a bit lost. I created a new application based on the view model.

    Now I have the AppUI, a Document and for each view a Container and a View.

    On the first view, there is this "iLabel" showing some text. Now I want to show something that is stored in a variable, instead this fixed test.

    My questions:
    1. Where do I store this variable? In the Document?
    2. In which class and method do I have to access this variable to write it in this label. I think it has to be the Container, because only this class has access to the "iLabel", but how can I acces the variable?
    3. If I change the variable through a method called by the user with the menu. What function do I have to call to redraw the text label?

    I hope someone can help me with this little example so I can understand the concept :-)

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    5
    no one who could help?

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    58

    Re: Show some text (View Model)

    try
    iLabel->SetText(_L("mytext"));
    DrawNow();

Posting Permissions

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