[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

536.0. "List Box Question" by AIAG::SURESH (Suresh) Tue Apr 04 1989 15:48

 Cross Posted in DECWINDOWS Programming notesfile also

 I am trying to emulate some of the "file selection"  functionality. 
   The widget  hierarchy is like this

               Attached_db 
                 |
                 |
         -----------------------------------
         |       |                          |
        List    (Filter, OK, Cancel)       (Filter, Selection)
         Box     PushBs                      Text Widgets

 The List box contains application related information. To implement the 
 Filter Mechanism, I have done the following:-

1) The List Box startup info is a global list

2) When the user types something in the filter text widget and selects filter Pb
  I search the global string and delete the entries not matching the user input.
  In doing so, to avoid duplication, I check whether a particular entry is
   already in the list box by using the routine DwtlistBoxItemExists(wid, item).

 The problem is that this routine always returns false for the last item in the  
 list box (bottom entry of the list box). Has anyone faced similar problem?

 Actually, I don't like the way I am implementing the FILTER mechanism. Has 
 anyone got suggestions, I am  eager to hear them.

  

T.RTitleUserPersonal
Name
DateLines