Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

Just run into a issue with IDISPLAY_UpdateEx function.

I have a function that loads data from the Data base file on the device. This could be a time consuming process depending on the number of items in the DB at that time. I try to display a waiting Dialog while this process runs.

For some reason IDISPLAY_UpdateEx doenst draw the Dialog on the screen. The device is Moto V265 (BREW 2.1).

Here is what I am doing.
void myFunction()
{
ISHELL_CreateDialog(pMe->pIShell, RES_FILE, IDD_WAIT, NULL);
IDISPLAY_UpdateEx(pMe->a.m_pIDisplay, TRUE);

//Load Data from DB

ISHELL_EndDialog(pMe->pIShell);

I set the bDefer flag to TRUE cause I want the Screen Update to be done before going into the load data code.

From the API Reference.
" Starting in BREW 2.1, this function does nothing if the destination bitmap for this IDisplay is not the device bitmap. "

Now since I am using the pMe->a.m_pIDisplay, I assume that this is pointing to the device bitmap. Is this the issue here ? or is it just a device issue ?

Thanks in advance.

r@I wrote:Hi,
Just run into a issue with IDISPLAY_UpdateEx function.
I have a function that loads data from the Data base file on the device. This could be a time consuming process depending on the number of items in the DB at that time. I try to display a waiting Dialog while this process runs.
For some reason IDISPLAY_UpdateEx doenst draw the Dialog on the screen. The device is Moto V265 (BREW 2.1).
Here is what I am doing.
void myFunction()
{
ISHELL_CreateDialog(pMe->pIShell, RES_FILE, IDD_WAIT, NULL);
IDISPLAY_UpdateEx(pMe->a.m_pIDisplay, TRUE);
//Load Data from DB
ISHELL_EndDialog(pMe->pIShell);

I set the bDefer flag to TRUE cause I want the Screen Update to be done before going into the load data code.
From the API Reference.
" Starting in BREW 2.1, this function does nothing if the destination bitmap for this IDisplay is not the device bitmap. "
Now since I am using the pMe->a.m_pIDisplay, I assume that this is pointing to the device bitmap. Is this the issue here ? or is it just a device issue ?
Thanks in advance.
You should be calling IDISPLAY_UpdateEx with FALSE unless
you want BREW to decide when to actually do the update for you.

r@I wrote:Hi,
Just run into a issue with IDISPLAY_UpdateEx function.
I have a function that loads data from the Data base file on the device. This could be a time consuming process depending on the number of items in the DB at that time. I try to display a waiting Dialog while this process runs.
For some reason IDISPLAY_UpdateEx doenst draw the Dialog on the screen. The device is Moto V265 (BREW 2.1).
Here is what I am doing.
void myFunction()
{
ISHELL_CreateDialog(pMe->pIShell, RES_FILE, IDD_WAIT, NULL);
IDISPLAY_UpdateEx(pMe->a.m_pIDisplay, TRUE);
//Load Data from DB
ISHELL_EndDialog(pMe->pIShell);

I set the bDefer flag to TRUE cause I want the Screen Update to be done before going into the load data code.
From the API Reference.
" Starting in BREW 2.1, this function does nothing if the destination bitmap for this IDisplay is not the device bitmap. "
Now since I am using the pMe->a.m_pIDisplay, I assume that this is pointing to the device bitmap. Is this the issue here ? or is it just a device issue ?
Thanks in advance.
You should be calling IDISPLAY_UpdateEx with FALSE unless
you want BREW to decide when to actually do the update for you.