From: <ipe...@it...> - 2012-07-20 12:15:56
|
Hi again Dee, i was probably thinking ahead of my mind when i proposed the obvious, which of course was wrong. Whenever i made a selection i crashed. Searching a little more i realized that we had to find the parent window and then ended up to the following which i haven't tested thorougly but it seems to be working correctrly. Of course it is a quick and dirty one but it might give you a direction. case WM_KILLFOCUS: ... ... ... if (window->IsMenu) { SFG_Window *win; for( win = ( SFG_Window * )fgStructure.Windows.First; win; win = ( SFG_Window * )win->Node.Next ) { if (win->ActiveMenu && win->ActiveMenu->IsActive) { if (win->ActiveMenu->ParentWindow) fgDeactivateMenu( win ); } } } break; Ioannis > I've been trying that, but i found it very fiddly. The menu closes > every now and then when just moving the mouse off it (which it > shouldn't). And with some rapid clicking around i made it crash as > well... ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |