TIMECTL BUG | developer.brewmp.com TIMECTL BUG | developer.brewmp.com

Developer

TIMECTL BUG

Forums:

    if((ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_CLOCKCTL, (void**)(&pMe->m_pClock)) != SUCCESS) )        {            DBGPRINTF("clock control not created");            return ;        }          if( !ITIMECTL_SetTime(pMe->m_pClock,pMe->m_psettime))       {           DBGPRINTF("settime  control not created");            return;        }       pMe->m_psettime=NULL;       SETAEERECT(&rcm,0,0,0,0);           SETAEERECT(&rcm, 0, 30 , pMe->m_rScreenRect.dx,  pMe->m_rScreenRect.dy-30);                            ITIMECTL_SetRect(pMe->m_pClock, &rcm);

        ITIMECTL_SetEditField(pMe->m_pClock, ITF_HOUR|ITF_MIN);        ITIMECTL_EnableCommand(pMe->m_pClock,TRUE,EVT_COMMAND);

       ITIMECTL_SetActive(pMe->m_pClock,TRUE);

 

 

i am using above code to display time ctl on samsung sch339..it shows the timer ctl but as soon as i press up or down key it hides the other control and activated part of timer ctl doesnot shown...i mean if HH:MM:SS  is dispalyed and hh part is activated it doesnot shown on screen ..however up and down arrow increment and decrement its value respectively....is it a bug for device because it doesnot happen on simulator...however timectl hide the other control as well on simulator

What is exact handset model used for testing? Is it Samsung SCH-F339 or SCH-M339 or SCH-S339 or SCH-W339 or SCH-X339? Also which other controls you have on same screen?

What is exact handset model used for testing? Is it Samsung SCH-F339 or SCH-M339 or SCH-S339 or SCH-W339 or SCH-X339? Also which other controls you have on same screen?

thanks adhudase,
sorry for incorrect model info...i am using "samsung SCH-M369"
i am using an image on top most and two resource string for ok and exit on bottom...as the control activated it remove all the image and string ..background colour remain same and timectl shows on middle of the screen..
the worst problem is that it doesnot display the part of time that is being modified ....like in HH:MM:SS..if HH part is activated,you can see only "  MM:SS" however changes are made on HH part,as you press up and down key,similarly when you activate MM part by oressingright key you can see "HH:  :SS" and modification will be done on MM part..i jst dont know why it is happenning...in emulator it  shows properly....but yeah my first problem also exist on emulator.."that it is hide other control and images"
i am using brew sdkv 3.1.5

thanks adhudase,
sorry for incorrect model info...i am using "samsung SCH-M369"
i am using an image on top most and two resource string for ok and exit on bottom...as the control activated it remove all the image and string ..background colour remain same and timectl shows on middle of the screen..
the worst problem is that it doesnot display the part of time that is being modified ....like in HH:MM:SS..if HH part is activated,you can see only "  MM:SS" however changes are made on HH part,as you press up and down key,similarly when you activate MM part by oressingright key you can see "HH:  :SS" and modification will be done on MM part..i jst dont know why it is happenning...in emulator it  shows properly....but yeah my first problem also exist on emulator.."that it is hide other control and images"
i am using brew sdkv 3.1.5

Looks like TIMECTL is upadting the whole screen instead of its own extent. Can you try redrawing other controls on the screen whenever there is update to TIMECTL.
 
Other issue, field under edit gets hidden on M369. It seems to be device specific behavior. I verified on other handsets and it worked well.

Looks like TIMECTL is upadting the whole screen instead of its own extent. Can you try redrawing other controls on the screen whenever there is update to TIMECTL.
 
Other issue, field under edit gets hidden on M369. It seems to be device specific behavior. I verified on other handsets and it worked well.

thanks adhudase,
yeah its worked...thanks for your great suggestion.
right now i dnt have any other handset..thats why i just dnt know that 2nd issue(field under edit gets hidden on M369)is device specific.but since it worked in emulator then may be its device specific..do you have any other idea how can i display editable time in brew...because i am developing an alarm application and time control is an essential control for it :)
 

thanks adhudase,
yeah its worked...thanks for your great suggestion.
right now i dnt have any other handset..thats why i just dnt know that 2nd issue(field under edit gets hidden on M369)is device specific.but since it worked in emulator then may be its device specific..do you have any other idea how can i display editable time in brew...because i am developing an alarm application and time control is an essential control for it :)
 

You can have your own code for the same. You can get system time by helper methods like GETTIMEMS etc.

You can have your own code for the same. You can get system time by helper methods like GETTIMEMS etc.