[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2747.0. "Trouble with list boxes" by CADSE::NORMAN () Thu May 10 1990 17:43

I have a couple of problematic list boxes. The first displays
only so many characters of an entry. I am assuming that the
entire string exists because the entry hazes out on half of
the last character to display in the entry. 

I have another list box with a horizontal scroll bar. When I try
to use the scroll bar it moves the display properly but very slowly.

Both of these list boxes were coded in UIL and each exists in
a separate popup attached dialog box.

I would appreciate any input on these problems - especially the
first.

			Paul Norman
T.RTitleUserPersonal
Name
DateLines
2747.1list box bugR2ME2::OBRYANThu May 10 1990 19:2923
re:.0

In response to your first question:
>   The first (listbox) displays only so many characters of an entry...
>   these list boxes were coded in UIL ...in a separate popup attached db

I assume that the list_box in question is attached both left and right (i.e.
no fixed width) and that you have not supplied the list_box with a default
items list.  What you are seeing is a list_box resize problem.  The list_box
creates itself with a certain default width (no width supplied.)  Then the
ADB comes along and tells the list_box (after creation) to size itself to
a certain width dictated by its attachments.  Although the bounding scroll
window of the list_box is sized properly, the list_box work area has NOT been
resized.  Thus, the strings appear truncated when they become visible.

The work around is to supply the list_box (in its UIL declaration) with an
items list containing a "wide" string, wide enough to encompass any forseen
entry size in that list_box.  After the list_box is fetched, kill the "wide"
contents (or the wide entry.)

Good luck
Michael