[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

3353.0. "modifications in a list box" by TLSE01::SCHLUMBERGER (Marc SCHLUMBERGER, WS-VMS-Ultrix Conslt) Tue Sep 18 1990 09:44

    Developping an application for a large customer we are trying to
    present a record of more than 100 characters in a list box.
    
    We need to supply the following request:
    
    The customer may click an item record in the list box.
    We must slip it in simple text widgets to allow a modification
    on some part of the record. 
    After a validation pass they may be append and we may overwrite(if
    it is possible) the record selected in the listbox by the new one.
    
    Does someone could give us an example of who to keep the item position
    in the list box, overwrite and refresh the listbox.
    
    Thanks for yours answers.
    
    That's all for today.
    
    Marc
T.RTitleUserPersonal
Name
DateLines
3353.1MARX::BARLOWWed Sep 19 1990 15:4714
    
    I can give you a few pointers.  You can use XtGetValues to
    get DwtNselectedItems and DwtNselectedItemsCount.  This gives
    you a **DwtCompString struct which contains DwtNselectedItemsCount 
    of entries.  They are in the order that they were added to the
    list box.  You could use this to get both theDwtCompString that's
    printed in the ListBox and the position.  You can use the position
    later in DwtListBoxDeletePos to remove the old entry.  Then use
    DwtListBoxAddItem, passing in the position, to add the new line
    back in.
    
    Hope that helps!
    Rachael Barlow
    
3353.2Your right ! ThanksTLSE01::SCHLUMBERGERMarc SCHLUMBERGER, WS-VMS-Ultrix ConsltMon Sep 24 1990 07:026
Thanks Rachael. It helps us. You applied your recommendations and it
    works as we need it !!
    
    Thanks a lot.
    
    Marc