Distributed under the LGPL
*/
+#include <algorithm>
#include <msp/core/refptr.h>
#include "button.h"
#include "dropdown.h"
ChildSeq::iterator i=find(children.begin(), children.end(), &wdg);
if(i!=children.end())
{
+ if(&wdg==pointer_focus)
+ set_pointer_focus(0, 0);
+ if(&wdg==input_focus)
+ set_input_focus(0);
+
set_parent(wdg, 0);
children.erase(i);
}