in OnDisplayInit(),i call SipShowIM(SIPF_ON) to show the input panel. in OnInit() ,i call MoveWindow()to change the edgelib window's position and scale. now,the SIP panel can show under the window of edgelib.but the code in OnNextFrame() can not run correctly.(the code is not run).
how should i do to let it run correctly?
Hi Sunfred,
The correct way to do this is to set the fullscreen option to false in the OnDisplayConfig() callback function. This will enable the start button and keyboard. Also make sure you create and set the menu in the OnDisplayConfig() callback.
hi,my friend.
i set config->fullscreen = false; then the window of edgelib is changed to the position and scale that i want it to.and the panel is shown too. after the panel shown,and the programe is running,but the code in OnNextFrame() is not executed.
i blt 2 surfaces alternatly, but after the panel is shown,the 2 surfaces are not shown again.
the following is the code in OnNextFrame():
static bool bAlternate =true;
if(bAlternate )
{
Sleep(1000);
display->buffer .BltFast(0,0,&test2;,NULL);
bAlternate =!bAlternate ;
}
else
{
Sleep(1000);
display->buffer .BltFast(0,0,&test1;,NULL);
bAlternate =!bAlternate ;
}
return(E_OK);
Hi Sunfred,
The problem could also be that the image is not being rendered (and the OnNextFrame still work OK).
Please check this by showing a messagebox after you've alternated surfaces for 5 times (after 5 seconds).
- Code:
static bool bAlternate =true;
static int bCount = 0;
if(bAlternate )
{
Sleep(1000);
display->buffer .BltFast(0,0,&test2;,NULL);
bAlternate =!bAlternate ;
bCount++;
}
else
{
Sleep(1000);
display->buffer .BltFast(0,0,&test1;,NULL);
bAlternate =!bAlternate ;
bCount++;
}
if (bCount == 5)
ClassEConsole::MsgWindow("OnNextFrame test");
return(E_OK);