| |

VerySource

 Forgot password?
 Register
Search
View: 844|Reply: 3

How to change the default value of messagebox?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-2 11:20:02
| Show all posts |Read mode
For example, there are 'OK' and 'Cancel'. The default is 'OK'. How to change the default to 'Cancel'. Prevent users from inadvertent operation!
Reply

Use magic Report

0

Threads

13

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 United States

Post time: 2020-3-20 09:45:01
| Show all posts
Messagebox (0, 'hello', MB_YESNO + MB_DEFBUTTON2); you can default to no
Reply

Use magic Report

0

Threads

13

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 United States

Post time: 2020-3-20 20:00:02
| Show all posts
APPLICATION.Messagebox (0, 'hello', MB_YESNO + MB_DEFBUTTON2);
Reply

Use magic Report

0

Threads

34

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-7-6 20:00:02
| Show all posts
Still have to say:

0 is not a pointer value, if used, at least nil

application.Messagebox( nil ,'hello',MB_YESNO+MB_DEFBUTTON2);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list