SCREEN SIZE ISSUE

new topic     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu