|
show_message_ext(str,but1,but2,but3) |
|
str = Message to be displayed. but1 = What should be on button 1. but2 = What should be on button 2. but3 = What should be on button 3.
Example #1
This will show your message str just like show_message but will allow you to have up to 3 user-defined buttons instead of just the 'ok' button. The function returns the number of the button pressed, so in the above example, if the user chose 'Level 2', as it is the second button, level would hold the number 2. If the user presses ESCAPE, the value 0 (zero) is used.
In the texts you can use the & symbol to indicate that the next character should be used as the keyboard shortcut for this button. In the following example, O, S and D are the shortcuts:
Example #2
Revision #1 |