Is there a way to have just one OK button and the 'X' button to close the window? I tried with all combinations and i see that only when you have "OK" and "Cancel" OR "Yes", "No" and "Cancel" options(that is - xfa.host.messageBox("Hello World!",3,1); or xfa.host.messageBox("Hello World!",3,3);) is when u get the 'X' button to close.
I have a popup with a long message content which should just have one "OK" button. But since the message content is long, it is difficult to accommodate the "OK" button well within the monitor screen size.
Hence i am having to give - xfa.host.messageBox("Hello World!",3,1) so that i have the "X" button to either click or press "Esc" to close the popup.
Requirement is such that i need only "OK" button with the "X" option. The only action on clicking any of these will just be to close the popup.