Re: list box question

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

George Walters wrote:
> 
> Thanks for the help but that didn't work. I got "ResultsLV" not found. Must be
> something
> in 60.x and
> I'm using 59.1... This is what I'm using(completely imperical) that is usually
> close.
> 	tmp = getExtent(idList)
> 	nbrLines = int(tmp[2]/(fontHeight+1) - 1)
> 

If you cant use that this >should< be universal...

1) get the client rectangle
2) use upper left point with sendMessage [LB_ITEMFROMPOINT] for 1st line#
3) use bottom right point with sendMessage [LB_ITEMFROMPOINT] for 2nd line#
4) subtract 1st line# from second line# and add 1 for total

Sorry, would give a complete code snip or function but I dont have the
time right now... :/


Don Phillips - aka Graebel
     National Instruments
     mailto: eunexus @ yahoo.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu