Re: [MSEide-MSEgui-talk] window resizing problem
yes thats it :D thank you very much -- ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] window resizing problem
On 05.09.2016 15:59, code dz wrote: > test case but its windows only > > 2016-09-05 16:57 UTC+02:00, code dz: >> Hi >> i made 2 simple zengl app (with lazarus and msegui) , they are identical . >> the problem is when resizing the window , with lazarus it work without >> problem , but with msegui there is a weird behaviour . >> > Either set render_win.optionsclient cwo_trackboundsimmediate or use " procedure draw; begin if zgl_Resized then begin zgl_Resized := false; //w := mainfo.render_win.ClientWidth; //h := mainfo.render_win.ClientHeight; w := mainfo.render_win.childrect.cx; h := mainfo.render_win.childrect.cy; wnd_SetSize(w,h); end; " It is also possible to use TWindowWidget.OnClientrectChanged, OnClientPaint and FPSmax instead to use an additional TTimer. git master a57c663d6f6e4394bb0b4f188ca3ffb32ca884a7 has cwo_highrestimer and cwo_noleak for convenience. Martin -- ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] window resizing problem
On Monday 05 September 2016 19:39:30 code dz wrote: > this is a modified version of zengl , i removed its internal > loop-for-ever , now zgl_MainLoop procedure used instead,it loops once > every call . > Please send the modified 32 bit zengl-ed.dll. > do you have any clue why lazarus version works without problem ? > No. Martin -- ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] window resizing problem
this is a modified version of zengl , i removed its internal loop-for-ever , now zgl_MainLoop procedure used instead,it loops once every call . do you have any clue why lazarus version works without problem ? -- ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] window resizing problem
On Monday 05 September 2016 16:59:20 code dz wrote: > test case but its windows only > > 2016-09-05 16:57 UTC+02:00, code dz: > > Hi > > i made 2 simple zengl app (with lazarus and msegui) , they are identical > > . the problem is when resizing the window , with lazarus it work without > > problem , but with msegui there is a weird behaviour . " procedure tmainfo.on_activate(const sender: TObject); begin if not zglInited then begin zglInited := true; zglLoad(libZenGL); zgl_Reg(SYS_LOAD,@init); zgl_Reg(SYS_DRAW,@draw); zgl_InitToHandle(render_win.clientwinid); < end; end; " zgl_InitToHandle() does not return which inhibits MSEgui event handling. Please do not mix zenGL event loop with MSEgui event loop. Martin -- ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk