Picking closing a confirmEx dialogue book with the red cross

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Picking closing a confirmEx dialogue book with the red cross

musiquegraeme
I use
                cancelSend = Services.prompt.confirmEx(win,winTitle,winLabel,Services.prompt.BUTTON_POS_0 * Services.prompt.BUTTON_TITLE_IS_STRING +
          Services.prompt.BUTTON_POS_1 * Services.prompt.BUTTON_TITLE_IS_STRING +
          Services.prompt.BUTTON_POS_0_DEFAULT,
          winCancel, winSend, null,"", check)

to ask the user whether to cancel the send or not. There is a Send Anyway button and a Cancel button but there is also a red cross. The default button is Cancel but the red cross is taken as Send.

Is there a way to take the Red Cross as a Cancel instead of a Send?
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: Picking closing a confirmEx dialogue book with the red cross

musiquegraeme
In fact I realise that the only way to handle this is to reverse the buttons so that Button 1 IS cancel which then still gives the same result as the Red Cross OR the Esc button.
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird