2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* TextBox.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Controls::TextBox definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_TEXTBOX_
|
|
|
|
#define _SYSTEM_WINDOWS_CONTROLS_TEXTBOX_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Windows/Controls/Control.h>
|
|
|
|
#include <System/String.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
namespace Controls
|
|
|
|
{
|
|
|
|
class TextBox : public Control
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int selectionLength;
|
|
|
|
int selectionStart;
|
|
|
|
String _text;
|
|
|
|
|
|
|
|
public:
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Gets a value that determines if the user can change the text in the text box.
|
|
|
|
*/
|
|
|
|
bool getIsReadOnly() const;
|
|
|
|
/**
|
|
|
|
* Sets a value that determines if the user can change the text in the text box.
|
|
|
|
*/
|
|
|
|
void setIsReadOnly(const bool value);
|
|
|
|
|
|
|
|
static const DependencyProperty<bool> IsReadOnlyProperty;
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
String getSelectedText() const;
|
|
|
|
String getText() const;
|
|
|
|
void setText(const String& value);
|
|
|
|
|
|
|
|
TextBox();
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
void Select(const int start, const int length);
|
|
|
|
void SelectAll();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_TEXTBOX_
|