11 |
ImageSize property on 32 (specifies the size of the control' icons)
|
10 |
ImageSize property on 16 (default) (specifies the size of the control' icons)
|
9 |
How can I display pictures
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spRollist1->PutHTMLPicture(L"pic2","c:\\exontrol\\images\\auction.gif"); spRollist1->Add(L"Item <img>pic1</img>",vtMissing); spRollist1->Add(L"Item <img>pic2</img>",vtMissing); |
8 |
How can I display icons
|
7 |
Is it possible to display a colored EBN so the borders will be transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spRollist1->PutAppearance(EXROLLISTLib::AppearanceEnum(0x1a88a58 | EXROLLISTLib::Bump)); spRollist1->Add(L"Item 1",vtMissing); spRollist1->Add(L"Item 2",vtMissing); spRollist1->Add(L"Item 3",vtMissing); |
6 |
Is it possible to display an EBN so the borders will be transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spRollist1->PutAppearance(EXROLLISTLib::AppearanceEnum(0x1000000)); spRollist1->Add(L"Item 1",vtMissing); spRollist1->Add(L"Item 2",vtMissing); spRollist1->Add(L"Item 3",vtMissing); |
5 |
How do I put/resize/stretch a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->PutPicture(IPictureDispPtr(((IDispatch*)(spRollist1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spRollist1->PutPictureDisplay(EXROLLISTLib::Stretch); spRollist1->Add(L"Item 1",vtMissing); spRollist1->Add(L"Item 2",vtMissing); spRollist1->Add(L"Item 3",vtMissing); |
4 |
How can I change the control's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* 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 f = ::CreateObject(L"StdFont"); f->PutName(L"Verdana"); f->PutSize(_variant_t(long(12))); spRollist1->PutFont(IFontDispPtr(((stdole::FontPtr)(f)))); spRollist1->Add(L"Item 1",vtMissing); spRollist1->Add(L"Item 2",vtMissing); spRollist1->Add(L"Item 3",vtMissing); |
3 |
How can I change the control's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->PutItemWidth(196); spRollist1->Add(L"<font ;24>Item 1",vtMissing); spRollist1->Add(L"<font ;24>Item 2",vtMissing); spRollist1->Add(L"<font ;24>Item 3",vtMissing); |
2 |
How do I change the control's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->PutForeColor(RGB(255,0,0)); spRollist1->Add(L"Item 1",vtMissing); spRollist1->Add(L"Item 2",vtMissing); spRollist1->Add(L"Item 3",vtMissing); |
1 |
How do I change the control's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXROLLISTLib' for the library: 'ExRollist 1.0 Control Library' #import <ExRollist.dll> using namespace EXROLLISTLib; */ EXROLLISTLib::IRollistPtr spRollist1 = GetDlgItem(IDC_ROLLIST1)->GetControlUnknown(); spRollist1->PutBackColor(RGB(255,0,0)); |