Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2946
  • Last Modified:

Powerbuilder messagebox problem, urgent. Many Thanks !!

How do I change the button option text to "carflowertoy!" instead of default "yesnocancel!" ???

li_rtn = messagebox('Info','Which one do you like ?', question!, yesnocancel!, 1)

Thank you very much !!!
0
mhhui
Asked:
mhhui
1 Solution
 
BhattiCommented:
I don't think that we can change these text as any other text. What you can do is only to make a small responce window.
1. Make a new window
2. Write your text
3. Make three buttons (Car-Flower & Toy)
4. In your script where you want to show message use
   OpenWithParm(window_name, abc)
Here abc may a text or structure which information you want when you open a window with message.

Close this window when user clicked a button(Car , Flower or Toy)

This script in window
use: ClosewithReturn(window_name, abc)
If it is a only string abc is the string.

use abc string is return value from button clciked in your window and do further actions.

Read these two functions in Help(by pressing F1)

1. OpenWithParm()
2. CloseWithRetuen()

If have any further question for such messages please let me know.

Best regards


Bhatti
0
 
sunpatilCommented:
I think you should create a custom visual user object for that thing if you want to use that kind of button headings in your application and use that.

If have any further query please let me know.

regards

sunpatil
0
 
SpideyModCommented:
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now