93. Is it possible to print the control's Value on the thumb
// Change event - Occurs when the value of the control is changed.
void OnChangeSlider1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,_bstr_t(spSlider1->GetValue()));
}
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickStyle(EXSLIDERLib::exBoth);
spSlider1->PutThumbSize(48);
spSlider1->PutTickFrequency(0);
spSlider1->PutValue(5);
92. How can I display the value on the thumb
// Change event - Occurs when the value of the control is changed.
void OnChangeSlider1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,_bstr_t(spSlider1->GetValueF()));
}
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->BeginUpdate();
spSlider1->PutAllowFloat(VARIANT_TRUE);
spSlider1->PutMinimumF(-3.25);
spSlider1->PutMaximumF(3.25);
spSlider1->PutSmallChangeF(0.25);
spSlider1->PutThumbSize(48);
spSlider1->PutValueF(0);
spSlider1->PutTickStyle(EXSLIDERLib::exBoth);
spSlider1->PutTickFrequencyF(0);
spSlider1->EndUpdate();
91. How can I display a different text than the slider's value
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutLabelTick(_bstr_t("( value = current ? '<b><font ;10>' : '' ) + (value array 'ab bc cd de ef fg gh hi ij jk kl' sp") +
"lit ' ')");
90. How can I show values for selec range only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutSelectRange(VARIANT_TRUE); spSlider1->PutSelStart(1); spSlider1->PutSelLength(2); spSlider1->PutLabelTick(_bstr_t("value=current ? '<b><font ;10>' + value : ( value>=smin and value<=smax ? '<fgcolor=0000FF>' + ") + "value : '' ) ");
89. Is it possible to display min max value
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutLabelTick(_bstr_t("value = vmin ? '<b>min<br>'+value : (value = vmax ? '<b>max<br>'+value : ( value=current ? '<b>") +
"' + value : '<fgcolor=808080>' + value ) )");
88. How can I show the value for current value only
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutLabelTick(L"value = current ? value : ''");
87. Is it possible to show the value using the tooltip
// Change event - Occurs when the value of the control is changed.
void OnChangeSlider1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutToolTipText(_bstr_t(spSlider1->GetValue()));
}
86. Is it possible to show labels for ticks
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutLabelTick(L"value");
85. How can I change the tooltip's border using your EBN files with a different color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutBackground(EXSLIDERLib::exToolTipAppearance,0x100ffa0); spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") + ""); spSlider1->PutValue(43);
84. Can I change the color for the control's border
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutAppearance(EXSLIDERLib::AppearanceEnum(0x10000f8 | EXSLIDERLib::Flat | EXSLIDERLib::Sunken | EXSLIDERLib::Etched));
83. How can I display a character from a specified font ( for vertical alignment )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>-1</img><font Webdings;10>a</font>"); spSlider1->PutOrientation(EXSLIDERLib::exVertical);
82. How can I display a character from a specified font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<font Webdings;10>a</font>");
81. When I have a slider in vertical orientation, how can I get the caption horizontal
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(96);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>-1</img>thumb");
spSlider1->PutOrientation(EXSLIDERLib::exVertical);
80. Does your control support floating points
// Change event - Occurs when the value of the control is changed.
void OnChangeSlider1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spSlider1->GetValueF()) );
}
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->BeginUpdate();
spSlider1->PutAllowFloat(VARIANT_TRUE);
spSlider1->PutMinimumF(-3);
spSlider1->PutMaximumF(3);
spSlider1->PutSmallChangeF(0.5);
spSlider1->PutLargeChangeF(1);
spSlider1->PutTickFrequencyF(spSlider1->GetSmallChangeF());
spSlider1->PutValueF(0);
spSlider1->EndUpdate();
79. How do I change the control's border, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutAppearance(EXSLIDERLib::AppearanceEnum(0x1000000));
78. How can I change the color of the selected range in the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutOrientation(EXSLIDERLib::exVertical);
spSlider1->PutSelectRange(VARIANT_TRUE);
spSlider1->PutSelStart(2);
spSlider1->PutSelLength(2);
spSlider1->PutValue(1);
spSlider1->PutBackground(EXSLIDERLib::exVSSel,RGB(255,0,0));
77. How can I change the color of the selection in the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutSelectRange(VARIANT_TRUE);
spSlider1->PutSelStart(2);
spSlider1->PutSelLength(2);
spSlider1->PutValue(1);
spSlider1->PutBackground(EXSLIDERLib::exHSSel,RGB(255,0,0));
76. How can I change the visual appearance of the selected range in the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutOrientation(EXSLIDERLib::exVertical); spSlider1->PutSelectRange(VARIANT_TRUE); spSlider1->PutSelStart(2); spSlider1->PutSelLength(2); spSlider1->PutValue(1); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutBackground(EXSLIDERLib::exVSSel,0x1000000); spSlider1->PutCaption(EXSLIDERLib::exSelPart,L"selection");
75. How can I change the visual appearance of the selection in the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutSelectRange(VARIANT_TRUE); spSlider1->PutSelStart(2); spSlider1->PutSelLength(2); spSlider1->PutValue(1); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutBackground(EXSLIDERLib::exHSSel,0x1000000); spSlider1->PutCaption(EXSLIDERLib::exSelPart,L"selection");
74. Is there any option to select a range in the control, or to highlight my selection
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutSelectRange(VARIANT_TRUE); spSlider1->PutSelStart(2); spSlider1->PutSelLength(2); spSlider1->PutValue(1);
73. How can I specify the upper and lower parts using gradient colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutValue(3); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spSlider1->PutBackground(EXSLIDERLib::exHSLower,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exHSUpper,0x2000000);
72. How can I specify the upper and lower parts using gradient colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutOrientation(EXSLIDERLib::exVertical); spSlider1->PutValue(3); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spSlider1->PutBackground(EXSLIDERLib::exVSLower,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSUpper,0x2000000);
71. How can I change the color of the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutShowThumbProgress(VARIANT_TRUE); spSlider1->PutVisiblePart(EXSLIDERLib::exBackgroundPart,VARIANT_FALSE); spSlider1->PutTickStyle(EXSLIDERLib::exNoTicks); spSlider1->PutValue(3); spSlider1->PutBackground(EXSLIDERLib::exVSThumb,RGB(255,0,0));
70. How can I change the visual appearance of the progress bar using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutShowThumbProgress(VARIANT_TRUE); spSlider1->PutVisiblePart(EXSLIDERLib::exBackgroundPart,VARIANT_FALSE); spSlider1->PutTickStyle(EXSLIDERLib::exNoTicks); spSlider1->PutValue(3); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spSlider1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spSlider1->PutBackground(EXSLIDERLib::exVSThumb,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbP,0x2000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbD,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbH,0x3000000);
69. How can I show a progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutShowThumbProgress(VARIANT_TRUE); spSlider1->PutVisiblePart(EXSLIDERLib::exBackgroundPart,VARIANT_FALSE); spSlider1->PutTickStyle(EXSLIDERLib::exNoTicks); spSlider1->PutValue(3);
68. May I change the color of the ticks
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickColor(RGB(255,0,0));
67. How do I specify the frequency of the ticks on the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickFrequency(2);
66. How can I show the tickers on bottom/right side only
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickStyle(EXSLIDERLib::exBottomRight);
65. How can I show the tickers on top/left side only
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickStyle(EXSLIDERLib::exTopLeft);
64. How can I show the tickers on both sides
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickStyle(EXSLIDERLib::exBoth);
63. How can I hide the tickers
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutTickStyle(EXSLIDERLib::exNoTicks);
62. Is there any function to show the tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->ShowToolTip(L"This message is shown when ShowToolTip methoid is called",vtMissing,vtMissing,vtMissing,vtMissing);
61. Is there any function to highligth the control when it gets the focus
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutShowFocusRect(VARIANT_TRUE);
60. I am using your control in a C++ application, and I would preffer handle messages instead events
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutNotifyParent(VARIANT_TRUE);
59. How can I change the visual appearance of the thumb usign your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutOrientation(EXSLIDERLib::exVertical); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spSlider1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spSlider1->PutBackground(EXSLIDERLib::exVSThumb,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbP,0x2000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbD,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbH,0x3000000);
58. How can I change the visual appearance of the thumb usign your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spSlider1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spSlider1->PutBackground(EXSLIDERLib::exVSThumb,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbP,0x2000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbD,0x1000000); spSlider1->PutBackground(EXSLIDERLib::exVSThumbH,0x3000000);
57. Can I indent the caption in parts of the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(64);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"20 pixels<br>from left");
spSlider1->PutCaptionAlignment(EXSLIDERLib::exThumbPart,EXSLIDERLib::LeftAlignment);
spSlider1->PutCaptionIndentX(EXSLIDERLib::exThumbPart,20);
spSlider1->PutValue(3);
56. Does your control support owner draw feature
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutOwnerDrawPart(EXSLIDERLib::exThumbPart,VARIANT_TRUE);
55. Can I assing any extra data to a button or part of the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutUserData(EXSLIDERLib::exThumbPart,"This is just some extra data assigned to the control's thumb");
54. How can I specify the size of the thumb
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(48);
53. Can I change the tooltip's border using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSlider1->PutBackground(EXSLIDERLib::exToolTipAppearance,0x1000000); spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") + ""); spSlider1->PutValue(4);
52. Can I change the tooltip's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutToolTipText(_bstr_t("This is <bgcolor=FF0000>just a text</bgcolor> that's displayed when the user clicks and drags t") +
"he thumb to a new position");
spSlider1->PutValue(4);
51. Can I change the tooltip's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutBackground(EXSLIDERLib::exToolTipBackColor,RGB(255,0,0));
spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") +
"");
spSlider1->PutValue(4);
50. Can I change the tooltip's foreground color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutToolTipText(_bstr_t("This is <fgcolor=FF0000>just a text</fgcolor> that's displayed when the user clicks and drags t") +
"he thumb to a new position");
spSlider1->PutValue(4);
49. Can I change the tooltip's foreground color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutBackground(EXSLIDERLib::exToolTipForeColor,RGB(255,0,0));
spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") +
"");
spSlider1->PutValue(4);
48. Can I change the tooltip's width
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->BeginUpdate(); spSlider1->PutToolTipWidth(256); spSlider1->PutToolTipText(_bstr_t("This is <font Tahoma;12>just a text with a different font</font> that's displayed when the user") + " clicks and drags the thumb to a new position"); spSlider1->PutValue(4); spSlider1->EndUpdate();
47. Can I change the tooltip's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->BeginUpdate(); spSlider1->PutToolTipTitle(L"Title"); spSlider1->PutToolTipText(_bstr_t("This is <font Tahoma;12>just a text with a different font</font> that's displayed when the user") + " clicks and drags the thumb to a new position"); spSlider1->PutValue(4); spSlider1->EndUpdate();
46. Can I change the tooltip's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->BeginUpdate(); /* 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"Tahoma"); f->PutSize(_variant_t(long(12))); spSlider1->PutToolTipFont(IFontDispPtr(((stdole::FontPtr)(f)))); spSlider1->PutToolTipTitle(L"Title"); spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") + ""); spSlider1->PutValue(4); spSlider1->EndUpdate();
45. Can I display a tooltip when user clicks the thumb and drags it to a new position
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutToolTipTitle(L"Title"); spSlider1->PutToolTipText(_bstr_t("This is just a text that's displayed when the user clicks and drags the thumb to a new position") + ""); spSlider1->PutValue(4);
44. How can I get the value from the cursor
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
long var_ValueFromPoint = spSlider1->GetValueFromPoint(-1,-1);
43. Is there any function to identify the part from the cursor
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
EXSLIDERLib::PartEnum var_PartFromPoint = spSlider1->GetPartFromPoint(-1,-1);
42. Is there any option to specify the value to be added or subtracted when user presses the contro's background
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutLargeChange(2);
41. Is there any option to specify the value to be added or subtracted when user presses the up or down button
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutSmallChange(1);
40. How do I specify the maxmimum value in the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutMaximum(20);
spSlider1->PutValue(10);
39. How do I specify the minimum value in the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutMinimum(2);
spSlider1->PutValue(3);
38. How do I change control's position
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutValue(4);
37. How do I change the position of the thumb
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutValue(4);
36. How do I enable or disable a part of the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutValue(2);
spSlider1->PutThumbSize(48);
spSlider1->PutEnablePart(EXSLIDERLib::exThumbPart,VARIANT_FALSE);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<fgcolor=808080>thumb</fgcolor>");
35. How do show or hide parts in the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutVisiblePart(EXSLIDERLib::exThumbPart,VARIANT_FALSE);
34. How do I arrange the control vertically
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutOrientation(EXSLIDERLib::exVertical);
33. How do I prevent painting the control when I perform several changes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->BeginUpdate(); spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSlider1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spSlider1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>p1</img> thumb <img>p2</img> <br><br><br>... <img>1</img> icon"); spSlider1->PutThumbSize(124); spSlider1->EndUpdate();
32. How do I add icons
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(64);
spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1</img>thumb");
31. How can I align the caption to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(64); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"thumb right"); spSlider1->PutCaptionAlignment(EXSLIDERLib::exThumbPart,EXSLIDERLib::RightAlignment);
30. How can I align the caption to the left
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(64); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L" thumb left"); spSlider1->PutCaptionAlignment(EXSLIDERLib::exThumbPart,EXSLIDERLib::LeftAlignment);
29. How can show the caption using a different font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<font Tahoma;12>upper</font> part"); spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<font ;4>lower</font> part"); spSlider1->PutValue(4);
28. Is there any option to display icons or pictures in the parts of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(124); spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSlider1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spSlider1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>p1</img> thumb <img>p2</img> <br><br><br>... <img>1</img> icon");
27. Is there any option to display icons or pictures in the parts of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(124); spSlider1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spSlider1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>p1</img> thumb <img>p2</img>");
26. Is there any option to display icons or pictures in the parts of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1</img> thumb <img>2</img>");
25. Is there any option to display icons or pictures in the parts of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1:4</img><img>1:4</img><img>1:4</img><img>1</img>thumb");
24. Is there any option to display icons or pictures in the parts of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1</img>thumb");
23. How can paint the caption using multiple lines
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(48);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"line1<br>line2");
22. How can change the background color for a portion of text
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<bgcolor=FF0000><fgcolor=0000FF>upper</fgcolor></bgcolor> part"); spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<bgcolor=0000FF><fgcolor=FF0000>upper</fgcolor></bgcolor> part"); spSlider1->PutValue(4);
21. How can change the foreground color for a portion of text
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<fgcolor=FF0000>upper</fgcolor> part"); spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<fgcolor=0000FF>upper</fgcolor> part"); spSlider1->PutValue(4);
20. How can show the caption as strikeout
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->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"Tahoma");
f->PutSize(_variant_t(long(12)));
spSlider1->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<s>upper</s> part");
spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<s>lower</s> part");
spSlider1->PutValue(4);
19. How can underline a portion of the caption
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->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"Tahoma");
f->PutSize(_variant_t(long(12)));
spSlider1->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<u>upper</u> part");
spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<u>lower</u> part");
spSlider1->PutValue(4);
18. How can I draw in italic a portion of the caption
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->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"Tahoma");
f->PutSize(_variant_t(long(12)));
spSlider1->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<i>upper</i> part");
spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<i>lower</i> part");
spSlider1->PutValue(4);
17. How can I draw in bold a portion of the caption
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->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"Tahoma");
f->PutSize(_variant_t(long(12)));
spSlider1->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"<b>upper</b> part");
spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"<b>lower</b> part");
spSlider1->PutValue(4);
16. How can I put a text on the background part in the lower or upper side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutCaption(EXSLIDERLib::exLowerBackPart,L"upper"); spSlider1->PutCaption(EXSLIDERLib::exUpperBackPart,L"lower"); spSlider1->PutValue(4);
15. How can I put a text on the background part
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutCaption(EXSLIDERLib::exBackgroundPart,L"background");
14. How can I put a text on the thumb
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(32);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"thumb");
13. How can I disable the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutEnabled(VARIANT_FALSE);
12. How do I put a picture on the center of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::MiddleCenter);
11. How do I resize/stretch a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::Stretch);
10. How do I put a picture on the control's center right bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::LowerRight);
9. How do I put a picture on the control's center left bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::LowerLeft);
8. How do I put a picture on the control's center top side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::UpperCenter); spSlider1->PutValue(5);
7. How do I put a picture on the control's right top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::UpperRight); spSlider1->PutValue(5);
6. How do I put a picture on the control's left top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spSlider1->PutPictureDisplay(EXSLIDERLib::UpperLeft); spSlider1->PutValue(5);
5. How do I put a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutPicture(IPictureDispPtr(((IDispatch*)(spSlider1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
4. How can I change the size of control's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library' #import <ExSlider.dll> using namespace EXSLIDERLib; */ EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown(); spSlider1->PutThumbSize(96); spSlider1->GetFont()->PutSize(_variant_t(long(12))); spSlider1->PutForeColor(RGB(255,0,0)); spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"thumb");
3. How do I change the control's font
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutThumbSize(32);
spSlider1->GetFont()->PutName(L"Tahoma");
spSlider1->PutForeColor(RGB(255,0,0));
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"thumb");
2. How can I change the control's foreground color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutForeColor(RGB(255,0,0));
spSlider1->PutThumbSize(32);
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"thumb");
1. How can I change the control's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXSLIDERLib' for the library: 'ExSlider 1.0 Control Library'
#import <ExSlider.dll>
using namespace EXSLIDERLib;
*/
EXSLIDERLib::ISliderPtr spSlider1 = GetDlgItem(IDC_SLIDER1)->GetControlUnknown();
spSlider1->PutBackColor(RGB(0,255,0));