Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc05!hpsciz!hpdtczb!bazavan From: bazavan@hpdtczb.HP.COM (Valentin Bazavan) Newsgroups: comp.windows.x.motif Subject: Re: Selection Box buttons Message-ID: <17100009@hpdtczb.HP.COM> Date: 13 Mar 91 15:46:52 GMT References: Organization: HP Design Tech Center - Santa Clara, CA Lines: 32 > 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