Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: C++ Firemonkey MessageDlg() no joy


This question is answered.


Permlink Replies: 2 - Last Post: May 26, 2014 12:46 PM Last Post By: Grant Beattie
Grant Beattie

Posts: 77
Registered: 11/29/01
C++ Firemonkey MessageDlg() no joy  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2014 11:24 AM
Hi,

No matter what I do, I can't get MessageDlg() to show any other button than "OK". I want a dialog with Yes, No and Cancel, but as a starting point any one of these would be a step forward.

Here is my code:

choice = MessageDlg("Do you want to save your changes?", TMsgDlgType::mtConfirmation, TMsgDlgButtons() << TMsgDlgBtn::mbYes, 0);

I get

Confirm X
? Do you want to save your changes?
OK

Please help!
GB
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: C++ Firemonkey MessageDlg() no joy
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2014 11:59 AM   in response to: Grant Beattie in response to: Grant Beattie
El 26/05/2014 20:24, Grant Beattie escribió:
Hi,

No matter what I do, I can't get MessageDlg() to show any other button than "OK". I want a dialog with Yes, No and Cancel, but as a starting point any one of these would be a step forward.

Here is my code:

choice = MessageDlg("Do you want to save your changes?", TMsgDlgType::mtConfirmation, TMsgDlgButtons() << TMsgDlgBtn::mbYes, 0);

I get

Confirm X
? Do you want to save your changes?
OK

Please help!
GB


choice= MessageDlg("Do you want to save your changes?",
                    TMsgDlgType::mtConfirmation,
                    TMsgDlgButtons() << TMsgDlgBtn::mbYes
                                     << TMsgDlgBtn::mbNo
                                     << TMsgDlgBtn::mbCancel,
                    0);
Grant Beattie

Posts: 77
Registered: 11/29/01
Re: C++ Firemonkey MessageDlg() no joy  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2014 12:46 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Thanks!!!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02