Re: w32Edge vs. w32AltEdge
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 23, 2001
- 399 views
----- Original Message ----- From: "Jon Snyder" <jongsnyder at hotmail.com> To: "EUforum" <EUforum at topica.com> Subject: RE: w32Edge vs. w32AltEdge > > > Derek Parnell wrote: > > ----- Original Message ----- > > From: "Jon Snyder" <jongsnyder at hotmail.com> > > To: "EUforum" <EUforum at topica.com> > > Sent: Wednesday, August 22, 2001 5:09 AM > > Subject: w32Edge vs. w32AltEdge > > > > > > > In win32lib What is the difference between w32Edge and w32AltEdge? The > > > documentation doesn't make it very clear. When should i use one and > > > when should i use the other? > > > > Hi Jon, > > sorry about the poor docs. That is something that can always be > > improved. > > > > As you know, the create() function requires a top, left, width and > > height > > parameter. > > w32Edge refers to the "extreme" edge of the parent for the specific > > parameter. For the Left is means the leftmost edge, for Top it means the > > topmost edge, for Width it means the rightmost edge and for Height it > > means > > the bottommost edge. > > > > w32AltEdge is only meant to be used for the Left and Top parameters. In > > this > > case it refers to the "other" extreme edge. For Left this is the > > rightmost > > edge, for Top it means the bottommost edge. For the Width and Height > > parameters it is is identical to w32Edge. Maybe this should change? > > Derrek, > Thanks for the clarification, and the sample code. > > Maybe you should change it so that instead of putting {w32Edge, -20} one > could write {1, -20} the "1" translating to 100% of the window size. > The only problem with this is that if someone wanted to use 100% by > itself, it would just translate to one pixel. Maybe a constant that > means 100% would be better. Just a thought Well, w32Edge sort of does mean 100% for width and height parameters, which is what I'd meant it for anyway. I really didn't think it useful for the left and top parameters. Infact, now that I think it through a bit more, maybe we should get rid of w32AltEdge and just use w32Edge. For the left and top parameters, it would mean the 100% of the parent sizes and for the width and height is would 100% also. If no one complains about this, I'll get rid of w32AltEdge constant. ---- Derek.