Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

textBox.h

Go to the documentation of this file.
00001 /* ***********************************************************************************
00002         Writer:         Sebastien Bloc
00003         Copyright:      2003-2004
00004         eMail:          sebastien.bloc@free.fr
00005         URL:            http://mignonsoft.free.fr
00006 
00007         This program is free software; you can redistribute it and/or
00008         modify it under the terms of the GNU General Public License
00009         as published by the Free Software Foundation; either version 2
00010         of the License, or (at your option) any later version.
00011 
00012         This program is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU General Public License for more details.
00016         http://www.gnu.org/copyleft/gpl.html
00017 *********************************************************************************** */
00018 
00023 #ifndef INCLUDE_TEXT_BOX_H
00024 #define INCLUDE_TEXT_BOX_H
00025 
00026 #include "TextTexture.h"
00027 
00028 class EventTextBox
00029 {
00030 public:
00031         signal2<int,int> setCursor; 
00032         signal0<> change; 
00033 };
00034 
00038 class TextBox : public Control
00039 {
00040 public:
00041         BOOL isReadOnly;
00042         EventTextBox onTextBox;
00043         Text3D text;
00044 
00045         TextBox();
00046         ~TextBox();
00047         virtual void Create() { Create(DEFAULT_DEPTH_TEXTBOX); } // Createur pour container
00048         virtual void Create(double depth);
00049         void ToString(MyString &str);
00050         void SetCursor(int column,int line); // le curseur a ete positionner
00051         void operator=(char *newText);
00052         void SetText(char *newText);
00053 
00054         int OnLButtonDown(StateMouse *mouse,int face); // on a clicker sur le control ==> curseur a l'emplacement de la souris
00055         int OnLButtonUp(StateMouse *mouse,int face); // on a clicker sur le control ==> curseur a l'emplacement de la souris
00056         int OnOverIn(Control *oldControl,int face);
00057 };
00058 
00059 #endif

Generated on Fri Aug 20 19:19:50 2004 for 3d Controls by doxygen 1.3.6