On Saturday 19 September 2015 15:22:26 che fou wrote:
> Hi Martin
> my popup menu doesn't updated properly on a twindowwidget (still
> displayed on the background), the twindowwidget i used to create an
> opengl context through zengl library .

The draw() procedure is:
"
procedure draw;
begin

        if zgl_Resized then begin
         zgl_Resized := false;
         wnd_SetPos(mainfo.renderwindow.left,mainfo.renderwindow.top);
         
wnd_SetSize(mainfo.renderwindow.ClientWidth,mainfo.renderwindow.ClientHeight);
        end;

    pr2d_Rect( 0, 0, mainfo.clientwidth, mainfo.clientheight , $252537, 255 , 
PR2D_FILL );
    text_Draw( fntMain, 0, 0, 'FPS: ' + u_IntToStr( zgl_Get( RENDER_FPS ) ) );  
        application.ProcessMessages;
...
"
application.processmessages() shows the popup menu in a nested main loop 
because menu handling is modal. -> application.pocessmessages() does not 
return until the menu has been closed.
I don't think one should call application.processmessages() from a OpenGL 
render procedure.

Martin

------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to