home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KLSTHDR.CPP < prev    next >
C/C++ Source or Header  |  1994-04-18  |  383b  |  18 lines

  1. #include <klsthdr.hpp>
  2. #include <iselhdr.hpp>
  3. #include <icmdevt.hpp>
  4. #include <ilistbox.hpp>
  5. #include <itextctl.hpp>
  6. #include <istring.hpp>
  7.  
  8. Boolean KListHandler::selected(IControlEvent &event)
  9. {
  10.    if (target)
  11.    {
  12.       IListBox *listBox = (IListBox *)event.controlWindow();
  13.       target->setText(listBox->itemText(listBox->selection()));
  14.    }
  15.    return false;
  16. }
  17.  
  18.