13#if defined(__BORLANDC__)
17#if defined(OWL_SUPPORT_BWCC)
40:
TControl(parent, id, title, x, y, w, h, module),
44 Attr.Style = (Attr.Style | SS_LEFT) & ~WS_TABSTOP;
52:
TControl(parent, id, title, x, y, w, h, module),
56 Attr.Style = (Attr.Style | SS_LEFT) & ~WS_TABSTOP;
67:
TControl(parent, resourceId, module),
79:
TControl(parent, resourceId, title, module),
113#if defined(OWL_SUPPORT_BWCC)
128 n = TransferCharArray(buffer, direction);
132 n = TransferString(buffer, direction);
136 CHECKX(
false,
_T(
"TStatic::Transfer: Unknown field type."));
154 if (!buffer && direction !=
tdSizeData)
return 0;
160 return TextLimit *
sizeof(
tchar);
166 if (!buffer && direction !=
tdSizeData)
return 0;
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.
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
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 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...
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
virtual auto GetWindowClassName() -> TWindowClassName
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.
HWND THandle
TWindow encapsulates an HWND.
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)
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).
IMPLEMENT_STREAMABLE1(TApplication, TModule)
Definition of class TStatic, the class for static controls and base for any control that manages simp...