Re: Win32Libv50: How make window invisible (initially?)?

new topic     » goto parent     » topic index » view thread      » older message » newer message

I was thinking of being able to specify sizes and coordinates in terms
relative to its owner. For example...

myEditBox = create(MleText, "", theWindow, 0.20, 0.1, .75, .5, 0)

Where the numbers < 1 represent percentages of the Window sizes. These could
then be mapped to real pixel sizes during a WM_RESIZE and WM_CREATE
messages.

----
cheers
Derek.

----- Original Message -----
From: "Matthew Lewis" <MatthewL at KAPCOUSA.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, September 28, 2000 7:20 AM
Subject: Re: Win32Libv50: How make window invisible (initially?)?


> > From: Brian Broker
> >
> > What kind of routines are you looking for?  I've created quite a few
> > already, like my centerwin.ew lib for centering a window in
> > the desktop
> > workspace.  I plan on integrating those into Win32Lib (as I
> > suggested in an
> > earlier post, e.g. getClientRect( Screen ) should return what
> > my getWorkarea
> > () function returns) and submitting the changes to Derek.  Or are we
> > looking for an add-on lib?
> >
>
> I'm not really sure, but I suspect that what I have in mind would probably
> be better off as an add-on.  I wasn't very clear, though.  What I'm really
> after is a way to size and position all of the controls within a window,
> resize the fonts, etc.  Then, rather than supplying absolute coordinates
for
> the x,y and the size parameters for create(), there would be a call to
> getSystemMetrics() or something, and the parameters would be resolved by
> function calls or something:
>
> include win32lib.ew
> include winsize.ew  -- here's the add-on lib
>
> constant
> Win = create(Window, "Test", 0, 0, 0, screenPctX( 50 ),screenPctY( 50), ),
> MyLabel = create( RText, "MyLabel", Win, winPctX( Win, 5 ), winPctY( Win,
10
> ), winPctX(Win,10), winPctY(Win, 4), 0)
> ...
> etc
>
> The hardest part of this is figuring out what sort of API to use.  Once
> that's done, it should be pretty easy to write the rest.  I just haven't
> come up with something that seems like a good idea.
>
> Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu