38 int x,
int y,
int w,
int h,
41 TEdit(parent,
id,
text, x, y,
w,
h, 0,
true, module),
45 SearchDialog =
nullptr;
56 int x,
int y,
int w,
int h,
59 :
TEdit(parent, id,
text, x, y,
w,
h, 0,
true, module),
63 SearchDialog =
nullptr;
149 ce.Enable(!SearchCmd);
197#if OWL_PERSISTENT_STREAMS
208 GetObject()->SearchData.Read(
is);
209 is >> GetObject()->SearchCmd;
210 GetObject()->SearchDialog = 0;
218TEditSearch::Streamer::Write(opstream&
os)
const
222 GetObject()->SearchData.Write(
os);
223 os << GetObject()->SearchCmd;
Definition of class TApplication.
#define PRECONDITION(condition)
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
auto Create() -> bool override
Creates a modeless dialog box interface element associated with the TDialog object.
A TEdit is an interface object that represents an edit control interface element.
TEditSearch is an edit control that responds to Find, Replace, and FindNext menu commands.
TFindDialog objects represents modeless dialog box interface elements that let you specify text to fi...
TCHAR * ReplaceWith
ReplaceWith contains the replacement string.
TCHAR * FindWhat
Contains the search string.
uint32 Flags
Flags, which indicates the state of the control buttons and the action that occurred in the dialog bo...
void UpdateData(TParam2 param=0)
Updates the flags from the passed-in parameter.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TReplaceDialog creates a modeless dialog box that lets the user enter a selection of text to replace.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
tstring LoadString(uint id) const
auto FormatMessageBox(const tstring &formatStr, const tstring &caption, uint flags,...) const -> int
bool PostMessage(TMsgId, TParam1=0, TParam2=0)
Posts a message (msg) to the window in the application's message queue.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition of class TEdit.
Definition of class TEditSearch, an edit control that responds to Find, Replace and FindNext menu com...
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition of FindReplace- abstract, Find-, Replace- common Dialog classes.
void ReadBaseObject(Base *base, ipstream &in)
#define IMPLEMENT_STREAMABLE1(cls, base1)
void WriteBaseObject(Base *base, opstream &out)
TResult EvFindMsg(TParam1, TParam2)
Registered commdlg message.
void CmEditFindNext()
CM_EDITFINDNEXT.
void DoSearch()
Performs a search or replace operation base on information in SearchData.
TEditSearch(TWindow *parent=nullptr, int id=0, LPCTSTR text=nullptr, int x=0, int y=0, int w=0, int h=0, TModule *module=nullptr)
Constructs a TEditSearch object given the parent window, resource ID, and character string (text).
void CmEditFind()
CM_EDITFIND.
void SetupWindow() override
void SetupWindow() override
void CeEditFindReplace(TCommandEnabler &ce)
Enables the find or replace option (only if no dialog is up).
void Insert(LPCTSTR str)
Inserts the text supplied in str into the edit control at the current text insertion point (cursor po...
virtual int Search(int startPos, LPCTSTR text, bool caseSensitive=false, bool wholeWord=false, bool up=false)
searches for and selects the given text and returns the offset of the text or -1 if the text is not f...
void CeEditFindNext(TCommandEnabler &ce)
Enables FindNext (only if there's data to search for).
void CmEditReplace()
CM_EDITREPLACE.
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
#define EV_COMMAND_ENABLE(id, method)
Response table entry for enabling a command.
#define EV_REGISTERED(str, method)
Resonse table entry for a registered message.
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.