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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3353.1 | MARX::BARLOW | Wed Sep 19 1990 15:47 | 14 | ||
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.2 | Your right ! Thanks | TLSE01::SCHLUMBERGER | Marc SCHLUMBERGER, WS-VMS-Ultrix Conslt | Mon Sep 24 1990 07:02 | 6 |
Thanks Rachael. It helps us. You applied your recommendations and it works as we need it !! Thanks a lot. Marc |