25 |
ImageSize property on 32 (specifies the size of the control' icons)
|
24 |
ImageSize property on 16 (default) (specifies the size of the control' icons)
|
23 |
Show the control's tooltip
|
22 |
The color I set for the control's background is not what I expect. Is there anything I can do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutBackColor(RGB(255,0,0)); spButton1->PutRenderType(-1); spButton1->PutCaption(L"Command"); |
21 |
How can I display the pointer (hand cursor) when the mouse cursor hovers the control
|
20 |
How can I align the picture inside the caption (3)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spButton1->PutAlignment(EXBUTTONLib::exLeft); spButton1->PutCaption(L"<img>pic1</img><br>This is a just the rest of the caption"); |
19 |
How can I align the picture inside the caption (2)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spButton1->PutAlignment(EXBUTTONLib::exLeft); spButton1->PutCaption(L"This is a just the rest of the caption<r><img>pic1</img>"); |
18 |
How can I align the picture inside the caption (1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spButton1->PutAlignment(EXBUTTONLib::exLeft); spButton1->PutCaption(L"<img>pic1</img>This is a just the rest of the caption"); |
17 |
How can I display the caption in mirror
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutAlignment(EXBUTTONLib::exCenter); spButton1->PutVAlignment(EXBUTTONLib::exMiddle); spButton1->PutCaption(L"Command"); spButton1->PutBackColor(RGB(255,255,255)); spButton1->PutRotate(EXBUTTONLib::exHTMLMirror); |
16 |
How can I display vertically the caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutAlignment(EXBUTTONLib::exCenter); spButton1->PutVAlignment(EXBUTTONLib::exMiddle); spButton1->PutCaption(L"Command"); spButton1->PutBackColor(RGB(255,255,255)); spButton1->PutRotate(EXBUTTONLib::exHTMLVertical); |
15 |
How can I display a picture on the button's face to be scaled automatically once the button is resized
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutPicture(IPictureDispPtr(((IDispatch*)(spButton1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spButton1->PutPictureDisplay(EXBUTTONLib::Stretch); |
14 |
How can I display an & ( ampersand ) in the button's caption
|
13 |
How can I define my own visual appearance / style for my button
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutStyle(EXBUTTONLib::exCustom1); spButton1->PutAllowHotState(VARIANT_TRUE); spButton1->PutBackColor(RGB(255,255,255)); spButton1->Skin(EXBUTTONLib::exNormal,L"c:\\exontrol\\images\\normal.ebn"); spButton1->Skin(EXBUTTONLib::exPushed,L"c:\\exontrol\\images\\pushed.ebn"); spButton1->Skin(EXBUTTONLib::exHot,L"c:\\exontrol\\images\\hot.ebn"); spButton1->Skin(EXBUTTONLib::exDisabled,L"c:\\exontrol\\images\\border.ebn"); |
12 |
How can I display a percent bar over the control
// Click event - Occurs when the user presses and then releases the left mouse button over the control. void OnClickButton1() { /* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt,"25%"); spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exTextExt,spButton1->GetBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt)); } EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutCaption(L"Command"); spButton1->PutVAlignment(EXBUTTONLib::exTop); spButton1->PutBackgroundExt(_bstr_t("bottom[4],left[4],right[4],bottom[16,pattern=0x000,frame=RGB(0,0,0)](left[50%,back=RGB(0,255,0),text=`<font ;6><sha ;;0>50%`,al") + "ign=0x11,pattern=0x006,patterncolor=RGB(0,128,0),frame=RGB(0,128,0)])"); spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt,"75%"); spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exTextExt,spButton1->GetBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt)); |
11 |
Is it possible to display an additional caption on the control's background
|
10 |
How can I display a pattern over the button
|
9 |
Does your control support subscript or superscript, in HTML captions
|
8 |
How can I change the caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutCaption(L"Mühle"); |
7 |
Is it possible to specify the control's background color when disabled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutCaption(L"<fgcolor=808080>Disabled"); spButton1->PutEnabled(VARIANT_FALSE); spButton1->PutForeColorState(EXBUTTONLib::exDisabled,RGB(0,255,0)); |
6 |
How can I disable the control
|
5 |
How do I put/resize/stretch a picture on the control's background
|
4 |
How can I change the control's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->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))); spButton1->PutFont(IFontDispPtr(((stdole::FontPtr)(f)))); spButton1->PutCaption(L"just the button's caption"); |
3 |
How do I change the control's foreground color
|
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 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutForeColor(RGB(255,0,0)); spButton1->PutCaption(L"just the button's caption"); |
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 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library' #import <ExButton.dll> using namespace EXBUTTONLib; */ EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown(); spButton1->PutBackColor(RGB(255,0,0)); spButton1->PutBorderWidth(8); spButton1->PutBorderHeight(8); |