home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / UI / PopupList.h < prev   
C/C++ Source or Header  |  2000-06-03  |  931b  |  47 lines

  1. //
  2. //  $Id: PopupList.h,v 1.1.1.1 2000/06/02 22:23:01 sergey Exp $
  3. //
  4.  
  5. #ifndef _PopupList_h_
  6. #define _PopupList_h_
  7.  
  8. #include "List.h"
  9. #include "ConcreteFormObject.h"
  10.  
  11.  
  12. namespace UI
  13. {
  14.     // Defines trigger object as a form element
  15.     typedef ConcreteFormObject<ControlPtr, frmControlObj>  ListTrigger;
  16.  
  17.  
  18.     //
  19.     //  List control with the Popup Trigger
  20.     //
  21.     class PopupList: public List
  22.     {
  23.     public:
  24.         PopupList(Form& parent, Word triggerID, Word listID);
  25.         ~PopupList();
  26.  
  27.     private:
  28.         PopupList(const PopupList& other);
  29.         PopupList& operator =(const PopupList& other);
  30.  
  31.     // operations
  32.     public:
  33.         void setSelection(int index);
  34.  
  35.     // attributes
  36.  
  37.         const ListTrigger& trigger() const { return _trigger; }
  38.  
  39.     // data members
  40.     private:
  41.         mutable ListTrigger _trigger;
  42.     };
  43. }
  44. // namespace UI
  45.  
  46. #endif // _PopupList_h_
  47.