home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cl-lib07.zip / pm.zip / usr / include / pm / button.h < prev    next >
C/C++ Source or Header  |  1995-06-27  |  862b  |  49 lines

  1. #ifndef _BUTTON_H_
  2. #define _BUTTON_H_
  3.  
  4. #ifndef _FACTORYWINDOW_H_
  5. #include <pm/FactoryWindow.h>
  6. #endif
  7.  
  8. #ifndef _COMMANDLIST_H_
  9. #include <pm/CommandList.h>
  10. #endif
  11.  
  12. @interface Button : FactoryWindow <Archiving>
  13. {
  14.   Command command;
  15. }
  16.  
  17. - initWithId: (ULONG) anId andFlags: (ULONG) flags in: (Window *) parent;
  18.  
  19. // methods for access to PM messages
  20. - clickdown;
  21. - clickup;
  22. - (USHORT) checked;
  23. - (BOOL) highlighted;
  24. - check;
  25. - checkIndeterminate;
  26. - uncheck;
  27.  
  28. - setTarget: aTarget;
  29. - setAction: (SEL) anAction;
  30.  
  31. - bindWith: anObject selector: (SEL) aSel;
  32.  
  33. - (MRESULT) handleMessage: (ULONG) msg
  34.             withParams: (MPARAM) mp1 and: (MPARAM) mp2;
  35.  
  36. /*
  37.  * Methods for protocol "Archiving"
  38.  */
  39.  
  40. - read: (TypedStream *) aStream;
  41. - write: (TypedStream *) aStream;
  42. - awake;
  43.  
  44. - createInPMWindow: (HWND) hwnd;
  45.  
  46. @end
  47.  
  48. #endif
  49.