1. SCREEN SIZE ISSUE
- Posted by George Walters <gwalters at sc.rr.com> Jan 28, 2005
- 435 views
I am trying to set the display list window wide enough to not have a horizontal scroll bar. It is several pixel's too small although the screen is plenty big enough and I don/t see why.
setFont(Screen, fontType, fs, Normal) charSize = getTextExtent(Screen,"ABCDEFGHIJ") cx = charSize[1]/10 cy = charSize[2] maxX = getSystemMetrics(SM_CXFULLSCREEN) maxY = getSystemMetrics(SM_CYFULLSCREEN) heightHorScroll = getSystemMetrics(SM_CYHSCROLL) widthVertScroll = getSystemMetrics(SM_CXVSCROLL) widthFrame = getSystemMetrics(SM_CXFIXEDFRAME) displayWidth = cx * reporttWidth screenWidth = min(displayWidth + widthVertScroll + 2*widthFrame, maxX)
2. Re: SCREEN SIZE ISSUE
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jan 28, 2005
- 416 views
- Last edited Jan 29, 2005
On Fri, 28 Jan 2005 06:32:36 -0800, George Walters <guest at RapidEuphoria.com> wrote: >I am trying to set the display list window wide enough to not have a horizontal >scroll bar. It is several pixel's too small although the screen is plenty big >enough >and I don/t see why. > charSize = getTextExtent(Screen,"ABCDEFGHIJ") try charSize = getTextExtent(Screen,"WWWWWWWWWW") (assuming you are not using a fixed width font) HTH, Pete