Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# AbstractEdit.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004 #ifndef ABSTRACT_H
    00005 #define ABSTRACT_H
    00006
    00007 #include "Control.h"
    00008
    00009 namespace wkgl {
    00010
    00014 #define SINGLE WS_EX_CLIENTEDGE
    00015
    00019 #define MULTI  0
    00020
    00024 #define ALIGN_CENTER ES_CENTER
    00025
    00029 #define ALIGN_LEFT   ES_LEFT
    00030
    00034 #define ALIGN_RIGHT  ES_RIGHT
    00035
    00065 class AbstractEdit : public Control
    00066 {
    00067   protected:
    00068     UINT text_limit;
    00069     LFLAG align;
    00070
    00074     AbstractEdit( SFLAG type, int w, int h,
    00075                     int x = AUTOPOS, int y = AUTOPOS,
    00076                     const char *def_text = NULL);
    00077   public:
    00081     virtual UINT getMaxCharCount();
    00082
    00086     virtual void setMaxCharCount( UINT count );
    00087
    00091     virtual void setHorizontalAlignment( LFLAG align );
    00092
    00096     virtual LFLAG getHorizontalAlignment();
    00097
    00101     virtual void numberOnly( BOOL num = TRUE );
    00102
    00106     virtual BOOL isNumberOnly();
    00107
    00111     virtual void lowercaseOnly( BOOL lower = TRUE );
    00112
    00116     virtual BOOL isLowercaseOnly();
    00117
    00121     virtual void uppercaseOnly( BOOL upper = TRUE );
    00122
    00126     virtual BOOL isUppercaseOnly();
    00127
    00133     virtual BOOL create( Control* parent );
    00134 };
    00135
    00136 }
    00137 #endif