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

Developer

Forums

Forums:

HI
Does brew emulator supports scrolling if the partiucular display rectangle is greater than the width/height of the emulator screen. If it supports, which function should i use to enable the scrolling ?

thanks

Use IStatic or IHtMlViewer APIs to display text. They will automatically make scrolling available.

Use IStatic or IHtMlViewer APIs to display text. They will automatically make scrolling available.

adhudase wrote:Use IStatic or IHtMlViewer APIs to display text. They will automatically make scrolling available.
I 'm writing the code of the function that would display colored rectangle on the screen.
void BookMyShow4_SeatLayout(sample1 *pMe)
{
IGraphics *pIGraphics;
AEERect rc[10][10];
AEERect rc1[26][26];
int i,j;
int di=0,dj=0;
ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_GRAPHICS,&pIGraphics);
for(i=0;i<26;i++)
{
for(j=0;j<26;j++)
{
SETAEERECT(&rc1[i][j],di,dj,10,10);
dj+=14;
}
di+=14;
dj=0;
}
for(i=0;i<26;i++)
{
for(j=0;j<26;j++)
{
if(i%2==0)
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(235,156,0));
else
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(0,255,0));
}
}
IDISPLAY_Update(pMe->a.m_pIDisplay);

My problem is that when no. of rectangles to be displayed on screen are increasing then their combined length/breadth is greater than dimensions of the emulator screen, so in that case what should i use to display all the rectangles.

adhudase wrote:Use IStatic or IHtMlViewer APIs to display text. They will automatically make scrolling available.
I 'm writing the code of the function that would display colored rectangle on the screen.
void BookMyShow4_SeatLayout(sample1 *pMe)
{
IGraphics *pIGraphics;
AEERect rc[10][10];
AEERect rc1[26][26];
int i,j;
int di=0,dj=0;
ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_GRAPHICS,&pIGraphics);
for(i=0;i<26;i++)
{
for(j=0;j<26;j++)
{
SETAEERECT(&rc1[i][j],di,dj,10,10);
dj+=14;
}
di+=14;
dj=0;
}
for(i=0;i<26;i++)
{
for(j=0;j<26;j++)
{
if(i%2==0)
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(235,156,0));
else
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(0,255,0));
}
}
IDISPLAY_Update(pMe->a.m_pIDisplay);

My problem is that when no. of rectangles to be displayed on screen are increasing then their combined length/breadth is greater than dimensions of the emulator screen, so in that case what should i use to display all the rectangles.