14#if defined(__BORLANDC__)
23static tchar countName[] =
_T(
"Count");
24static tchar valueName[] =
_T(
"Value");
45 TransferBufferFieldType(tbftCharArray)
55 TransferBufferFieldType(tbftCharArray)
61 return _T(
"History Lists\\");
89 int count =
section.ReadInteger(countName);
93 for(
int i = 0;
i < count;
i++)
124 section.WriteInteger(countName, count);
135 for(
int i = 0;
i < (
int)count;
i++)
188 CHECKX(
false,
_T(
"TMemComboBox::Transfer: Unknown field type."));
212 return TextLimit *
sizeof(
tchar);
229#if OWL_PERSISTENT_STREAMS
238 is >> GetObject()->Name;
239 is >> GetObject()->ItemLimit;
247TMemComboBox::Streamer::Write(opstream&
os)
const
250 os << GetObject()->Name;
251 os << GetObject()->ItemLimit;
#define CHECKX(condition, message)
#define DIAG_DECLARE_GROUP(group)
You can use TComboBox to create a combo box or a combo box control in a parent TWindow,...
virtual int GetString(TCHAR *str, int index) const
Retrieve the contents of the string at the passed index of list part of the associated combobox,...
void SetupWindow()
Limits the amount of text that the user can enter in the combo box's edit control to the value of Tex...
virtual int DeleteString(int index)
Deletes the string at the passed index in the associated list part of a combo box.
virtual int InsertString(LPCTSTR str, int index)
Insert a string in list part of the associated combobox at the passed index, returning the index of t...
virtual int AddString(LPCTSTR str)
Adds a string to an associated list part of a combo box.
void CleanupWindow()
Cleanup aliases created in SetupWindow.
virtual int GetCount() const
Return the number of entries in list part of the associated combobox.
virtual int SetSelIndex(int index)
Selects a string of characters in a combo box.
void Transfer(TComboBoxData &data, TTransferDirection direction)
virtual int FindStringExact(LPCTSTR find, int startIndex=-1) const
Return the index of the first string in list part of the associated combobox which is exactly same wi...
void SetText(LPCTSTR str)
Selects the first string in the associated list box that begins with the supplied str.
Save/Load configuration parameters Base abstract class.
Small inline wrapper around Section.
void EvKillFocus(HWND hWndGetFocus)
virtual TConfigFile * CreateConfigFile()
void SetTransferBufferFieldType(TTransferBufferFieldType)
TTransferBufferFieldType TransferBufferFieldType
auto Transfer(void *buffer, TTransferDirection) -> uint override
TWindow override; transfers data of the configured type to or from the given buffer.
TTransferBufferFieldType GetTransferBufferFieldType() const
TMemComboBox(TWindow *parent, int id, int x, int y, int w, int h, const tstring &name, uint textLimit=255, uint itemLimit=25, TModule *=0)
virtual tstring GetSectionName()
void CleanupWindow() override
void SetupWindow() override
virtual void AddToList(TCHAR *text)
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Derived from TConfigFile, TRegConfigFile is used to maintain configuration settings in the registry.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
tstring GetWindowText() const
String-aware overload.
void EvKillFocus(HWND hWndGetFocus)
Handle WM_KILLFOCUS so that we can have a parent window hold onto our Handle and possibly restore foc...
void SetWindowText(LPCTSTR str)
Sets the window's text to the given string (by copying).
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
This header file declares the class: TConfigFile,TIniConfigFile, TRegConfigFile and TConfigFileSectio...
#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.
Class definition for TMemComboBox (TComboBox).
Object Windows Library (OWLNext Core)