class XGEditText

Declared in <XTextControls.h>
Declared from XGView

And this is my standard edit control


Universal Internal Support

XGEditText::CanInsertKey
XGEditText::DeleteChar
XGEditText::DoActivate
XGEditText::DoClear
XGEditText::DoCopy
XGEditText::DoCut
XGEditText::DoMouseDown
XGEditText::DoMouseMove
XGEditText::DoMouseUp
XGEditText::DoPaste
XGEditText::DrawContents
XGEditText::DrawTextFrame
XGEditText::GetTitle
XGEditText::HitDetect
XGEditText::InsertChar
XGEditText::IsSpecialKey
XGEditText::LoseFocus
XGEditText::RecalcScroll
XGEditText::ScrollInRange
XGEditText::SetTitle
XGEditText::ValidateText
XGEditText::XGEditText
XGEditText::~XGEditText
XGEditText:DoDrawView
XGEditText:GainFocus


Universal Internal Support

XGEditText::CanInsertKey

Usage: bool XGEditText::CanInsertKey(char c)

Can this key be inserted? By default use the attributes that were passed to me

XGEditText::DeleteChar

Usage: void XGEditText::DeleteChar()

Delete a character

XGEditText::DoActivate

Usage: void XGEditText::DoActivate(bool)

Handle activation/deactivation (if this thing has the focus)

XGEditText::DoClear

Usage: void XGEditText::DoClear()

Handle clear operation. This is almost like the DeleteChar() routine above.

XGEditText::DoCopy

Usage: void XGEditText::DoCopy()

Handle copy operation

XGEditText::DoCut

Usage: void XGEditText::DoCut()

Handle cut operation

XGEditText::DoMouseDown

Usage: bool XGEditText::DoMouseDown(Point where,short flags)

Handle clicks in this thing

XGEditText::DoMouseMove

Usage: void XGEditText::DoMouseMove(Point where,short flags)

Handle the mouse move event

XGEditText::DoMouseUp

Usage: void XGEditText::DoMouseUp(Point,short)

Handle mouse up

XGEditText::DoPaste

Usage: void XGEditText::DoPaste()

Handle paste operation

XGEditText::DrawContents

Usage: void XGEditText::DrawContents(XGDraw&draw)

Draw the contents

XGEditText::DrawTextFrame

Usage: void XGEditText::DrawTextFrame(XGDraw&draw,Rect r)

This draws the frame around the edited text

XGEditText::GetTitle

Usage: void XGEditText::GetTitle(char*text)const

Get the text from this thing

XGEditText::HitDetect

Usage: short XGEditText::HitDetect(XGDraw&draw,short x)

Handle hit detection

XGEditText::InsertChar

Usage: void XGEditText::InsertChar(char c)

Insert a character

XGEditText::IsSpecialKey

Usage: bool XGEditText::IsSpecialKey(char c)

This determines the 'special keys'--those keys which are passed up to the containing view. By default, these are the enter key and the tab key

XGEditText::LoseFocus

Usage: void XGEditText::LoseFocus()

Lose the focus. This disables this thing

XGEditText::RecalcScroll

Usage: void XGEditText::RecalcScroll()

Recalculate the scroll boundaries; this calculates the number of pixels wide the text is

XGEditText::ScrollInRange

Usage: void XGEditText::ScrollInRange(void)

Scroll the selection into range

XGEditText::SetTitle

Usage: void XGEditText::SetTitle(const char*text)

Set the text in this thing

XGEditText::ValidateText

Usage: bool XGEditText::ValidateText(char*text)

Validate the input. Is this an appropriate input value? By default this transmits a message upwards. A return value of '1' means the text input is not valid.

XGEditText::XGEditText

Usage: Color XGDraw::ColorFromPalette(Color c)

Create this edit text box with the specified location

XGEditText::~XGEditText

Usage: XGEditText::~XGEditText()

No longer edit the text in here

XGEditText:DoDrawView

Usage: void XGEditText::DoDrawView(Rect)

Draw this thing

XGEditText:GainFocus

Usage: void XGEditText::GainFocus()

Gain the focus. This enables this thing