Re: [Win32Lib] Control Heights Inconsistency
- Posted by Greg Haberek <g.haberek at comcast.net> Oct 10, 2003
- 426 views
if you do this: LB = create( List, "", Parent, 10, 10, 100, 100, LBS_NOINTEGRALHEIGHT ) then your list box will stick to whatever height you give it, if you want 170, so be it. when a list box uses "integral height" it rounds down the height to the maximum number of elements that may be show in your given height. using no "integral height" will allow the excess to flow over, showing half of an item or white space. ~Greg ----- Original Message ----- From: "C. K. Lester" <euphoric at cklester.com> To: "EUforum" <EUforum at topica.com> Sent: Friday, October 10, 2003 4:36 PM Subject: Re: [Win32Lib] Control Heights Inconsistency > > > > > I always thought it was Judith's IDE causing this problem, but now I > think > > > it's with Win32Lib... > > > Notice how both controls (rich edit and list) are created as height 170, > > > but only one renders that way. > > > Unless you're using LBS_NOINTEGRALHEIGHT as one of its parameters, any > list > > will auto-size to the closest number of lines that fit what-ever font's > > bein' used... > > Well that's good to know... Although if I specify a height of 170, I want a > height of 170... no more no less. > > --^---------------------------------------------------------------- > This email was sent to: g.haberek at comcast.net > > > TOPICA - Start your own email discussion group. FREE! > >