[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

1171.0. "list box entry spacing" by SKYLRK::LOSCHEN () Tue Jul 25 1989 13:11

    I would like to know if there is some way to decrease the amount of
    space between lines in a list box.  I need to display many lines, 
    (> 10,000) and would like to see as many as possible on one page in 
    the list box.  I have tried setting DwtNspacing and  DwtNmarginHeight to 
    0, and tried using various font sizes, but there is still too much space 
    between entries - almost as though it were double spaced.  Also I have
    noticed that the highlighted "selection" bar seems very wide. Perhaps
    if there were some way to change the width of it, the spacing between
    entries would change as well.
    
    Thanks in advance
    
    Brent Loschen

T.RTitleUserPersonal
Name
DateLines
1171.1CB750C::BOLGATZTue Jul 25 1989 16:469
    DwtNspacing and DwtNmarginHeight listbox attributes are passed directly
    to the listbox menu (a listbox is simply a scroll window with a menu
    for its work area).  The reason there is still a fair amount of space
    between the entries is because each entry is a separate gadget.  And
    pushbutton gadgets do not support marginHeight.  Therefore, for V2
    atleast, what you see is what you get...
    
    Jay

1171.2SMAUG::FLOWERSIBM Interconnect Eng. 226-7716Wed Jul 26 1989 09:385
Wow.  >10,000 lines in one listbox?  Have you checked out the Vlist widget?
It would let you display entries across also...just a thought.

Dan

1171.310,000 lines seems a bit much for a listbox...JER::HARROWPOSIX what?Wed Jul 26 1989 09:5213
Another thought might be to check out the SVN widget (press KP7 to add the
conferece to you notebook).  It might be applicable because it has a couple
nice navigation aids: an index window during scrolling, and you set special
indexed entries that you can jump to using an additional pair of scroll buttons.

I would think that the overhead for SVN would be less than having the 10,000
gadgets that the list box is going to create.

If your 10,000 entries have any type of hierarchy then I would strongly 
recommend that you take a look at SVN.

-Jer

1171.4LEOVAX::TREGGIARIWed Jul 26 1989 10:3313
> I would think that the overhead for SVN would be less than having the 10,000
> gadgets that the list box is going to create.

The list box only creates enough gadgets for the number of *visible* entries.
It changes the labels of these gadgets as needed when you scroll.

> If your 10,000 entries have any type of hierarchy then I would strongly 
> recommend that you take a look at SVN.

I agree.

Leo

1171.5What about patents & Motif??SKYLRK::LOSCHENWed Jul 26 1989 13:0212
    After reading the documentation for the SVN widget it sounds like it
    would be a much better solution.  However, I also saw a note about a
    possible patent on the thing, and not to mention it to anyone outside
    DEC.  The date on the note was early 1988.  Is it still true?  Any
    chance of Motiff including it?  The customer I am working with will
    host the software on many platforms and has decided to use Motif - any
    suggestions???
    
    Thanks again,
    Brent
    

1171.6SKYLRK::LOSCHENWed Jul 26 1989 13:1810
    I should have put this in .5, but I forgot.   Regarding .2,  what is a
    vlist widget?  I saw the documentation on the viewport and vpaned
    widget, but not a vlist.  Also, what type of widget does bookreader
    use?  I like the way the viewing area shrinks and scrolls a much smaller
    window.  That would work well for my > 10,000 list.
    
    
    Brent
    

1171.7SVN = internal onlyR2ME2::GRASSSteve GrassWed Jul 26 1989 13:446
SVN is STILL an internal-only widget (along with GObE and NetEd).  We are
formulating a plan for the distribution of these widgets to customers, but for
now, they're for the use of DEC products only.

				steve

1171.8Where to find the VList widgetDECWIN::KLEINWed Jul 26 1989 16:3010
See ELKTRA::DW_EXAMPLES, note 50 for the VList widget.  This widget is
available in source form and may be given to customers (with the appropriate
"this is now yours" message).  I have a variant of the VList widget that
was optimized for very large (> 1000) lists and avoids sequential scans
through the list (at the expense of a limited add/remove entry capability).

Take a look at the sample program provided with the widget sources.

-steve-

1171.9Bookreader slider?SKYLRK::LOSCHENThu Jul 27 1989 13:3812
    I would like to thank everyone who gave me pointers and suggestions.  I
    now have several possible solutions.  I will code them up and let the 
    customer decide which is best.
    
    
    I am still curious to know what bookreader uses to make that slider
    shrinke the size of the scroll window down to a few lines for rapid
    navigation through the list.  Can anyone enlighten me?
    
    Thanks again,
    Brent