|
213
|
Temporarily disable events
// Change event - Indicates that the control's text have changed.
void OnChangeEdit1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
OutputDebugStringW( L"Change event" );
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->FreezeEvents(VARIANT_TRUE);
spEdit1->InsertText(L" - no Change event occurs- \\r\\n",long(1));
spEdit1->FreezeEvents(VARIANT_FALSE);
|
|
212
|
How can I replace or add an icon at runtime

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutImageSize(16);
spEdit1->PutBookmarkWidth(16);
spEdit1->PutLineHeight(L"dpi*16");
spEdit1->ReplaceIcon(_bstr_t("gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+O") +
"kYB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==",vtMissing);
spEdit1->ReplaceIcon("C:\\images\\favicon.ico",long(0));
spEdit1->PutBookmarkImage(1);
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
|
|
211
|
Force hover-all feature
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackground(EXEDITLib::exScrollHoverAll,-1);
|
|
210
|
Disable hover-all feature (Windows 11 or greater)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackground(EXEDITLib::exScrollHoverAll,RGB(1,0,0));
|
|
209
|
Display a custom tooltip

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveEdit1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowToolTip(L"new content","",vtMissing,"+8","+8");
}
|
|
208
|
Shows the tooltip of the object moved relative to its default position

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveEdit1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowToolTip(L"<null>","<null>",vtMissing,"+8","+8");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
|
207
|
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutImageSize(32);
spEdit1->GetFont()->PutSize(_variant_t(long(16)));
spEdit1->PutBookmarkWidth(32);
spEdit1->PutLineHeight(L"dpi*32");
spEdit1->Images(_bstr_t("gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOq") +
"NUqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlw" +
"yV21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+C" +
"MPo9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy/kPxC0sEQfErKQK96+w28UWRI8UGvO8sTLS9r2PWmsMJTDTask3CsIbIEQRA3shOXEEAO/GclJ9" +
"FEKrrA8FRbKMXRIlb0JxCkjS1LMswhCcvuel0cv26cSMa8Ufx+2sQwhEUoSXOCjSbLcnxjKc7sdKUVyq28NtVI71P9P7JxtQEapjQ6fzfM8zPfNE2PhIsLL63E40slk5" +
"y7N89LcyU9SvMb3SdUc6VJLj5VLVLfO/PS9KzNFHUa/0XyBD0dxlS9cxhMlTRSoNXypPErWDPyfNS+MwprRNO0FD8wVVZ1AI08URwVRjtJ1WCn21QkkUrXVLVPQS/XIk" +
"FgTxT9iONZ9xVTdq+L1eKg3kkF6Upe68XtfV51/MtrVjBlwYFL1ev8y1/P6/lyzzYl02wntj0RVFmS1Qa+M5as93QxEUW9e993rfmQ2+vy65M/mL1lhl/2bj2ByVduMt" +
"NhCJT9hdz41nN14Ld12Z9UjfI/oUAaGseiw6+uFLLhcVabJOS5RqOE0BHlZ5VnEr5fOMs3st+aa/bbRzrJGV51Y0b0DbqaWXZD90hIsPbjWu52+6Wyadpe66hhO+P/Xi" +
"oW5rD8ZbrUZuVg6n1dsE/cXmewu1m9PVwnd35/nueXho/NaJzmjc61W76esuT77eG8pTquy9TwWH8LEzG8RDfFalx3Gcfvna9rvG/cptGLd9tuI6TZOP5Fiqi99vea+X" +
"4VRcBq/JZZtVQ9cwSs5lsXE372+a9z7PbfB3VVqHyvMctLto8uob6eV0m/cD6MN2v+T33t6sBut42vdv2bJ8a997x2maFJfK+qArbGJPEKE+1qTflMsIdW/GCJX17KcT" +
"6/czr/X+u1g29B7j/4BQfWkkx4zIHisjhPCmE0K4SwtXM+d4BvHRwNZOoBph9IJvPek9d40FoMJxf691jj2ywQQcHEWET4XJwkTszlVqm2GokewxtBT1DpQjRxDN0rUV" +
"DNKdC3lb6tzNOwh6upMSSYfv4YBCl/bsn9PxiFCEo7SI6Obc9HeOrnY8x4jtHtdpN4GRbaorhsbu18Pph5CiHymI0RpSXGJ/z2oUOxYxG858AyiI+bfJtuTcG5yelBJy" +
"T8okhqFd4a5yxL0rvulYtKCsZiWxWkc1s1cRoxxwhA31DLE0mR9l9HqX8fJgTDmFMVH0MIsRzVYnwnMi1dyzmhLt2kS2pxIiU62Wj5ptQGlSYFakLonTUJNLKaM5Wzlf" +
"fEkuFkk5wTrhVO2eE7G6lJhxFFYUZ55zmn0WuBCD4pzhirFCKkbomsOoIYmZx5p90LoYWGPdD5g0QmJRKYxbZ6zYoVQ2jVGylSak7KSkFH6RSjpHKFuU+YMyNo5SulkC" +
"6I0vonTCitMXPoEpVS2H5FQfEqp2R1opIgAEkJISYARTCukOhmPNI5Ex/wzGHUsicMwA1LHgQ90Y/KpoQHAD+pB/R4NzIaMAB9Xaw1gqaAOsh/A/ptIkWUfhGK1kZH8R" +
"gH5GqvgArqRmt4AAPrTroRofBGADkqr6Rmu4D7CEaHARiwpJrEEZsXXwlVjyMWRsaRqwdkLGNBABZmytmyMnaINZqyVpLR2ftKAAAdd6h2osbaskdiq4EZtgSmyNcbVW" +
"RJNXe3AA7REar3b0stlAAXBtoRmvJGLjEYAHUWsFcwCD/rnaop9aEICMAPdK5hT6xpeuzdOtAgKuJeGfdq6ggEbkTvAP+p9UCHXrvKkcgIA==");
spEdit1->PutBookmarkImage(1);
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
|
|
206
|
ImageSize property on 16 (default) (specifies the size of control' icons)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutImageSize(16);
spEdit1->PutBookmarkWidth(16);
spEdit1->PutLineHeight(L"dpi*16");
spEdit1->Images(_bstr_t("gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOq") +
"dSqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVt" +
"tmp1knyOayWVy+WzN/ze1wOElenm+12WUz/Bv2/3UyyWrzeutux2GSyGP2dQ33C1ur3GD3M4zUNzHdlWjq/E3nGzVpjWv4HA7fRy/Tv2IrN8rPW6nZ3ve7mUlfu20Z8a" +
"cvQyb+vY9jasYoDwMm+LytVBDqKG3z8O3Cb8P+mkAuY9cCQ2uL4KaxDKvkp8RNLEjqugnrwQo/UWPzFyeQw5sNLZFENrI4kOqU66pw8uzmOKvTqNqjULJvGL1JO48GtT" +
"GsbLdEL3scxLlyiw8dQeoUVxdLTtyKmUjwGlslRPJsnK1HbAKbKCrsQo8uQk/CeP44iaR/ATnTNPLvyxPU+z9P9AUDQVBowiofJXQ6Oo+kKMpIkjztE4TKn4P6JowfgP" +
"nwD5/nAjB8AOeAPo0eAA1IAFH07UhAIMpYAVIYFHqBUhwVjV1S1EtQAHxW65V0AZwAeuQAnwB5gAPYViEDVhwAHTQBkCjB4gOhwDmCyhH0sACAg==");
spEdit1->PutBookmarkImage(1);
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
|
|
205
|
Is it possible to show just expressions
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=00FF00>(");
spEdit1->AddWild(L"<fgcolor=00FF00>)");
spEdit1->AddExpression(L"<fgcolor=FF0000><b>(*",L"<fgcolor=FF0000> ",L"<fgcolor=FF0000><b>*)",vtMissing,vtMissing);
spEdit1->InsertText(L"some text ( another text ) other text\\r\\n",long(1));
spEdit1->InsertText(L"some text (* another text *) other text\\r\\n",long(1));
spEdit1->PutShow(L"expression");
|
|
204
|
How can I stop any highlight
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=00FF00>(");
spEdit1->AddWild(L"<fgcolor=00FF00>)");
spEdit1->AddExpression(L"<fgcolor=FF0000><b>(*",L"<fgcolor=FF0000> ",L"<fgcolor=FF0000><b>*)",vtMissing,vtMissing);
spEdit1->InsertText(L"some text ( another text ) other text\\r\\n",long(1));
spEdit1->InsertText(L"some text (* another text *) other text\\r\\n",long(1));
spEdit1->PutShow(L"");
|
|
203
|
How can I highlight the start of the line until a specified character is found

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"^",L"<fgcolor=FF0000> ",L":",vtMissing,vtMissing);
spEdit1->Refresh();
|
|
202
|
Can I use code completion without any UI
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCodeCompletion(EXEDITLib::exCodeCompletionEnableNoUI);
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"class",vtMissing,vtMissing,vtMissing);
|
|
201
|
How can I hide the control's horizontal scroll bar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutScrollBars(EXEDITLib::exVertical);
|
|
200
|
Is it possible to change the line's height

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineHeight(L"value + 8 * dpi");
spEdit1->PutDrawGridLines(VARIANT_TRUE);
|
|
199
|
How to bold everything between two * (asterisk) characters

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spEdit1->GetFont();
var_StdFont->PutName(L"Consolas");
var_StdFont->PutSize(_variant_t(long(12)));
spEdit1->AddExpression(L"<fgcolor=FF0000><b>*",L"<fgcolor=FF0000> ",L"<fgcolor=FF0000><b>*",vtMissing,vtMissing);
spEdit1->InsertText(L"some text * another text * other text\\r\\n",long(1));
spEdit1->Refresh();
|
|
198
|
How to bold everything that starts with * (asterisk), to the end of the line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spEdit1->GetFont();
var_StdFont->PutName(L"Consolas");
var_StdFont->PutSize(_variant_t(long(12)));
spEdit1->AddWild(L"<fgcolor=FF0000><b>\\**");
spEdit1->InsertText(L"some text * another text * other text\\r\\n",long(1));
spEdit1->Refresh();
|
|
197
|
How to make a * (asterisk) bold, not the entire / rest line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spEdit1->GetFont();
var_StdFont->PutName(L"Consolas");
var_StdFont->PutSize(_variant_t(long(12)));
spEdit1->AddWild(L"<fgcolor=FF0000><b>\\*");
spEdit1->InsertText(L"some text * another text * other text\\r\\n",long(1));
spEdit1->Refresh();
|
|
196
|
How can I change the control's font (template)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutTemplate(L"Font { Name = `Consolas`; Size = 12 }");
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>",vtMissing,vtMissing,vtMissing);
spEdit1->Refresh();
|
|
195
|
How can I change the control's font (runtime)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spEdit1->GetFont();
var_StdFont->PutName(L"Consolas");
var_StdFont->PutSize(_variant_t(long(12)));
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>",vtMissing,vtMissing,vtMissing);
spEdit1->Refresh();
|
|
194
|
When I click and drag to try and select some text, sometimes my cursor turns into a hand and drags the whole text in the window around. I would like to disable this feature, could you tell me what it is called so I can disable it please
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutOLEDropMode(EXEDITLib::exOLEDropAutomatic);
|
|
193
|
How can I display information about events the control fires

// Event event - Notifies the application once the control fires an event.
void OnEventEdit1(long EventID)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spEdit1->GetEventParam(-2)) );
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=808080>(?*)</fgcolor>");
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") +
"y",vtMissing,vtMissing);
spEdit1->Refresh();
|
|
192
|
How do I highlights words based on wild characters

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=0000FF><b>[MC]*_HANDLER*</b></fgcolor>(*)");
spEdit1->Refresh();
|
|
191
|
How do I highlights words based on wild characters

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=0000FF><b> *</b></fgcolor>(*)*;");
spEdit1->Refresh();
|
|
190
|
How can I provide different tooltip for the same keyword

