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

Developer

Forums

Forums:

Hi ,
when the game is over i was calling initialization and loadmain menu function. then the images are not load can you tell me what is the problem in my code or any other problem

Its really tuff to guess the problem area. Can u paste the code snippet of loading menu/reinitialisation.
(Anyways, it seems a problem of dangling pointers (you might be freed/released some object/variable and you are again trying to access it..)
~~~~~~~
SoftEast
~~~~~~~

Its really tuff to guess the problem area. Can u paste the code snippet of loading menu/reinitialisation.
(Anyways, it seems a problem of dangling pointers (you might be freed/released some object/variable and you are again trying to access it..)
~~~~~~~
SoftEast
~~~~~~~

thanxxxxxxxxxxxxx

thanxxxxxxxxxxxxx

thankx, i have fined the problem now i am facing new problem one is that i want to stor yhe data of itextctl object in file the function get text not properly working can you send me some code about the storing strings in file
thank u

thankx, i have fined the problem now i am facing new problem one is that i want to stor yhe data of itextctl object in file the function get text not properly working can you send me some code about the storing strings in file
thank u

Below is code snippet..(fetched from Brew11 examples)
~~~~~~~
SoftEast
~~~~~~~
IFile * pIFile;
char szFirstStr[] = "First Sentence";
char szSecondStr[] = "Second Sentence";
char szThirdStr[] = "Third Sentence";
char szBuffer[30];
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_FILEMGR,(void **)&pMe->m_pIFileMgr))
return;
// Create the file to be read
if ((pIFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr, "xxyy.zz", _OFM_CREATE)) == NULL)
{
IFILEMGR_Release(pMe->m_pIFileMgr);
pMe->m_pIFileMgr = NULL;
return;
}
// First, we write the three sentences to the file we just opened. IFILE_Write
// returns the number of bytes it wrote, which we check to make sure the
// write operations were successful
if (IFILE_Write(pIFile, szFirstStr, sizeof(szFirstStr)) != sizeof(szFirstStr))
DBGPRINTF("1st Write Failed");
if (IFILE_Write(pIFile, szSecondStr, sizeof(szSecondStr)) != sizeof(szSecondStr))
DBGPRINTF("2nd Write Failed");
if (IFILE_Write(pIFile, szThirdStr, sizeof(szThirdStr)) != sizeof(szThirdStr))
DBGPRINTF("3rd Write Failed");
// Close the file
IFILE_Release(pIFile);
// Remove the file
IFILEMGR_Remove(pMe->m_pIFileMgr, "xxyy.zz");
IFILEMGR_Release(pMe->m_pIFileMgr);
pMe->m_pIFileMgr = NULL;

Below is code snippet..(fetched from Brew11 examples)
~~~~~~~
SoftEast
~~~~~~~
IFile * pIFile;
char szFirstStr[] = "First Sentence";
char szSecondStr[] = "Second Sentence";
char szThirdStr[] = "Third Sentence";
char szBuffer[30];
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_FILEMGR,(void **)&pMe->m_pIFileMgr))
return;
// Create the file to be read
if ((pIFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr, "xxyy.zz", _OFM_CREATE)) == NULL)
{
IFILEMGR_Release(pMe->m_pIFileMgr);
pMe->m_pIFileMgr = NULL;
return;
}
// First, we write the three sentences to the file we just opened. IFILE_Write
// returns the number of bytes it wrote, which we check to make sure the
// write operations were successful
if (IFILE_Write(pIFile, szFirstStr, sizeof(szFirstStr)) != sizeof(szFirstStr))
DBGPRINTF("1st Write Failed");
if (IFILE_Write(pIFile, szSecondStr, sizeof(szSecondStr)) != sizeof(szSecondStr))
DBGPRINTF("2nd Write Failed");
if (IFILE_Write(pIFile, szThirdStr, sizeof(szThirdStr)) != sizeof(szThirdStr))
DBGPRINTF("3rd Write Failed");
// Close the file
IFILE_Release(pIFile);
// Remove the file
IFILEMGR_Remove(pMe->m_pIFileMgr, "xxyy.zz");
IFILEMGR_Release(pMe->m_pIFileMgr);
pMe->m_pIFileMgr = NULL;

THANX,
can i write on the file in the AECHAR format becouse that itextctl_get text return in AECHAR formate . and i want to store this return data in the file.plz give me some code if possible.
thank u

THANX,
can i write on the file in the AECHAR format becouse that itextctl_get text return in AECHAR formate . and i want to store this return data in the file.plz give me some code if possible.
thank u

