home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xtentry.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  1KB  |  32 lines

  1. #ifndef __OOL_XTIMEENTRYFIELD_H__
  2. #define __OOL_XTIMEENTRYFIELD_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XTimeEntryField                       */
  8. /*                       derived from: XEntryField                           */
  9. /*                        last update: 8/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xentry.h"
  15.  
  16. class XTime;
  17.  
  18. class _export_ XTimeEntryField: public XEntryField
  19. {
  20.    private:
  21.       BOOL checkTime;
  22.    public:
  23.       XTimeEntryField(const XWindow * owner, const XRect& rec= XRect(), const USHORT id = 0, const ULONG style= EN_BORDER | WIN_VISIBLE | EN_LEFT, const XTime * time=NULL, const char *font=NULL, BOOL checkT = TRUE);
  24.       void GetText( XString * s) const { XEntryField::GetText(s); }
  25.       BOOL GetText( XTime *) const;
  26.       void SetText( const char * s) { XEntryField::SetText(s); }
  27.       void SetText( const XTime *);
  28.       virtual void FocusChanged( BOOL set );
  29. };
  30.  
  31. #endif
  32.