// QueryContext event - Queries for the context at the specified location, to provide different tooltips for the same keyword on QueryContextToolTip event.
void OnQueryContextEdit1(long XCursor, long YCursor, VARIANT FAR* QContext)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
QContext = YCursor;
}
// QueryContextToolTip event - Asks for the tooltip/title of the keyword on the context retrieved by the QueryContext event.
void OnQueryContextToolTipEdit1(LPCTSTR QContext, LPCTSTR Keyword, VARIANT FAR* QToolTip, VARIANT FAR* QToolTipTitle)
{
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
QToolTip = QContext;
QToolTipTitle = "Keyword Found At Line:";
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->AddKeyword(L"<fgcolor=FF0000><b>keyword</b></fgcolor>",vtMissing,vtMissing,vtMissing);
spEdit1->PutText(L"");
spEdit1->InsertText(L"here's the keyword on the first line",vtMissing);
spEdit1->InsertText(L"\\r\\nhere's the keyword on the second line",vtMissing);
spEdit1->InsertText(L"\\r\\nhere's the keyword on the third line",vtMissing);
|
|
189
|
Is it possible to left, right or center align the inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutCaretLine(6);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(240,240,240));
spEdit1->PutTempInlineToolTip(L"<font ;6>Left Alignment<br><c>Center Alignment<br><r>Right Alignment");
spEdit1->Refresh();
|
|
188
|
Is it possible to display the inline tooltip with a different appearance than temporarily inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("<r>a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qua") +
"lity.",vtMissing,vtMissing);
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTip));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipForeColor,RGB(128,128,128));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipBackColor,RGB(240,240,240));
spEdit1->PutCaretLine(6);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(255,40,0));
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipForeColor,RGB(0,0,1));
spEdit1->PutTempInlineToolTip(_bstr_t("<br><c><font ;12>This is a bit of text that's shown temporarily only. <br><c>Now, click the <off -4><b>class</b></off> keyword,") +
" in the top...<br>");
spEdit1->Refresh();
|
|
187
|
How can I display the inline tooltip over the lines, instead pushing the lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(255,255,0));
spEdit1->PutCaretLine(3);
spEdit1->PutTempInlineToolTip(L"This is a bit of text that's shown under the current line, and it is displayed as soon as the control's caret is changed.");
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTipOver));
spEdit1->Refresh();
|
|
186
|
Is it possible to display the inline tooltip all the time

