Article View: comp.windows.interviews
Article #1620Re: Menubars and FieldEditors
From: Mark Linton
Date: Wed, 06 Jan 1993 17:36
Date: Wed, 06 Jan 1993 17:36
21 lines
1717 bytes
1717 bytes
In article <C0EJFq.JFC@fc.hp.com>, dbh@fc.hp.com (Dave Hollenbeck) writes: |> Mark Linton (linton@marktwain.rad.sgi.com) wrote: |> : In article <810@mesrx.UUCP>, amw116@mesrx.com (amy m wong) writes: |> : |> 1) I have a simple question about appending MenuItem objects |> : |> to menubars. I want to know how to append a menu item to |> : |> the far right of a menubar. It seems that Menu automatically |> : |> sticks a hglue() at the end of a given menubar. Thus, the |> : |> last menu item can never be right justified. |> : |> : Put a menu item containing a piece of hglue(fil, 0, fil) before the right-adjusted items. |> : By making the natural size infinite, you force the box to shrink this glue |> : instead of stretching the glue at the end of the menu bar. |> |> Seems like what you really want is a subclass of Menu. Or at least |> an hbox. Then you can have three menubar segments, the middle one |> being empty. If you are suggesting the use of two different menubars, that won't look right because of the framing. There is no need for subclassing. The infinite glue trick works great and is a general way to mix right-adjust with right padding.
Technical Details
Message-ID:
<1if5bmINN905@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!lintonReferences:
<1icvprINNlll@fido.asd.sgi.com> <C0EJFq.JFC@fc.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Newsgroups: comp.windows.interviews Subject: Re: Menubars and FieldEditors Date: 6 Jan 1993 17:36:54 GMT Organization: sgi Lines: 21 Distribution: world Message-ID: <1if5bmINN905@fido.asd.sgi.com> References: <1icvprINNlll@fido.asd.sgi.com> <C0EJFq.JFC@fc.hp.com> Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) NNTP-Posting-Host: marktwain.rad.sgi.com