🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #757

Re: A beginners question!

#757
From: Mark Linton
Date: Fri, 16 Oct 1992 17:21
19 lines
1562 bytes
In article <prestonm.718900285@cs.man.ac.uk>, prestonm@cs.man.ac.uk (Martin Preston) writes:
|> I'm more or less sure that i'm missing something obvious here, but i can't
|> for the life of me work out how to position a pushbutton at an arbitrary
|> position on a canvas. 
|> 
|> I'm trying to create a canvas, on which there are both buttons & simple
|> graphics, and consequently i need a way to position the buttons in amongst
|> the graphics.
|> 
|> I can sort of see how i might get the same effect by creating a class with
|> my own redraw etc functions, but it seems a very elaborate way of getting a
|> simple effect.

Placement may depend on the size of the container or window.
If you want to define the position relative to the size, you can
use LayoutKit::center to set the button's lower-left position
relative to the window (0,0 is lower left; 1,1 is upper-right).
Alternatively, you can use LayoutKit::[hv]glue and boxes to define
the spacing for the position of your button.
Technical Details
Message-ID: <1bmtn9INN61i@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!linton
References: <prestonm.718900285@cs.man.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: A beginners question!
Date: 16 Oct 1992 17:21:45 GMT
Organization: sgi
Lines: 19
Distribution: world
Message-ID: <1bmtn9INN61i@fido.asd.sgi.com>
References: <prestonm.718900285@cs.man.ac.uk>
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
NNTP-Posting-Host: marktwain.rad.sgi.com
Keywords: beginners, confused, buttons, positioning