faizaalam wrote:THANX,
can i write on the file in the AECHAR format becouse that itextctl_get text return in AECHAR formate . and i want to store this return data in the file.plz give me some code if possible.
thank u
No u can't write in AECHAR format. Convert the AECHAR to char using the function WSTRTOSTR and then write the resultant char buffer to file.

faizaalam wrote:THANX,
can i write on the file in the AECHAR format becouse that itextctl_get text return in AECHAR formate . and i want to store this return data in the file.plz give me some code if possible.
thank u
No u can't write in AECHAR format. Convert the AECHAR to char using the function WSTRTOSTR and then write the resultant char buffer to file.

Oceans eleven wrote:No u can't write in AECHAR format. Convert the AECHAR to char using the function WSTRTOSTR and then write the resultant char buffer to file.
yes you are right, the other way could be, to populate a buffer with the AECHAR data and write that buffer directly.
~~~~~~~
SoftEast
~~~~~~~

Oceans eleven wrote:No u can't write in AECHAR format. Convert the AECHAR to char using the function WSTRTOSTR and then write the resultant char buffer to file.
yes you are right, the other way could be, to populate a buffer with the AECHAR data and write that buffer directly.
~~~~~~~
SoftEast
~~~~~~~

Softeast wrote:yes you are right, the other way could be, to populate a buffer with the AECHAR data and write that buffer directly.
I don't believe that is correct as IFILE_Write() takes a void pointer, so you can basically call it with any data you want to, including an AECHAR array, as long as you set the dwCount correctly. There shouldn't be any need to create a buffer and copy the AECHAR data into it since you can just write the AECHAR data directly.

Softeast wrote:yes you are right, the other way could be, to populate a buffer with the AECHAR data and write that buffer directly.
I don't believe that is correct as IFILE_Write() takes a void pointer, so you can basically call it with any data you want to, including an AECHAR array, as long as you set the dwCount correctly. There shouldn't be any need to create a buffer and copy the AECHAR data into it since you can just write the AECHAR data directly.

HI,
thanx to reply,
actually i have a problem that i recived data from the ITEXTCTL object through the GET_TEXT function into a AECHAR array of pointer it is fine but this data was not store in file through IFile_write function tell me what is the problem here
thanx to help.
plz reply today if possible.
thank u

HI,
thanx to reply,
actually i have a problem that i recived data from the ITEXTCTL object through the GET_TEXT function into a AECHAR array of pointer it is fine but this data was not store in file through IFile_write function tell me what is the problem here
thanx to help.
plz reply today if possible.
thank u

HI,
thanx to reply,
actually i have a problem that i recived data from the ITEXTCTL object through the GET_TEXT function into a AECHAR array of pointer it is fine but this data was not store in file through IFile_write function tell me what is the problem here
thanx to help.
plz reply today if possible.
thank u

HI,
thanx to reply,
actually i have a problem that i recived data from the ITEXTCTL object through the GET_TEXT function into a AECHAR array of pointer it is fine but this data was not store in file through IFile_write function tell me what is the problem here
thanx to help.
plz reply today if possible.
thank u

faizaalam...!
Can you post your code snippet ??

faizaalam...!
Can you post your code snippet ??

if (!nIFile)
{
nIFile = IFILEMGR_OpenFile(pIFileMgr,"Name.txt", _OFM_CREATE);
//write a zero score entry, and rewind
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
//pApp->startname is AECHAR ARRAY
IFILE_Write(nIFile, pApp->startname, (sizeof(pApp->startname)));
}
IFILE_Seek(nIFile, _SEEK_START, 0);
}
IFILE_GetInfo(nIFile, &fileInfo);
if (fileInfo.dwSize!=NULL )
{
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
// pApp->name is AECHAR ARRAY of pointers
IFILE_Read(nIFile, pApp->name[pApp->pos],(sizeof(pApp->startname)));
}
}
else
{
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
IFILE_Write(nIFile, pApp->startname, sizeof(pApp->startname));
pApp->name[pApp->pos] = pApp->startname;
}
}
IFILE_Release(nIFile);
IFILEMGR_Release(pIFileMgr);

