Exception when action.setEnabled(false) in IMenuListener

yidabu dyuyan.spam at gmail.com
Tue Mar 31 19:45:14 PDT 2009


this is an old problem I reported with dwt-win and dwtx, takes me a half day to found it.

class MyMenuListener: IMenuListener
{
     void menuAboutToShow(IMenuManager manager)
     {
     	action.setEnabled(false); // the gui not responsed
	action.setEnabled(true);  // no problem     
     }
}

tested with current dwt2(Windows), tango 0.99.8, build lib by Rake, build app by DMD 1.041

I removed all listeners, works now.








-- 
yidabu <yidabu.spam at gmail.com>
http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/




More information about the Digitalmars-d-dwt mailing list