nana@opal.bellcore.com (Ana M. Swanson) (03/12/91)
Hi netters: Is there anyway to add additional push buttons to a Selection Box widget? In Motif 1.1, the Selection box comes with the standard three (OK, HELP, CANCEL). If it is a child of a Dialog Shell, an additional button, APPLY is available. This is not the case with our application (unfortunately - we need more buttons!). Any help appreciated greatly Ana
nazgul@alfalfa.com (Kee Hinckley) (03/12/91)
> Hi netters: > > Is there anyway to add additional push buttons to a Selection Box widget? > > In Motif 1.1, the Selection box comes with the standard three (OK, HELP, > CANCEL). If it is a child of a Dialog Shell, an additional button, APPLY > is available. This is not the case with our application (unfortunately - > we need more buttons!). I think you can just manage the Apply button if it's not there, but I haven't tried using it outside of a DialogShell, so I don't know. There's no way to directly add buttons to the bottom. However all selection boxes will accept one child, and you can put anything you want in it. Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.
bazavan@hpdtczb.HP.COM (Valentin Bazavan) (03/13/91)
> Hi netters: > > Is there anyway to add additional push buttons to a Selection Box widget? > > In Motif 1.1, the Selection box comes with the standard three (OK, HELP, > CANCEL). If it is a child of a Dialog Shell, an additional button, APPLY > is available. This is not the case with our application (unfortunately - > we need more buttons!). > > Any help appreciated greatly > Ana Here are a couple of suggestions. You are allowed to add a work area as a child of the selection box. The work area could be a row column manager with as many buttons as you wish. The only problem with this approach is that you can't control the placement of the work area widget. You can make the selection box the child of a form (or form dialog, if appropriate) and add any number of buttons you need. In this case you have full control of button positioning. (You will not be able to place your buttons in line with those provided by the selection box, though. If this is what you want, you will have to unmanage all selection box buttons and replace them with your own.) Valentin Bazavan vbazavan@hpdtc.hp.com