// SelChange event - Occurs when the user selects text in the control.
void OnSelChangeEdit1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutTempInlineToolTip(L"This is a bit of text that's shown under the current line, and it is displayed as soon as the control's caret is changed.");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(255,255,0));
spEdit1->PutCaretLine(12);
spEdit1->PutAllowInlineToolTip(EXEDITLib::exInlineToolTipWordWrap);
spEdit1->Refresh();
|
|
185
|
Is it possible to display images in the inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutCaretLine(4);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,0x1000000);
spEdit1->PutAllowInlineToolTip(EXEDITLib::exInlineToolTipWordWrap);
spEdit1->PutTempInlineToolTip(L"<img>1</img>This is a bit of text that's shown programatically under the current line");
|
|
184
|
How can I change the visual appearance of the temporarily inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutCaretLine(4);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,0x1000000);
spEdit1->PutAllowInlineToolTip(EXEDITLib::exInlineToolTipWordWrap);
spEdit1->PutTempInlineToolTip(L"This is a bit of text that's shown programatically under the current line");
|
|
183
|
How can I display programmatically the inline tooltip, but using word-wrapping

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutCaretLine(4);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(240,240,240));
spEdit1->PutAllowInlineToolTip(EXEDITLib::exInlineToolTipWordWrap);
spEdit1->PutTempInlineToolTip(L"This is a bit of text that's shown programatically under the current line");
|
|
182
|
How can I display programmatically the inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutCaretLine(4);
spEdit1->PutBackground(EXEDITLib::exTempInlineToolTipBackColor,RGB(240,240,240));
spEdit1->PutTempInlineToolTip(L"<br><c>This is a bit of text that's shown programatically under the current line<br>");
|
|
181
|
How can I show the inline tooltip with a different appearance

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") +
"y.",vtMissing,vtMissing);
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTip));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipBackColor,0x1000000);
spEdit1->PutBackground(EXEDITLib::exInlineToolTipForeColor,RGB(128,0,0));
spEdit1->Refresh();
|
|
180
|
Is it possible to prevent moving the lines after the inline tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") +
"y.",vtMissing,vtMissing);
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTipOver | EXEDITLib::exInlineToolTip));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipBackColor,RGB(255,255,0));
spEdit1->Refresh();
|
|
179
|
How can I display the inline tooltip, when typing only

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->PutToolTipOnTyping(VARIANT_FALSE);
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") +
"y.",vtMissing,vtMissing);
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTipOnChange));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipBackColor,RGB(240,240,240));
spEdit1->Refresh();
|
|
178
|
How do I enable the inline tooltip support

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(-1);
spEdit1->PutLineNumberBackColor(RGB(240,240,240));
spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") +
"y.",vtMissing,vtMissing);
spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTip));
spEdit1->PutBackground(EXEDITLib::exInlineToolTipForeColor,RGB(128,128,128));
spEdit1->Refresh();
|
|
177
|
How do I display a tooltip for a non-keyword

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveEdit1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowToolTip(spEdit1->GetWordFromPoint(-1,-1,vtMissing),vtMissing,vtMissing,"+8","+8");
}
|
|
176
|
How do I get the text from the cursor

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveEdit1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
OutputDebugStringW( spEdit1->GetWordFromPoint(-1,-1,vtMissing) );
}
|
|
175
|
I've noticed that while I type, the control's sensitive context selects the item that contains the typing word, so the question is how can I disable it
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"exText",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"exHTML",vtMissing,vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextDisableIncrementalSearchContains,VARIANT_TRUE);
spEdit1->PutText(L"");
spEdit1->InsertText(L"Press CTRL+SPACE, and type h, so the exHTML is not selected.",vtMissing);
|
|
174
|
I have a context that inserts some comments, it is possible to set the cursor before comment begins, when user selects a value from the control's sensitive context
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"<fgcolor=008000>'</fgcolor>",L"<fgcolor=008000> </fgcolor>",L"",vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"exText (0)","0 ' specifies the exText flag",vtMissing,vtMissing);
var_Context->Add(L"exHTML (-1)","-1 ' specifies the exHTML flag",vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextInsertCaretPos,"(0:=value lfind `'`) < 0 ? -1 : ( =:0 - (len(1:=(value left =:0)) - len(ltrim(reverse(=:1)))))");
spEdit1->PutText(L"");
spEdit1->InsertText(L"Press CTRL + SPACE, and select any item, a number is inserted",vtMissing);
|
|
173
|
How can I show a different sensitive context when user press a key/character

