🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1611

Re: Menubars and FieldEditors

#1611
From: Mark Linton
Date: Tue, 05 Jan 1993 21:49
23 lines
1474 bytes
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.

|> 2) I'm also having problems with the FieldEditor.  I noticed that
|> a previous posting mentioned this problem, but I never found the
|> solution.  Below is a reprint of the problem.

The problem is that picks go through the margins and frames.
Try putting a primitive target behind the dialog to catch all picks,
e.g.,

    layout->back(
        kit->inset_frame(...),
        new Target(nil, TargetPrimitiveHit)
    )
Technical Details
Message-ID: <1icvprINNlll@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!fido!marktwain.rad.sgi.com!linton
References: <810@mesrx.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: Menubars and FieldEditors
Message-ID: <1icvprINNlll@fido.asd.sgi.com>
Date: 5 Jan 93 21:49:47 GMT
References: <810@mesrx.UUCP>
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 23
NNTP-Posting-Host: marktwain.rad.sgi.com