TIP: Click on subject to list as thread! ANSI
echo: delphi
to: LARS SKOVLUND
from: SIMON HUGGINS
date: 1997-05-23 17:16:00
subject: Owner draw listboxes

Hi Lars,
On Sunday, 18 May 1997 at 11:42:26, Lars Skovlund confused me
talking about: Owner draw listboxes to Simon Huggins
 SH>> Height:=drawtext( hwnd(control), t, -1, r ,
 SH>> DT_WORDBREAK+DT_CALCRECT);
 LS> I'm not sure about this, I don't use Delphi much, but
 LS> shouldn't you use Control.Handle instead of just Control in
 LS> the above line - and the same in the DrawItem handler?
I used:
(control as Tlistbox).canvas.handle
in the end and IT WORKS !!!
:-)
bfn,
si.
Fido : 2:440/7.15   or   Internet : huggie@dial.pipex.com
Web  : http://dialspace.dial.pipex.com/huggie
.!. Cannot understand tagline (A)bort (R)etry (L)augh anyway
--- Terminate 4.00/Pro
---------------
* Origin: Fou, con et anglais! (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™.