Is it possible to calculate the needed listbox-height
to show ALL items without using a scrollbar ?
I tested to calculate the row-height with the defined font
and 5 and 10 items but getting no exact results
.............
nRowHeight := oListFont:nHeight + 4.8 // font-height + top and bottom-space
nBrwHeight := nRowHeight * LEN( aItems ) // tested with 10 and 5 items
@ 5, 5 LISTBOX oLbx VAR cItem ITEMS aItems ;
SIZE nBrwWidth, nBrwHeight PIXEL OF oDlg
the total height
nDlgHeight := nBrwHeight + 45 ( extra space for the defined button )
-------------
regards
Uwe