TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: SIMON HUGGINS
date: 1997-04-24 20:26:00
subject: Owner draw listboxes

Hi All,
I hope someone can help me with this:
I have managed to create code which deals with putting items wider than the
list box onto two lines but not yet managed to get this working for more
than that. i.e. to recognise how many then loop through for each one.
I tried to set the height variable passed in OnmeasureItem and then inspect
it in OnDrawItem but it didn't work :(
Is there any good reason why OnDrawItem can't be empty?
Is there a much more elegant solution (there must be somewhere)
bfn,
si.
Fido : 2:440/7.15   or   Internet : huggie@dial.pipex.com
Web  : http://dialspace.dial.pipex.com/huggie
.!. 2 psychics walk into a bar. One says "I'll have the same"
--- Terminate 4.00/Pro
---------------
* Origin: How do *YOU* define normal? (2:440/7.15)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.