summaryrefslogtreecommitdiff
path: root/widgettextfield.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
commitdfa4a46bb0e6c6df9d07039fda5ef7f4309915b2 (patch)
treeac8b4cc67ff64703b4298f077e87bb4eb4334410 /widgettextfield.h
parent3582a80243bdd92619e737111ada5b5bf2667cd7 (diff)
git-svn-id: svn://mattst88.com/svn/skygipp/trunk@2 a71248a0-261a-0410-b604-901f7c0bd773
Diffstat (limited to 'widgettextfield.h')
-rw-r--r--widgettextfield.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/widgettextfield.h b/widgettextfield.h
new file mode 100644
index 0000000..c1208f0
--- /dev/null
+++ b/widgettextfield.h
@@ -0,0 +1,94 @@
+#ifndef WIDGETTEXTFIELD_H
+#define WIDGETTEXTFIELD_H
+
+#include <skygi/skygi.h>
+
+#include "widget.h"
+
+//! A Textfield class
+
+class CTextfield: public CWidget {
+ public:
+ /*! Constructor */
+ CTextfield();
+
+ /*!
+ Create Textfield
+
+ \param parent HANDLE of the parent window on which to draw
+ \param name Name of the Textfield
+ \param x Top left x coordinate
+ \param y Top left y coordinate
+ \param w Form width
+ \param h Form height
+ \param style Style flags
+
+ \return Success: S_OK\n
+ Failure: E_HANDLE
+
+ \see GetParent()
+ */
+ HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style);
+
+ /*!
+ Adds text without a trailing newline
+
+ \param line Text to add
+
+ \see AddLine()
+ */
+ HRESULT Add(char * line);
+
+ /*!
+ Loads a file
+
+ \param filename Name of file to load
+ */
+ HRESULT AddFile(char * filename);
+
+ /*!
+ Adds text with a trailing newline
+
+ \param line Text to add
+
+ \see Add()
+ */
+ HRESULT AddLine(char * line);
+
+ /*!
+ Clears all text
+ */
+ HRESULT DeleteText();
+
+ /*!
+ Redraw Textfield
+ */
+ HRESULT Redraw();
+
+ /*!
+ Turn on or off password mode
+
+ \param passwordmode Password Mode
+ */
+ HRESULT PasswordMode(bool passwordmode);
+
+ /*!
+ Turn on or off read only mode
+
+ \param readonly Read only mode
+ */
+ HRESULT ReadonlyMode(bool readonly);
+
+ /*!
+ Turn on or off single kine mode
+
+ \param singleline Single Line mode
+ */
+ HRESULT SingleLine(bool singleline);
+
+ HRESULT Undo();
+ HRESULT UndoAvailable();
+ HRESULT UndoReset();
+};
+
+#endif