if (!nIFile)
{
nIFile = IFILEMGR_OpenFile(pIFileMgr,"Name.txt", _OFM_CREATE);
//write a zero score entry, and rewind
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
//pApp->startname is AECHAR ARRAY
IFILE_Write(nIFile, pApp->startname, (sizeof(pApp->startname)));
}
IFILE_Seek(nIFile, _SEEK_START, 0);
}
IFILE_GetInfo(nIFile, &fileInfo);
if (fileInfo.dwSize!=NULL )
{
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
// pApp->name is AECHAR ARRAY of pointers
IFILE_Read(nIFile, pApp->name[pApp->pos],(sizeof(pApp->startname)));
}
}
else
{
for(pApp->pos=0;pApp->pos<5;pApp->pos++)
{
IFILE_Write(nIFile, pApp->startname, sizeof(pApp->startname));
pApp->name[pApp->pos] = pApp->startname;
}
}
IFILE_Release(nIFile);
IFILEMGR_Release(pIFileMgr);

faizaalam,
Convert the "pApp->startname" to char using WSTRTOSTR before writing it to the file.

faizaalam,
Convert the "pApp->startname" to char using WSTRTOSTR before writing it to the file.

faizalam,
replace this line of code
IFILE_Write(nIFile, pApp->startname, (sizeof(pApp->startname)));
by
IFILE_Write(nIFile, pApp->startname, (WSTRLEN(pApp->startname))*sizeof(AECHAR));
This will work
SOftEast

faizalam,
replace this line of code
IFILE_Write(nIFile, pApp->startname, (sizeof(pApp->startname)));
by
IFILE_Write(nIFile, pApp->startname, (WSTRLEN(pApp->startname))*sizeof(AECHAR));
This will work
SOftEast

HI,
thanx to reply ,
sir this is working but problem in the third last line that is /// pApp->name[pApp->pos] = pApp->startname;//// when i am debugging and checking the value of pApp->name[pApp->pos] there is a msg that this expression is not evaluate.
as i saw that pApp->name[pApp->pos] is array of pointers of AECHAR and pApp->startname[5] is an array of AECHAR.
so plz send me some sugession
one more question is that may i write the integer data on the file bcouse i am facing problem write data on the file in integer formate.
plz help me i am thankful to you

HI,
thanx to reply ,
sir this is working but problem in the third last line that is /// pApp->name[pApp->pos] = pApp->startname;//// when i am debugging and checking the value of pApp->name[pApp->pos] there is a msg that this expression is not evaluate.
as i saw that pApp->name[pApp->pos] is array of pointers of AECHAR and pApp->startname[5] is an array of AECHAR.
so plz send me some sugession
one more question is that may i write the integer data on the file bcouse i am facing problem write data on the file in integer formate.
plz help me i am thankful to you

Have you allocated memory for each of the 5 strings that pApp->name contains? If you haven't, then reading from the file into pApp->name[pApp->pos] won't work. If you have, then pApp->name[pApp->pos] = pApp->startname will leak the memory.
-Erik

Have you allocated memory for each of the 5 strings that pApp->name contains? If you haven't, then reading from the file into pApp->name[pApp->pos] won't work. If you have, then pApp->name[pApp->pos] = pApp->startname will leak the memory.
-Erik

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 110, 110);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 110, 110);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 110, 110);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 110, 110);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);

HI,
plz help me to solve this problem that the background colour of the static object is not changing although i called the function of set set clour of back ground
plzzzzzzzzzzzzz give me sugession about it.
the code is given below
if( pIFile )
{
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile, FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);

Faizal,
The BG color is changing for me.. Try changing the RGb value for the BG color and check if it is changing for you..

Faizal,
The BG color is changing for me.. Try changing the RGb value for the BG color and check if it is changing for you..

HI
thanu to reply me ,
i haven change but the colour of the background of static object was not change.i did it again but problem is continue.can you send me some code plz if possible.
plzzzzzzzzzzz reply me i am very thankful to you

HI
thanu to reply me ,
i haven change but the colour of the background of static object was not change.i did it again but problem is continue.can you send me some code plz if possible.
plzzzzzzzzzzz reply me i am very thankful to you

faizaalam wrote:HI
thanu to reply me ,
i haven change but the colour of the background of static object was not change.i did it again but problem is continue.can you send me some code plz if possible.
plzzzzzzzzzzz reply me i am very thankful to you
I did not make any code change. Just used the same code posted by you. Instead of taking text from a stream (file),I used a static AECHAR text.
Could you make it clear what is that Background you are talking about???
The BG area of static object- RECT(0, 0, 128, 128)-the color of which is changing for me.
Anyways Im putting my code here..
{
AEERect rc={0};
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pIStatic, &rc);
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL);
ISTATIC_SetText(pIStatic,L"Title",L"Text to be shown",AEE_FONT_NORMAL,AEE_FONT_NORMAL);
ISTATIC_SetActive(pIStatic, TRUE);
IDISPLAY_SetColor(pMe->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pMe->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pIStatic);

