Hi Jeremie, Thank you so much for your reply. For the first question, sorry I don't understand it very well. Does this code only for remove the mouse click event I have defined on the widget or it can "kill" all the functions in the widget and set everthing to default. Dose the first part of the code shoule be put in the widget.js file? I tried to follow your suggestion, and it seems doesn't work, maybe there is some part of the code I put it in the wrong place. I checked the introduction of "dojo.disconnect", it is used to disconnect the previous "dojo.connect" listener, and for me it works, so does this means for every changed made by this widget, I must make sure they have a connect listener, and then create a disconnect event to destroy them? For the second question, I tried to use off panel widget and configure the position of it in the layout of the theme, but it will still open a blank GUI window by itself. Is there some place/code I could define not to show the GUI window or even get the result like you descibed to have one button with activated/deactivated status, which is actually what I need for some widgets. Thank you very much! Luyi
... View more