- Olan Knight
- PowerBuilder
- Friday, 28 February 2020 10:46 PM UTC
I would dearly love to see the good old MESSAGEBOX function extended to allow user to specify their own values for BUTTON and ICON. This is the standard prototype for MessageBox:
Message (title, text, icon, button, default)
I see this working with a new standard enumerated icon of "custom!", which means a following parameter must be the string name of the bitmap to be used as the icon.
Message (title, text, CUSTOM!, "ROCKETSHIP.BMP!", button, default)
I see the same thing for the BUTTON parameter. Either the user passes a standard enumerated button or a new enumerated value of "custom!", and a following comma-separated string indicates the button text to be used and the number of options presented.
Message (title, text, icon, "CUSTOM!", "RECALCULATE, SAVE, RESTORE, COMMIT", default)
The number of comma separated string values is the number of button options to present.
The order in which the options are listed in the string parameter are their associated numeric values: 1, 2, 3...
Thanks.
Olan
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.