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!
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();