I'm doing a nifty menu form using a listbox control to
display the records the user has searched for (seems
faster in the latest version!).

I'm using the list box control with Show Lines turned
on so that the columns align properly.  The display
looks nice.

My problem is that the column widths seem to change
depending on what data is displayed.  When I display
All Records, the last name column is quite wide.  When
I display only the Smiths, the last name column is
somewhat narrower.  Presumabely the column widths are
being determined by the largest data in the current
set of listbox records.

The problem is that I have captions for the columns
along the top of the list box.  When one of the
columns shrinks up the captions no longer align with
the column tops.

I'd like the columns to remain some fixed length. 
Since the underlying data is all fixed length TEXT
fields, the control could figure out the length from
that information.

Failing that, I could probably move my captions around
if I could extract the column widths, in pixels, from
the listbox control.

Does anyone know a way to fix the column widths so
they don't change or extract the current column widths
from the listbox control?
--
Larry

Reply via email to