MessageDlg doesn't obey the default button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36238
    alexhaifa
    Participant

    Hello,

    Sorry, I tried to change the title MessageDLG to MessageBOX and I can't rewrite. Consider this as being MessageBOX.

    The problem

    I put the default button as you can see in the button NO, but it doesn't

    obey the default, please check this.

    if (MessageBox(Self.Handle,

    'Há palavras selecionadas para gerar MP3, '+#13+#10+

    'se voltar ao plano anterior, essas palavras '+#13+#10+

    'serão apagadas da seleção.'+#13+#10+''+#13+#10+

    'Deseja continuar?',

    'Atenção', MB_ICONWARNING or MB_YESNO or MB_DEFBUTTON2) = idNo) then Abort;

    Thanks

    Alexandre

    #52272
    Support
    Keymaster

    Hello Alexandre, can you show a demo, please?

    I have used your code, but behaviour of dialog is correct in my test app.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.