home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / ClassFree / CFpumbuttonclass / CFpumbutton.doc next >
Text File  |  1998-06-09  |  1KB  |  55 lines

  1. Class:                  CFpumbuttonclass
  2. Author:                 Anders E. Andersen <andersa@fys.ku.dk>
  3. Superclass:             CFbuttonclass
  4. Desciption:             GadTools cycle gadget replacement
  5. Include File:           "CFpumbutton.h"
  6.  
  7.  
  8.  
  9. New Methods:
  10. ------------
  11.  
  12. None
  13.  
  14.  
  15. Changed Methods:
  16. ----------------
  17.  
  18. GM_GOACTIVE - Activates the button gadget by calling the
  19. supermethod, and open a window in which it draws the
  20. possible selections (using CFtexticlass).
  21.  
  22. GM_HANDLEINPUT - Checks if the pointer is over one of
  23. the images by cycling through them, calling IM_HITTEST
  24. for each image. It remebers which string is currently
  25. selected so it doesn't have to redraw all of them when
  26. the selection changes. Completely overrides the
  27. supermethod.
  28.  
  29.  
  30. GM_GOINACTIVE - Frees text images and closes the menu
  31. window, it then calls the supermethod.
  32.  
  33.  
  34.  
  35. Attributes:
  36. -----------
  37.  
  38.  All attributes are passed via supermethod. The
  39. following attributes are used by CFpumbuttonclass:
  40.  
  41. GA_Left, GA_Top, GA_Width, GA_Height
  42.  
  43.  Positions and sizes the button.
  44.  
  45.  
  46. CFPU_Labels
  47.  
  48.  A pointer to the first item in a null pointer
  49. terminated array of stringpointers which are the choices
  50. of the popup-menu button.
  51.  
  52. CFPU_Active
  53.  
  54.  The number of the currently active label.
  55.