×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    124

    Volume from NumberEditor

    in my rss file i have something like:
    DLG_LINE
    {
    type=EEikCtNumberEditor;
    prompt="volume (0-5)";
    id=EVolume;
    control=NUMBER_EDITOR
    {
    min=0;
    max=10;
    };

    if i want to play a wave and to set the volume from a number editor how to do(in sdk there is no something like this)(i am using comunicator)? Is possible to set the volume from a number editor!
    Txs!
    George!

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    5
    You have to do the following in your Dialog class:
    In PreLayoutDynInitL () ---> called before the dialog is displayed:
    CEikNumberEditor* vol=(CEikNumberEditor*)ControlOrNull( ELineVol );
    if(vol)
    vol->SetNumber(*iVol);


    in OkToExitL(TInt ) ---> called before the dialog is Destroyed:
    CEikNumberEditor* vol= (CEikNumberEditor*)ControlOrNull( ELineVol );
    if(vol)
    *iVol= vol->Number();


    Ok ....

Posting Permissions

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