[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

2314.0. "Retrieving Selected_Items from a List_Box Widget" by PHDVAX::LARSON () Tue Feb 20 1990 16:22

     We are trying to determine which items are selected in a List_Box
    Widget.
    
     We execute an XT_Set_Args and XT_Get_Values call to get the *NUMBER*
    of selected items (Selected_Items_Count). THis is retruned as a
    longword, no problem here...
    
     When we call XT_Set_Args and XT_Get_Values to obtain the actual
    list of selected items (Selected_Items), we get something back in
    the buffer, but the question is how to interpret it.
    
     Are the indices of the selected items returned?? If so, what is
    the format.
    
    Bill.
T.RTitleUserPersonal
Name
DateLines
2314.1List of compound stringsOPHION::MIKEYMike YangTue Feb 20 1990 17:322
    Getting the resource value of DwtNselectedItems yields a list of
    compound strings.
2314.2ASCII retrieval of compound stringsSUBWAY::FMILLERFrank Miller @ NYOWed Feb 21 1990 09:336
    
    	You  might also use the toolkit routines DwtInitGetSegment and
    DwtGetNextSegment to return the strings in a  format other than
    compound string (ie: ASCII).
    
    	Frank