1. SCREEN SIZE ISSUE

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)


new topic     » topic index » view message » categorize

2. Re: SCREEN SIZE ISSUE

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu