13#if defined(__BORLANDC__)
17#if defined(OWL_SUPPORT_BWCC)
42 TransferBufferFieldType(tbftCharArray)
54 TransferBufferFieldType(tbftCharArray)
69 TransferBufferFieldType(tbftCharArray)
81 TransferBufferFieldType(tbftCharArray)
92 TransferBufferFieldType(tbftCharArray)
113#if defined(OWL_SUPPORT_BWCC)
136 CHECKX(
false,
_T(
"TStatic::Transfer: Unknown field type."));
160 return TextLimit *
sizeof(
tchar);
186#if OWL_PERSISTENT_STREAMS
195 is >> GetObject()->TextLimit;
204TStatic::Streamer::Write(opstream&
os)
const
207 os << GetObject()->TextLimit;
Definition of class TApplication.
Legacy support for Borland Windows Custom Controls (BWCC)
#define CHECKX(condition, message)
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
The tagSIZE struct is defined as.
An interface object that represents a static text interface element.
tstring GetText() const
String-aware overload.
void SetTransferBufferFieldType(TTransferBufferFieldType)
TTransferBufferFieldType TransferBufferFieldType
TStatic(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, uint textLen=0, TModule *=nullptr)
Constructs a static control object with the supplied parent window (parent), control ID (Id),...
void SetText(LPCTSTR str)
Sets the static control's text to the string supplied in str.
TTransferBufferFieldType GetTransferBufferFieldType() const
void EvSize(uint sizeType, const TSize &size)
Overrides TWindow's virtual EvSize function.
virtual void Clear()
Clears the text of the associated static control.
auto GetWindowClassName() -> TWindowClassName override
Returns the name of TStatic's registration class (STATIC)
auto Transfer(void *buffer, TTransferDirection) -> uint override
TWindow override Transfers TextLimit characters of text to or from a transfer buffer pointed to by bu...
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
void DisableTransfer()
Disables (for the interface object) the transfer mechanism, which allows state data to be transferred...
void EvSize(uint sizeType, const TSize &size)
Response method for an incoming WM_SIZE message.
virtual void Invalidate(bool erase=true)
Invalidates (mark for painting) the entire client area of a window.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
void ReadBaseObject(Base *base, ipstream &in)
#define IMPLEMENT_STREAMABLE1(cls, base1)
void WriteBaseObject(Base *base, opstream &out)
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
@ tdSizeData
Return the size of data transferred by the class.
@ tdSetData
Set data from the buffer into the window.
@ tdGetData
Get data from the window into the buffer.
Object Windows Library (OWLNext Core)
Definition of class TStatic, the class for static controls and base for any control that manages simp...