Menu

#1900 Messagebox onClose with event thread disabled

3.6.4
closed
nobody
5
2010-03-31
2010-03-25
No

Hi,
when the event thread is disabled, then it is not possible to catch the event, when the user closes the dialogue by the click on the upper right cross. Try this example:

<button label="Warning">
<attribute name="onClick">{
Messagebox.show("Warning is pressed", "Warning", Messagebox.OK, Messagebox.EXCLAMATION, new EventListener() {
public void onEvent(Event event) {
alert("OK");
}});
}</attribute>

I would expect the onEvent() method to be called with ((Integer) event.getData()).intValue() equals to zero.

Discussion

  • Tom M. Yeh

    Tom M. Yeh - 2010-03-31

    Fixed on 3/31 on both 3.6 and 5

     
  • Tom M. Yeh

    Tom M. Yeh - 2010-03-31
    • status: open --> closed
     
  • Tom M. Yeh

    Tom M. Yeh - 2010-03-31

    Notice that the close button will cause onClose to be trigged

     

Log in to post a comment.