Analyze This

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

Can someone explain to me why the list box on a bound/shrouded program is
a difference vertical length than when not bound/shrouded? When bound it
contains 11 rows of items and not bound it has 10 rows of items. Here's the
statement which creates the list box. Using win32 by the way.

constant    idList = create(List,"",Main,4,cy*19-tint(cy/2),
                           cx*80+4,cy*10,WS_SCROLLBARS)


The 'cy*10' should set the number of rows to 10 which it does when not 
bound. 'cy' is the vertical height of a character as returned by the
function getFontSize.

setFont(Screen, "Courier New", fs, Normal)
    charSize = getFontSize(Screen)

    cx = charSize[1]
    cy = charSize[2]


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

Search



Quick Links

User menu

Not signed in.

Misc Menu