Re: Win32Libv50: How make window invisible (initially?)?
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Sep 27, 2000
- 504 views
> 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