🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1559

Re: SDK scrolling lists with fixed width fonts?

#1559
From: Bill Ives
Date: Wed, 06 Mar 1991 16:12
18 lines
1151 bytes

     In response to your question about column positioning of
     text in list controls w.r.t variable width fonts.
     I had the same problem and ended up resorting to the
     owner draw list box control.  There, your application does the
     text drawing in response to the WM_DRAWITEM (?) message.
     You can then use TextOut and SetTextAlign (?) to align your
     listing text in column format with variable sized font -- you
     can even select a different font to TextOut if that suits
     you too.  I don't have my manuals here at work so the above
     names may not be exactly right, but hey, you get the idea....


     Hope this helps
     Bill Ives
     HP CTD
     #include <std-disclaimer-here>
Technical Details
Message-ID: <31780001@hpctdls.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hp-col!hpctdlb!hpctdls!wei
References: <1991Mar4.162732.18183@ecn.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hp-col!hpctdlb!hpctdls!wei
From: wei@hpctdls.HP.COM (Bill Ives)
Newsgroups: comp.windows.ms.programmer
Subject: Re: SDK scrolling lists with fixed width fonts?
Message-ID: <31780001@hpctdls.HP.COM>
Date: 6 Mar 91 16:12:24 GMT
References: <1991Mar4.162732.18183@ecn.nl>
Organization: Hewlett-Packard CTD, Colo. Spgs.
Lines: 18