Article View: comp.windows.ms.programmer
Article #553Re: Right aligned tabstops in a llistbox?
From: John TERRANOVA
Date: Fri, 09 Nov 1990 19:30
Date: Fri, 09 Nov 1990 19:30
30 lines
1656 bytes
1656 bytes
In article <1203@tau.sm.luth.se> d89-bfr@sm.luth.se (Bjorn Fahller) writes:
>
>I want to have a table in a listbox. The table looks someting like
>
>Itemname1 759 79 7484
>Itemname2 45 121 344
> etc etc etc
>
>I want to have the numbers right aligned, but I'd rather not use a fixed
>font. Can this be done? How?
I don't have the details on hand right now, but here is what I
know off the top of my head.
You can give the listbox the OWNERDRAWN style. This style
causes an application supplied callback routine to be
called to render each item in the list box. You can then
format the items any way you want.
This may not be the solution you're looking for, but it
should work.
>/Bjorn.
-----------------------+----------------------------+-------------------------
John Terranova | What the Hell do I know? | I speak/type for me
johnte@microsoft.uucp | I come from Waunakee! | and no one else.
-----------------------+----------------------------+-------------------------
"You look so good; you feel good, too. When they see you shake it, baby
everybody's gonna pay attention to you and you and you." --Gerard, Shake It
Technical Details
Message-ID:
<58952@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!johnteReferences:
<1203@tau.sm.luth.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!johnte From: johnte@microsoft.UUCP (John TERRANOVA) Newsgroups: comp.windows.ms.programmer Subject: Re: Right aligned tabstops in a llistbox? Keywords: ARRRGGG!!! Message-ID: <58952@microsoft.UUCP> Date: 9 Nov 90 19:30:21 GMT References: <1203@tau.sm.luth.se> Reply-To: johnte@microsoft.UUCP (John TERRANOVA) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 30