Hari Krishna Dara wrote:
> > Many GUIs don't support a dialog without a button selected. Disabling
> > the use of Enter to select a button isn't a good idea either. Thus for
> > some GUIs it simply won't work to have a dialog without a default.
>
> I know for sure Windows native UI supports dialogs without a default
> button, and Motif also should support this as well. I will in fact be
> surprised if GUIs always force the programmer to specify a default
> button, as there should be a choice not to have one (especially when
> there is a complex interface).
On MS-Windows it works to avoid Enter selecting a default button, but
Space still does. I doubt it is possible to disable this, it seems
there always must be a button with the dashed line in it.
> In my case, I was trying to set no default button when I know there is
> some important information to read, but the user might routinely press
> <Space> or <Enter> to get rid off it. If the dialog doesn't get hidden,
> the user will more likely read it. Right now I resorted to doing an
> echohl with WarningMsg followed by an input(), but this introduces a
> drastic difference from the routine case where the user still sees a
> dialog.
Using a zero default is supposed to do this, but there are
implementation problems. Hopefully someone who knows the specific GUI
library can find a solution. I don't work on these unusual GUI things,
it takes too much of my time.
--
MORTICIAN: What?
CUSTOMER: Nothing -- here's your nine pence.
DEAD PERSON: I'm not dead!
MORTICIAN: Here -- he says he's not dead!
CUSTOMER: Yes, he is.
DEAD PERSON: I'm not!
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///