Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I have more buttons than three in a MessageBox?

buttons messagebox
0
Posted

How do I have more buttons than three in a MessageBox?

0

to have something like a MessageBox (or other widget) with more than three buttons, but with the same nice appearance. [Last modified: Feb 95] Answer: The Motif 1.2 MessageBox widget allows extra buttons to be added after the OK button. Just create the extra buttons as children of the MessageBox. Similarly with the SelectionBox. Pre-Motif 1.2, you have to do one of the following methods. A SelectionBox is created with four buttons, but the fourth (the Apply button) is unmanaged. To manage it get its widget ID via XmSelectionBoxGetChild(parent, XmDIALOG_APPLY_BUTTON) and then XtManage it. Unmanage all of the other bits in the SelectionBox that you don’t want. If you want more than four buttons, try two SelectionBoxes (or similar) together in a container, where all of the unwanted parts of the widgets are unmanaged. Alternatively, build your own dialog: /* Written by Dan Heller. Copyright 1991, O’Reilly && Associates. * This program is freely distributable without licensing fees and * is

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123