faizaalam wrote:HI
thanu to reply me ,
i haven change but the colour of the background of static object was not change.i did it again but problem is continue.can you send me some code plz if possible.
plzzzzzzzzzzz reply me i am very thankful to you
I did not make any code change. Just used the same code posted by you. Instead of taking text from a stream (file),I used a static AECHAR text.
Could you make it clear what is that Background you are talking about???
The BG area of static object- RECT(0, 0, 128, 128)-the color of which is changing for me.
Anyways Im putting my code here..
{
AEERect rc={0};
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pIStatic, &rc);
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL);
ISTATIC_SetText(pIStatic,L"Title",L"Text to be shown",AEE_FONT_NORMAL,AEE_FONT_NORMAL);
ISTATIC_SetActive(pIStatic, TRUE);
IDISPLAY_SetColor(pMe->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pMe->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pIStatic);

Check the trivial mistake, that- after doing all above stuff "IDISPLAY_Update()" has been called. Otherwise change in color will not be reflected
~~~~~~~
SoftEast
~~~~~~~

Check the trivial mistake, that- after doing all above stuff "IDISPLAY_Update()" has been called. Otherwise change in color will not be reflected
~~~~~~~
SoftEast
~~~~~~~

HI,
thanks to reply i haven chacked idisplay_update is there problem was not solve till now
the code is here
{
IFile * pIFile = NULL;
IFileMgr* pIFileMgr = NULL;
AEERect rc;
pApp->hpage=0;
//IDISPLAY_ClearScreen(pApp->a.m_pIDisplay);
ISHELL_CreateInstance(pApp->a.m_pIShell, AEECLSID_FILEMGR, (void**)(&pIFileMgr));
//return FALSE;
// Open the file.
if("Help")
{
pIFile = IFILEMGR_OpenFile(pIFileMgr, "Help.txt", _OFM_READ);
// Delete the file manager as we no longer need it.
IFILEMGR_Release( pIFileMgr );
if( pIFile )
{
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile,FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}
IDISPLAY_Update(pApp->a.m_pIDisplay);
}

HI,
thanks to reply i haven chacked idisplay_update is there problem was not solve till now
the code is here
{
IFile * pIFile = NULL;
IFileMgr* pIFileMgr = NULL;
AEERect rc;
pApp->hpage=0;
//IDISPLAY_ClearScreen(pApp->a.m_pIDisplay);
ISHELL_CreateInstance(pApp->a.m_pIShell, AEECLSID_FILEMGR, (void**)(&pIFileMgr));
//return FALSE;
// Open the file.
if("Help")
{
pIFile = IFILEMGR_OpenFile(pIFileMgr, "Help.txt", _OFM_READ);
// Delete the file manager as we no longer need it.
IFILEMGR_Release( pIFileMgr );
if( pIFile )
{
SETAEERECT(&rc,0, 0, 128, 128);
ISTATIC_SetRect(pApp->pIStatic, &rc);
ISTATIC_SetProperties(pApp->pIStatic,ST_NOSCROLL);
ISTATIC_SetTextEx(pApp->pIStatic, NULL, (IAStream*)pIFile,FALSE);
ISTATIC_SetActive(pApp->pIStatic, TRUE);
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_TEXT,MAKE_RGB(0,0,255));
IDISPLAY_SetColor(pApp->a.m_pIDisplay,CLR_USER_BACKGROUND,MAKE_RGB(155,153,0));
ISTATIC_Redraw(pApp->pIStatic);
IFILE_Release(pIFile);
}
IDISPLAY_Update(pApp->a.m_pIDisplay);
}

Faizal,
Im using BREW 3.x simulator and tried with the same code (using IFILE to set text) you had posted is working fine..
Might be due to some bug in BREW 2.0 ISTATIC interface.
I just had to make one change, coz my help.txt was in ascii format.
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL);
was changed to
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL|ST_ASCII);
Rest all things were same.

Faizal,
Im using BREW 3.x simulator and tried with the same code (using IFILE to set text) you had posted is working fine..
Might be due to some bug in BREW 2.0 ISTATIC interface.
I just had to make one change, coz my help.txt was in ascii format.
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL);
was changed to
ISTATIC_SetProperties(pIStatic,ST_NOSCROLL|ST_ASCII);
Rest all things were same.

HI,
sir, it is possible that the 2.0 does not support the changing of the bg colour.bcoz i am doing same codding in itextctl object here the colour of bg change.
thank you

HI,
sir, it is possible that the 2.0 does not support the changing of the bg colour.bcoz i am doing same codding in itextctl object here the colour of bg change.
thank you