// Change event - Indicates that the control's text have changed.
void OnChangeEdit1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowContext(spEdit1->GetChangeOnKey());
spEdit1->PutActiveContextItems(L"");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutText(L"");
spEdit1->InsertText(L"Press .(dot), :(color) or =(equal), to get different sensitive context",vtMissing);
spEdit1->PutActiveContextItems(L"");
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext("61");
var_Context->Add(L"Equal_1",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"Equal_2",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context1 = spEdit1->GetContext("46");
var_Context1->Add(L"Dot_1",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Dot_2",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context2 = spEdit1->GetContext("58");
var_Context2->Add(L"Colon_1",vtMissing,vtMissing,vtMissing);
var_Context2->Add(L"Colon_2",vtMissing,vtMissing,vtMissing);
|
|
172
|
How can I allow spaces when control's sentitive context is shown/opened

// Change event - Indicates that the control's text have changed.
void OnChangeEdit1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowContext(spEdit1->GetChangeOnKey());
spEdit1->PutActiveContextItems(L"");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext("61");
var_Context->Add(L"True (-1)","True",vtMissing,vtMissing);
var_Context->Add(L"False (-1)","False",vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextAllowSpaceOnFront,VARIANT_TRUE);
spEdit1->PutText(L"");
spEdit1->InsertText(L"Press the = key and after that press the space keys",vtMissing);
spEdit1->InsertText(L"",vtMissing);
|
|
171
|
How can I display more pages on the control's senitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"First_1",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"First_2",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context1 = spEdit1->GetContext("Second");
var_Context1->Add(L"Second_1",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Second_2",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Second_3",vtMissing,vtMissing,vtMissing);
spEdit1->PutActiveContextItems(L"Second");
spEdit1->PutPagesContextItems(L":Page<font ;6><off -4>1</off></font>,Second:Page<font ;6><off -4>2</off></font>");
|
|
170
|
Is it possible to disable showing tooltip for items in the control's senitive context
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"Column",vtMissing,vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextItemToolTip,"This is bit of text that shown when user selects the <b>Column</b> item.");
var_Context->Add(L"Item",vtMissing,vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextItemToolTip,"This is bit of text that shown when user selects the <b>Item</b> item.");
var_Context->PutOptions(EXEDITLib::exContextAllowToolTip,VARIANT_FALSE);
|
|
169
|
How can I assign tooltips for items in the control's senitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"Column",vtMissing,vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextItemToolTip,"This is bit of text that shown when user selects the <b>Column</b> item.");
var_Context->Add(L"Item",vtMissing,vtMissing,vtMissing);
var_Context->PutOptions(EXEDITLib::exContextItemToolTip,"This is bit of text that shown when user selects the <b>Item</b> item.");
|
|
168
|
By default, the control shows the Context(""). How can I display other items

// OnContext event - Occurs when the user invokes the control's context window.
void OnOnContextEdit1(long Start, LPCTSTR Context)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
OutputDebugStringW( L"CurrentContext:" );
OutputDebugStringW( L"Context" );
spEdit1->PutActiveContextItems(L"Second");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"First_1",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"First_2",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context1 = spEdit1->GetContext("Second");
var_Context1->Add(L"Second_1",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Second_2",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Second_3",vtMissing,vtMissing,vtMissing);
|
|
167
|
How can I show the control's sensitive context

// DblClick event - Occurs when the user double clicks the left mouse button over an object.
void OnDblClickEdit1(short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowContext("DB");
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext("DB");
var_Context->Add(L"BEGIN_MSG_MAP",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"<fgcolor=808080>MESSAGE_HANDLER",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"<fgcolor=808080>COMMAND_HANDLER",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"END_MSG_MAP",vtMissing,vtMissing,vtMissing);
|
|
166
|
How can I provide different sensitive context

// Change event - Indicates that the control's text have changed.
void OnChangeEdit1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->ShowContext(spEdit1->GetChangeOnKey());
}
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutText(L"");
spEdit1->InsertText(L"Press .(dot), :(colon) or CTRL + SPACE to invoke the control's context",vtMissing);
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"General_1",vtMissing,vtMissing,vtMissing);
var_Context->Add(L"General_2",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context1 = spEdit1->GetContext("46");
var_Context1->Add(L"Property_1",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Property_2",vtMissing,vtMissing,vtMissing);
var_Context1->Add(L"Property_3",vtMissing,vtMissing,vtMissing);
EXEDITLib::IEditContextPtr var_Context2 = spEdit1->GetContext("58");
var_Context2->Add(L"Method_1",vtMissing,vtMissing,vtMissing);
var_Context2->Add(L"Method_2",vtMissing,vtMissing,vtMissing);
var_Context2->Add(L"Method_3",vtMissing,vtMissing,vtMissing);
|
|
165
|
How can I change the control's background/foreground colors while the control is locked/read-only

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLocked(VARIANT_TRUE);
spEdit1->PutSelBackColor(RGB(128,128,128));
spEdit1->PutForeColorLockedLine(RGB(128,128,128));
spEdit1->PutBackColorLockedLine(RGB(255,255,255));
|
|
164
|
How can change the color for selected text, when the control has no focus

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutHideSelection(VARIANT_FALSE);
spEdit1->PutSelLength(10);
spEdit1->PutSelBackColorHide(RGB(255,0,0));
|
|
163
|
How do I change the "Incremental Search" caption

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exIncrementalSearchArea,"exHelp");
spEdit1->PutCaption(EXEDITLib::exIncrementalSearchField,EXEDITLib::exCaption,L"Search for: %s");
spEdit1->PutIncrementalSearchError(RGB(255,0,0));
|
|
162
|
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutScrollBars(EXEDITLib::exBoth);
spEdit1->PutScrollPartVisible(EXEDITLib::exVScroll,EXEDITLib::exExtentThumbPart,VARIANT_TRUE);
spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exExtentThumbPart,VARIANT_TRUE);
spEdit1->PutScrollPartVisible(EXEDITLib::ScrollBarEnum(0x2),EXEDITLib::exExtentThumbPart,VARIANT_TRUE);
spEdit1->PutScrollWidth(4);
spEdit1->PutBackground(EXEDITLib::exVSBack,RGB(240,240,240));
spEdit1->PutBackground(EXEDITLib::exVSThumb,RGB(128,128,128));
spEdit1->PutScrollHeight(4);
spEdit1->PutBackground(EXEDITLib::exHSBack,spEdit1->GetBackground(EXEDITLib::exVSBack));
spEdit1->PutBackground(EXEDITLib::exHSThumb,spEdit1->GetBackground(EXEDITLib::exVSThumb));
spEdit1->PutBackground(EXEDITLib::exSizeGrip,spEdit1->GetBackground(EXEDITLib::exVSBack));
|
|
161
|
How can I get ride of control's horizontal scroll bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>CExHelperDialog</b>",vtMissing,vtMissing,vtMissing);
spEdit1->Refresh();
spEdit1->PutScrollBars(EXEDITLib::exVertical);
|
|
160
|
How do I specify the characters to close the sensitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->AddKeyword(L"<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
EXEDITLib::IEditContextPtr var_Context = spEdit1->GetContext(vtMissing);
var_Context->Add(L"<b>class</b>","",long(1),vtMissing);
var_Context->Add(L"<b>public</b>","",long(2),vtMissing);
var_Context->PutOptions(EXEDITLib::exContextAllowChars,"_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
|
|
159
|
How do I sort items in the sensitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->AddKeyword(L"<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"<b>public</b>","",long(2),vtMissing);
spEdit1->GetContext(vtMissing)->Add(L"<b>class</b>","",long(1),vtMissing);
spEdit1->GetContext(vtMissing)->Sort(VARIANT_TRUE);
|
|
158
|
Can I add icons to the sensitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"<b>class</b>","",long(1),vtMissing);
|
|
157
|
How can I change the keys combination that invokes the sensitive context

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutContextKey(544);
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"class",vtMissing,vtMissing,vtMissing);
|
|
156
|
How do I enable or disable the sensitive context menu
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCodeCompletion(EXEDITLib::exCodeCompletionDisable);
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"class",vtMissing,vtMissing,vtMissing);
|
|
155
|
How can I add a sensitive context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"class",vtMissing,vtMissing,vtMissing);
|
|
154
|
Can I use wild characters to define keys in your control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=808080>(*)</fgcolor>");
spEdit1->Refresh();
|
|
153
|
Can I use wild characters to define keys in your control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"_HANDLER<fgcolor=FF0000>(*)</fgcolor>");
spEdit1->Refresh();
|
|
152
|
How can I remove or delete all expressions

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->ClearExpressions();
spEdit1->Refresh();
|
|
151
|
How can I remove or delete an expression

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->DeleteExpression(L"(");
spEdit1->Refresh();
|
|
150
|
How can I add an expression

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->Refresh();
|
|
149
|
How can I add an expression on multiple lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->Refresh();
|
|
148
|
How can I remove or delete all keywords
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>",vtMissing,vtMissing,vtMissing);
spEdit1->ClearKeywords();
spEdit1->Refresh();
|
|
147
|
How can I remove or delete keyword
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>",vtMissing,vtMissing,vtMissing);
spEdit1->DeleteKeyword(L"class");
spEdit1->Refresh();
|
|
146
|
How do I add a keyword that's not case sensitive

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>","","",long(2));
spEdit1->Refresh();
spEdit1->InsertText(L"ClasS\\r\\n",long(1));
spEdit1->InsertText(L"CLASS\\r\\n",long(1));
|
|
145
|
How do I add a keyword that's not case sensitive

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>","","",long(1));
spEdit1->Refresh();
spEdit1->InsertText(L"ClasS\\r\\n",long(1));
spEdit1->InsertText(L"CLASS\\r\\n",long(1));
|
|
144
|
How can I assign a tooltip to a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
|
143
|
How do I add a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>",vtMissing,vtMissing,vtMissing);
spEdit1->Refresh();
|
|
142
|
How do I add a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
|
141
|
How can I display a tooltip as soon as the user types a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutToolTipDelay(1);
spEdit1->PutToolTipOnTyping(VARIANT_TRUE);
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
|
140
|
How do I change the color for a locked or a read only line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutForeColorLockedLine(RGB(0,0,0));
spEdit1->PutBackColorLockedLine(RGB(255,0,0));
spEdit1->PutLockedLine(1,VARIANT_TRUE);
|
|
139
|
How do I lock or make read only a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLockedLine(1,VARIANT_TRUE);
|
|
138
|
How do I start overtyping

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutOvertype(VARIANT_TRUE);
|
|
137
|
How do I get the selection

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetSelection(sy,sx,ey,ex);
OutputDebugStringW( L"sy" );
OutputDebugStringW( L"sx" );
OutputDebugStringW( L"ey" );
OutputDebugStringW( L"ex" );
|
|
136
|
How do I select multiple lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->SetSelection(long(0),long(0),long(10),long(0));
spEdit1->PutHideSelection(VARIANT_FALSE);
|
|
135
|
How can I change the shape of the cursor when it hovers the selected text

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exSelectedText,"exHelp");
spEdit1->PutSelLength(10);
spEdit1->PutHideSelection(VARIANT_FALSE);
|
|
134
|
How can I change the shape of the cursor when it hovers the incremental search area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exIncrementalSearchArea,"exHelp");
|
|
133
|
How can I change the shape of the cursor when it hovers the line numbers area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exLineNumberArea,"exHelp");
spEdit1->PutLineNumberWidth(16);
|
|
132
|
How can I change the shape of the cursor when it hovers the bookmark area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exBookmarkArea,"exHelp");
spEdit1->PutBookmarkWidth(16);
|
|
131
|
How can I change the shape of the cursor when it hovers the edit
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exEditArea,"exHelp");
|
|
130
|
How can I enable or disable OLE drag and drop operations
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutOLEDropMode(EXEDITLib::exOLEDropAutomatic);
|
|
129
|
How can I change the descriptions for items in the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextUndo,L"U N D O");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextRedo,L"R E D O");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextCut,L"C U T");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextCopy,L"C O P Y");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextPaste,L"P A S T E");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextDelete,L"D E L");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextSelectAll,L"A L L ");
|
|
128
|
How can I change the descriptions for fields in the Replace dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldFindWhat,L"What");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplaceWith,L"Replace");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldWordOnly,L"Word");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldMatchCase,L"Case");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldFindNext,L"Dir");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldSelection,L"Sel");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldWholeFile,L"File");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplace,L"Rep");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplaceAll,L"All");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldCancel,L"Abandon");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorTitle,L"Title");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorFindNext,L"Failed!");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorFindNext,L"Done");
|
|
127
|
How can I change the descriptions for fields in the Find dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindWhat,L"What");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldWordOnly,L"Word");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldMatchCase,L"Case");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindNext,L"Dir");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldSelection,L"U");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldWholeFile,L"D");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindNext,L"Next");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldReplace,L"All");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldCancel,L"Abandon");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exErrorFindNext,L"Failed!");
|
|
126
|
How can I change the caption for the Replace dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exCaption,L"Search and Replace");
|
|
125
|
How can I change the caption for the Find dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exCaption,L"Search");
|
|
124
|
How can I move the cursor when user invokes the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutRClick(VARIANT_TRUE);
|
|
123
|
How can I disable indenting the selected text when the user presses the TAB key
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutIndentOnTab(VARIANT_FALSE);
|
|
122
|
How can I indent a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(18);
spEdit1->PutHideSelection(VARIANT_FALSE);
spEdit1->SelectLine(3);
spEdit1->IndentSel(VARIANT_TRUE);
|
|
121
|
How can I show or hide the control's splitter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter);
spEdit1->PutSplitPaneHeight(128);
spEdit1->PutSplitPaneWidth(128);
|
|
120
|
How can I select a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(18);
spEdit1->PutHideSelection(VARIANT_FALSE);
spEdit1->SelectLine(3);
|
|
119
|
How do I change the font to display the line numbers

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetLineNumberFont()->PutName(L"Tahoma");
spEdit1->PutLineNumberWidth(18);
|
|
118
|
How can I change the height of the line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetFont()->PutSize(_variant_t(long(32)));
spEdit1->PutDrawGridLines(VARIANT_TRUE);
spEdit1->Refresh();
|
|
117
|
How can I show or hide the grid lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutDrawGridLines(VARIANT_TRUE);
|
|
116
|
How do I highlight the position of multiple lines expression on the vertical scroll bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutAllowMark(VARIANT_TRUE);
spEdit1->PutMarkContinueBlocks(VARIANT_TRUE);
spEdit1->AddKeyword(L"<b>CAxWnd",vtMissing,vtMissing,vtMissing);
spEdit1->AddExpression(L"<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->PutMarkColor(L"BEGIN_MSG_MAP",RGB(255,0,0));
spEdit1->PutMarkColor(L"END_MSG_MAP",RGB(128,0,0));
spEdit1->PutMarkColor(L"CAxWnd",RGB(0,0,0));
spEdit1->Refresh();
|
|
115
|
How do I ignore \" in a string

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->InsertText(L"\"just a string \\\"expression\"\\r\\n",long(1));
spEdit1->AddExpression(L"<fgcolor=800000><b>\"</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>\"</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->PutIgnorePrefixInExpression(L"\"",L"\\");
spEdit1->Refresh();
|
|
114
|
How can I change the color for the line number's border

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberBorderColor(RGB(255,0,0));
spEdit1->PutLineNumberWidth(18);
|
|
113
|
How can I change the color for the bookmark's border

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmarkBorderColor(RGB(255,0,0));
spEdit1->PutBookmarkWidth(18);
|
|
112
|
Can I display a custom icon or picture for bookmarks

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutBookmarkImage(1);
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(18);
|
|
111
|
Can I display a custom icon or picture in the bookmark area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutBookmarkImageLine(2,1);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(18);
|
|
110
|
How do I remove the line's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackColorLine(1,RGB(255,0,0));
spEdit1->ClearBackColorLine(1);
|
|
109
|
How do I change the foreground color for a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutForeColorLine(1,RGB(255,0,0));
|
|
108
|
How do I change the background color for a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackColorLine(1,RGB(255,0,0));
|
|
107
|
How can I add my own items in the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutContextMenuItems(L"New Item");
|
|
106
|
How do I ensure that a specified line is visible

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->EnsureVisibleLine(spEdit1->GetCount());
|
|
105
|
How can I programmatically perform a REDO operation
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Redo();
|
|
104
|
How can I programmatically perform an UNDO operation
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Undo();
|
|
103
|
How do I get the bookmarks as a list

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
_variant_t var_BookmarksList = spEdit1->GetBookmarksList();
|
|
102
|
How can I move to the previous bookmark

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
spEdit1->PrevBookmark();
|
|
101
|
How can I move to the next bookmark

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
spEdit1->NextBookmark();
|