🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

List boxes and Edit Windows - Common problem

#3191
From: Brett Alan Morrison
Date: Tue, 11 Jun 1991 17:39
22 lines
1190 bytes
Two questions:

Does anyone out there know how to justify text in a list box?  Like this:

------------------------------
|Item one 05/02/91           |    Any suggestions?  My problem is that
|Another item 05/02/91       |    everything is proportianally spaced.
|I wan't this        05/02/91|
|And this            05/02/91|
|                            |
------------------------------

Also, are there any generic routines out there for validating a numeric in
a one line edit window?  If the user enters a non-numeric character, I want
the bad character(s) to be highlighted and the cursor placed at the beginning.
This is a common method used by applications, but I'm not sure of the best
way to do it.

Thanks,

Brett A. Morrison
bam@cs.arizona.edu
Technical Details
Message-ID: <1565@caslon.cs.arizona.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!noao!arizona!bam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!noao!arizona!bam
From: bam@cs.arizona.edu (Brett Alan Morrison)
Newsgroups: comp.windows.ms.programmer
Subject: List boxes and Edit Windows - Common problem
Keywords: Help!
Message-ID: <1565@caslon.cs.arizona.edu>
Date: 11 Jun 91 17:39:10 GMT
Organization: U of Arizona CS Dept, Tucson
Lines: 22