1. How can I insert a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->InsertText(L" - insert the line as the first - \\r\\n",long(1)); |
2. How can I add a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->InsertText(L" - insert the line as the last - \\r\\n",vtMissing); |
3. How do I remove the control's border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAppearance(EXEDITLib::exNone); |
4. How do I change the control's border, using your EBN files
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->PutAppearance((EXEDITLib::AppearanceEnum)16777216); |
5. How do I put a picture on the control's background
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
|
6. How do I put a picture on the control's left top corner
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exUpperLeft);
|
7. How do I put a picture on the control's right top corner
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exUpperRight);
|
8. How do I put a picture on the control's center top side
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exUpperCenter);
|
9. How do I put a picture on the control's center left bottom side
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exLowerLeft);
|
10. How do I put a picture on the control's center right bottom side
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exLowerRight);
|
11. How do I resize/stretch a picture on the control's background
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exStretch);
|
12. How do I put a picture on the center of the control
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutPicture(IPictureDispPtr(((IDispatch*)(spEdit1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spEdit1->PutPictureDisplay(EXEDITLib::exMiddleCenter);
|
13. How can I change the control's font
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetFont()->PutName(L"Verdana"); |
14. How do I change the control's background color
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBackColor(13158600); |
15. How do I change the control's foreground color
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutForeColor(255); |
16. Can I display an additional buttons in the scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exLeftB1Part,VARIANT_TRUE); spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exLeftB2Part,VARIANT_TRUE); spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exRightB6Part,VARIANT_TRUE); spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exRightB5Part,VARIANT_TRUE); |
17. I need to add a button in the scroll bar. Is this possible
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exLeftB1Part,VARIANT_TRUE); spEdit1->PutScrollPartCaption(EXEDITLib::exHScroll,EXEDITLib::exLeftB1Part,L"1"); |
18. How do I assign an icon to the button in the scrollbar
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutScrollPartVisible(EXEDITLib::exHScroll,EXEDITLib::exLeftB1Part,VARIANT_TRUE);
spEdit1->PutScrollPartCaption(EXEDITLib::exHScroll,EXEDITLib::exLeftB1Part,L"<img>1</img>");
spEdit1->PutScrollHeight(18);
spEdit1->PutScrollButtonWidth(18);
|
19. How do I assign a tooltip to a scrollbar
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spEdit1->PutScrollToolTip(EXEDITLib::exHScroll,_bstr_t("This is a <img>16777216</img>tooltip being shown when you click and drag the thumb in the horiz") +
"ontal scroll bar");
|
20. How can I display my text on the scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollPartCaption(EXEDITLib::exHScroll,EXEDITLib::exThumbPart,L"this is just a text"); spEdit1->PutScrollThumbSize(EXEDITLib::exHScroll,96); |
21. How can I display my text on the scroll bar, using a different font
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollPartCaption(EXEDITLib::exHScroll,EXEDITLib::exThumbPart,L"This is just a text"); spEdit1->GetScrollFont(EXEDITLib::exHScroll)->PutSize(_variant_t(long(12))); spEdit1->PutScrollThumbSize(EXEDITLib::exHScroll,128); spEdit1->PutScrollHeight(24195); spEdit1->PutScrollPartCaption(EXEDITLib::exHScroll,EXEDITLib::exThumbPart,L"This is <s><font Tahoma;12> just </font></s> text"); spEdit1->PutScrollHeight(20); |
22. How do I enlarge or change the size of the control's scrollbars
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollHeight(18); spEdit1->PutScrollWidth(18); spEdit1->PutScrollButtonWidth(18); spEdit1->PutScrollButtonHeight(18); |
23. The thumb size seems to be very small. Can I make it bigger
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollThumbSize(EXEDITLib::exHScroll,164); |
24. Can I change the order of the buttons in the scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollOrderParts(EXEDITLib::exHScroll,L"t,l,r"); spEdit1->PutScrollOrderParts(EXEDITLib::exVScroll,L"t,l,r"); |
25. How do I show the tooltip quicker
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(1); 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(); |
26. How do I disable showing the tooltip for all control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(0); 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(); |
27. How do I let the tooltip being displayed longer
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipPopDelay(10000); 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(); |
28. I've seen that the width of the tooltip is variable. Can I make it larger
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipWidth(328); 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(); |
29. Can I change the font for the tooltip
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(1); /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import "C:\\WINNT\\System32\\stdole2.tlb" */ stdole::FontPtr var_StdFont = spEdit1->GetToolTipFont(); var_StdFont->PutName(L"Tahoma"); var_StdFont->PutSize(_variant_t(long(14))); spEdit1->PutToolTipWidth(364); 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(); |
30. How do I call your x-script language
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutTemplate(L"BackColor = RGB(255,0,0)"); |
31. How do I call your x-script language
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->ExecuteTemplate(L"BackColor = RGB(255,0,0)"); |
32. Can I change the default border of the tooltip, using your EBN files
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(1); spEdit1->PutToolTipWidth(364); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->PutBackground(EXEDITLib::exToolTipAppearance,16777216); 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(); |
33. Can I change the background color for the tooltip
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(1); spEdit1->PutToolTipWidth(364); spEdit1->PutBackground(EXEDITLib::exToolTipBackColor,255); 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(); |
34. Can I change the forecolor for the tooltip
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutToolTipDelay(1); spEdit1->PutToolTipWidth(364); spEdit1->PutBackground(EXEDITLib::exToolTipForeColor,255); 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(); |
35. I've seen that you can change the visual appearance for the scroll bar. How can I do that
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spEdit1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spEdit1->PutBackground(EXEDITLib::exSBtn,16777216); spEdit1->PutBackground(EXEDITLib::exSBtnP,33554432); spEdit1->PutBackground(EXEDITLib::exSBtnH,50331648); spEdit1->PutBackground(EXEDITLib::exHSBack,15790320); spEdit1->PutBackground(EXEDITLib::exVSBack,15790320); spEdit1->PutBackground(EXEDITLib::exSizeGrip,15790320); |
36. How do I change the visual aspect only for the thumb in the scroll bar, using EBN
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spEdit1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spEdit1->PutBackground(EXEDITLib::exHSThumb,16777216); spEdit1->PutBackground(EXEDITLib::exHSThumbP,33554432); spEdit1->PutBackground(EXEDITLib::exHSThumbH,50331648); spEdit1->PutScrollThumbSize(EXEDITLib::exHScroll,96); |
37. How do I change the visual aspect for thumb parts in the scroll bars, using EBN
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spEdit1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spEdit1->PutBackground(EXEDITLib::exHSThumb,16777216); spEdit1->PutBackground(EXEDITLib::exHSThumbP,33554432); spEdit1->PutBackground(EXEDITLib::exHSThumbH,50331648); spEdit1->PutBackground(EXEDITLib::exVSThumb,16777216); spEdit1->PutBackground(EXEDITLib::exVSThumbP,33554432); spEdit1->PutBackground(EXEDITLib::exVSThumbH,50331648); |
38. How can I change the visual appearance of the horizontal splitter
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter); spEdit1->PutSplitPaneHeight(128); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->PutBackground(EXEDITLib::exVSplitterApp,16777216); |
39. How can I change the visual appearance of the vertical splitter
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter); spEdit1->PutSplitPaneWidth(128); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->PutBackground(EXEDITLib::exHSplitterApp,16777216); |
40. How can I change the visual appearance of the splitter
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter); spEdit1->PutSplitPaneWidth(128); spEdit1->PutSplitPaneHeight(128); spEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spEdit1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spEdit1->PutBackground(EXEDITLib::exHSplitterApp,16777216); spEdit1->PutBackground(EXEDITLib::exVSplitterApp,16777216); spEdit1->PutBackground(EXEDITLib::exISplitterApp,33554432); |
41. How do I disable or enable the control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutEnabled(VARIANT_FALSE); |
42. How do I lock the control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLocked(VARIANT_TRUE); |
43. How can I show the bookmark border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBookmarkWidth(16); |
44. How can I hide the bookmark border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBookmarkWidth(0); |
45. How can I specify the text being displayed in the control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutText(L"new line\\r\\nnew line"); |
46. How can I clear the text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutText(L""); |
47. How can I display or show the number of each line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberWidth(32); |
48. How can I hide the number of each line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberWidth(0); |
49. How can I disable using the Tab key
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutUseTabKey(VARIANT_FALSE); |
50. How can I disable adding new TAB characters when the user enters a new line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAutoIndent(VARIANT_FALSE); |
51. How can still display the selected text when the control loses the focus
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->PutSelLength(10); |
52. Is there any option to hide the caret or the cursor
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutShowCaret(VARIANT_FALSE); |
53. How can I disable displaying the control's context menu
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowContextMenu(VARIANT_FALSE); |
54. How can change the color for selected text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->PutSelLength(10); spEdit1->PutSelForeColor(255); |
55. How can change the color for selected text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->PutSelLength(10); spEdit1->PutSelBackColor(255); |
56. How can I disable displaying multiple lines
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutMultiLine(VARIANT_FALSE); |
57. How can I display only a single line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutMultiLine(VARIANT_FALSE); |
62. How can I use it a a simple edit control, without highlighting
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutEditType(EXEDITLib::exStandard); |
63. How can I display HTML text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutEditType(EXEDITLib::exHTML); spEdit1->PutText(L"<b>just a HTML text</b>\\r\\nnew <s>line</s>"); |
64. How can I avoid changing the colors for keywords or expressions
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutApplyColors(VARIANT_FALSE); spEdit1->AddKeyword(L"<fgcolor=FF0000><b>class</b></fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing); spEdit1->Refresh(); |
65. How can I replace the selected text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutSelLength(10); spEdit1->PutSelText(L"-new selection-"); |
66. How can I get the selected text
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutSelLength(10); _bstr_t var_SelText = spEdit1->GetSelText(); |
67. How do I get the number of selected characters
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutSelLength(10); spEdit1->PutHideSelection(VARIANT_FALSE); |
68. How do I get the point where the selection starts
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutSelStart(4); spEdit1->PutSelLength(10); spEdit1->PutHideSelection(VARIANT_FALSE); |
69. How do I get the number of lines in the control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); long var_Count = spEdit1->GetCount(); |
70. How do I get a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutTextLine(1,L"new line"); |
71. How do I replace a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutTextLine(1,L"new line"); |
72. How do I change the line where the caret or the cursor is displayed
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutCaretLine(10); |
73. How do I change the character where the caret or the cursor is displayed
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutCaretPos(10); |
74. How can I remove or delete a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->DeleteLine(1); |
75. How can I remove or delete all lines
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutText(L""); |
76. How can I insert at specified position a new line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->InsertText(L"newline\\r\\n",long(2)); spEdit1->PutBackColorLine(2,255); |
77. How can I hide the control's scroll bars
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollBars(EXEDITLib::exNoScroll); |
78. How can I display only the horizontal scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollBars(EXEDITLib::exHorizontal); |
79. How can I display only the vertical scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollBars(EXEDITLib::exVertical); |
80. How can I display both scroll bars
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutScrollBars(EXEDITLib::exBoth); |
81. How can I hide the selection
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutDisplaySelection(VARIANT_FALSE); |
82. I've seen that if I press CTRL + ( I get the matching braket. How can I extend this
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutOpenBrackets(L"<"); spEdit1->PutCloseBrackets(L">"); |
83. How can I change the size of the tabs characters
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutTabLength(8); |
84. How can I refresh the control
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
85. How can I change the color of the bookmark border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBookMarkBackColor(255); spEdit1->PutBookMarkBackColor2(255); spEdit1->PutBookmarkWidth(16); |
86. How can I change the color for the border where the line numbers are displayed
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberForeColor(255); spEdit1->PutLineNumberBackColor(16711680); spEdit1->PutLineNumberWidth(32); |
87. How can I disable or enable the undo-redo feature
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowUndoRedo(VARIANT_FALSE); |
88. How can I enable my button as the control can perform an UNDO operation
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); VARIANT_BOOL var_CanUndo = spEdit1->GetCanUndo(); |
89. How can I enable my button as the control can perform an REDO operation
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); VARIANT_BOOL var_CanRedo = spEdit1->GetCanRedo(); |
90. How can I disable or enabled the Find dialog
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowFind(VARIANT_FALSE); |
91. How can I programmatically find or search for a string
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->Find(L"public",EXEDITLib::exSearchDown); |
92. How can I programmatically find or search for a word only
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->Find(L"IDD_DIALOG_INSTALL",EXEDITLib::exMatchWholeWordOnly); |
93. Does your control support incrementasl search
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowIncrementalSearch(VARIANT_TRUE); |
94. How can I disable or enable displaying the Replace dialog
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowReplace(VARIANT_FALSE); |
95. Can I display the lines using an alternate color
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBackColorAlternate(255); |
96. Is there any option to change the color for the line that displays the cursor or the caret
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBackColorCaretLine(255); |
97. How can I change the format to display the numbers
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutFormatNumbers(L"<b><fgcolor=FF0000> </fgcolor></b>"); spEdit1->InsertText(L"Just numbers: 12 22\\r\\n",long(1)); |
98. How can I add a bookmark
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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); |
99. How can I remove all bookmarks
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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->ClearBookmarks(); |
100. How can I remove a bookmark
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBookmark(2,VARIANT_TRUE); spEdit1->PutBookmark(2,VARIANT_FALSE); spEdit1->PutBookmarkWidth(16); |
101. How can I move to the next bookmark
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
102. How can I move to the previous bookmark
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
103. How do I get the bookmarks as a list
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
104. How can I programmatically perform an UNDO operation
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->Undo(); |
105. How can I programmatically perform a REDO operation
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->Redo(); |
106. How do I ensure that a specified line is visible
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->EnsureVisibleLine(spEdit1->GetCount()); |
107. How can I add my own items in the control's context menu
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutContextMenuItems(L"New Item"); |
108. How do I change the background color for a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBackColorLine(1,255); |
109. How do I change the foreground color for a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutForeColorLine(1,255); |
110. How do I remove the line's background color
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBackColorLine(1,255); spEdit1->ClearBackColorLine(1); |
111. Can I display a custom icon or picture in the bookmark area
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+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);
|
112. Can I display a custom icon or picture for bookmarks
| C++ |
|---|
/*
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 "C:\\WINNT\\system32\\ExEdit.dll"
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+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);
|
113. How can I change the color for the bookmark's border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutBookmarkBorderColor(255); spEdit1->PutBookmarkWidth(18); |
114. How can I change the color for the line number's border
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberBorderColor(255); spEdit1->PutLineNumberWidth(18); |
115. How do I ignore \" in a string
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
116. How do I highlight the position of multiple lines expression on the vertical scroll bar
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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",255); spEdit1->PutMarkColor(L"END_MSG_MAP",128); spEdit1->PutMarkColor(L"CAxWnd",0); spEdit1->Refresh(); |
117. How can I show or hide the grid lines
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutDrawGridLines(VARIANT_TRUE); |
118. How can I change the height of the line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\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(); |
119. How do I change the font to display the line numbers
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->GetLineNumberFont()->PutName(L"Tahoma"); spEdit1->PutLineNumberWidth(18); |
120. How can I select a line
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberWidth(18); spEdit1->PutHideSelection(VARIANT_FALSE); spEdit1->SelectLine(3); |
121. How can I show or hide the control's splitter
| C++ |
|---|
/* 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 "C:\\WINNT\\system32\\ExEdit.dll" using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter); spEdit1->PutSplitPaneHeight(128); spEdit1->PutSplitPaneWidth(128); |