100
|
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)

/*
Copy and paste the following directives to your header file as
it defines the namespace '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->PutImageSize(32);
spSlider1->GetFont()->PutSize(_variant_t(long(16)));
spSlider1->PutThumbSize(156);
spSlider1->Images(_bstr_t("gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOq") +
"NUqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlw" +
"yV21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+C" +
"MPo9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy/kPxC0sEQfErKQK96+w28UWRI8UGvO8sTLS9r2PWmsMJTDTask3CsIbIEQRA3shOXEEAO/GclJ9" +
"FEKrrA8FRbKMXRIlb0JxCkjS1LMswhCcvuel0cv26cSMa8Ufx+2sQwhEUoSXOCjSbLcnxjKc7sdKUVyq28NtVI71P9P7JxtQEapjQ6fzfM8zPfNE2PhIsLL63E40slk5" +
"y7N89LcyU9SvMb3SdUc6VJLj5VLVLfO/PS9KzNFHUa/0XyBD0dxlS9cxhMlTRSoNXypPErWDPyfNS+MwprRNO0FD8wVVZ1AI08URwVRjtJ1WCn21QkkUrXVLVPQS/XIk" +
"FgTxT9iONZ9xVTdq+L1eKg3kkF6Upe68XtfV51/MtrVjBlwYFL1ev8y1/P6/lyzzYl02wntj0RVFmS1Qa+M5as93QxEUW9e993rfmQ2+vy65M/mL1lhl/2bj2ByVduMt" +
"NhCJT9hdz41nN14Ld12Z9UjfI/oUAaGseiw6+uFLLhcVabJOS5RqOE0BHlZ5VnEr5fOMs3st+aa/bbRzrJGV51Y0b0DbqaWXZD90hIsPbjWu52+6Wyadpe66hhO+P/Xi" +
"oW5rD8ZbrUZuVg6n1dsE/cXmewu1m9PVwnd35/nueXho/NaJzmjc61W76esuT77eG8pTquy9TwWH8LEzG8RDfFalx3Gcfvna9rvG/cptGLd9tuI6TZOP5Fiqi99vea+X" +
"4VRcBq/JZZtVQ9cwSs5lsXE372+a9z7PbfB3VVqHyvMctLto8uob6eV0m/cD6MN2v+T33t6sBut42vdv2bJ8a997x2maFJfK+qArbGJPEKE+1qTflMsIdW/GCJX17KcT" +
"6/czr/X+u1g29B7j/4BQfWkkx4zIHisjhPCmE0K4SwtXM+d4BvHRwNZOoBph9IJvPek9d40FoMJxf691jj2ywQQcHEWET4XJwkTszlVqm2GokewxtBT1DpQjRxDN0rUV" +
"DNKdC3lb6tzNOwh6upMSSYfv4YBCl/bsn9PxiFCEo7SI6Obc9HeOrnY8x4jtHtdpN4GRbaorhsbu18Pph5CiHymI0RpSXGJ/z2oUOxYxG858AyiI+bfJtuTcG5yelBJy" +
"T8okhqFd4a5yxL0rvulYtKCsZiWxWkc1s1cRoxxwhA31DLE0mR9l9HqX8fJgTDmFMVH0MIsRzVYnwnMi1dyzmhLt2kS2pxIiU62Wj5ptQGlSYFakLonTUJNLKaM5Wzlf" +
"fEkuFkk5wTrhVO2eE7G6lJhxFFYUZ55zmn0WuBCD4pzhirFCKkbomsOoIYmZx5p90LoYWGPdD5g0QmJRKYxbZ6zYoVQ2jVGylSak7KSkFH6RSjpHKFuU+YMyNo5SulkC" +
"6I0vonTCitMXPoEpVS2H5FQfEqp2R1opIgAEkJISYARTCukOhmPNI5Ex/wzGHUsicMwA1LHgQ90Y/KpoQHAD+pB/R4NzIaMAB9Xaw1gqaAOsh/A/ptIkWUfhGK1kZH8R" +
"gH5GqvgArqRmt4AAPrTroRofBGADkqr6Rmu4D7CEaHARiwpJrEEZsXXwlVjyMWRsaRqwdkLGNBABZmytmyMnaINZqyVpLR2ftKAAAdd6h2osbaskdiq4EZtgSmyNcbVW" +
"RJNXe3AA7REar3b0stlAAXBtoRmvJGLjEYAHUWsFcwCD/rnaop9aEICMAPdK5hT6xpeuzdOtAgKuJeGfdq6ggEbkTvAP+p9UCHXrvKkcgIA==");
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1</img> thumb <img>2</img>");
spSlider1->EndUpdate();
|
99
|
ImageSize property on 16 (default) (specifies the size of control' icons)

/*
Copy and paste the following directives to your header file as
it defines the namespace '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->PutImageSize(16);
spSlider1->PutThumbSize(96);
spSlider1->Images(_bstr_t("gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOq") +
"dSqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVt" +
"tmp1knyOayWVy+WzN/ze1wOElenm+12WUz/Bv2/3UyyWrzeutux2GSyGP2dQ33C1ur3GD3M4zUNzHdlWjq/E3nGzVpjWv4HA7fRy/Tv2IrN8rPW6nZ3ve7mUlfu20Z8a" +
"cvQyb+vY9jasYoDwMm+LytVBDqKG3z8O3Cb8P+mkAuY9cCQ2uL4KaxDKvkp8RNLEjqugnrwQo/UWPzFyeQw5sNLZFENrI4kOqU66pw8uzmOKvTqNqjULJvGL1JO48GtT" +
"GsbLdEL3scxLlyiw8dQeoUVxdLTtyKmUjwGlslRPJsnK1HbAKbKCrsQo8uQk/CeP44iaR/ATnTNPLvyxPU+z9P9AUDQVBowiofJXQ6Oo+kKMpIkjztE4TKn4P6JowfgP" +
"nwD5/nAjB8AOeAPo0eAA1IAFH07UhAIMpYAVIYFHqBUhwVjV1S1EtQAHxW65V0AZwAeuQAnwB5gAPYViEDVhwAHTQBkCjB4gOhwDmCyhH0sACAg==");
spSlider1->PutCaption(EXSLIDERLib::exThumbPart,L"<img>1</img> thumb <img>2</img>");
spSlider1->EndUpdate();
|
98
|
I am trying to replicate the green slider image example you have in the helpfile under the "property Slider.ShowThumbProgress as Boolean" help topic

// 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->BeginUpdate();
spSlider1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAChABbEGACAADACAxRDAMgBQKAAzQFAYaBgGKGAAGIZRVgmFgAQhFcZQSKUOQTDKMIziaQAChwOYlQKMYxRCKYZhpCIZBwGCIYWiiIYiQKCUIiD") +
"BMIxseCgAAfSg5YiACIJFAaJhnIapZDKGKQCqASAyCI2UoaDZCIoQTLUBx5AaEAwicQKTjiIiQOgjdoWU46HIhNq3bauCybRoOdj8QKdbhHMbFdz0Oq/cBvbAzVbvBqH" +
"QKXLalVhWGYXRrIMbyIqnZxXFoDEQ1ZBZTjeNY5T7PNBIJ5tEyWKTTC4MeoaVpOV5dVrYHj2LY4DCtUgrbYJe47Xq+eZ1W6gOBeDZddZLP7HbZuHDbYJfBSCADkd65To" +
"XAOHZEmUcg5HwXpPDeLZQm2dQ7ByTh3A+P5im0b58n6HwnF+KZpnCew8l6boPiOE5xnodh9n8XovAuW57H6HZHl2YB+l6J5Zl4fgeBeQgHgCXZICmfR8h+eAhlodxgng" +
"SgNgEIAoBYE4DhwF55nmBYgGgVgMHSYYIC4GoAB4OIZnOCJfkgdgQgeYpIFILoICGOIWA8DgNFCVg4g6I4Ym4PoPGQAJUnGEJkEQDBQDaBJJBwToSiSQxqEuEgklEOJ0" +
"hSZVEGcN5GGkXhZhYJYpHYXIXkYZoViYAAHmOEB8hkR5BnSYwemaCY2GaG4HkYWYXAACRjiSFYdEkUhUmkJQngmdh2h+CRVl0RAAAqQ40iuIRoHoGoIiKaIqWwIIXoWA" +
"SAg==");
spSlider1->PutShowThumbProgress(VARIANT_TRUE);
spSlider1->PutVisiblePart(EXSLIDERLib::exBackgroundPart,VARIANT_FALSE);
spSlider1->PutTickStyle(EXSLIDERLib::exNoTicks);
spSlider1->PutValue(3);
spSlider1->PutBackground(EXSLIDERLib::exVSThumb,0x1000000);
spSlider1->EndUpdate();
|
97
|
How can I change the position of the control's 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->PutToolTipTitle(L"Title");
spSlider1->PutToolTipText(L"This is just a text that's displayed when the user clicks and drags the thumb to a new position");
spSlider1->PutToolTipX(L"value + 18");
spSlider1->PutToolTipY(L"value + 18");
|
96
|
How can I display the value in reverse order or from bottom to top

/*
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->PutLabelTick(_bstr_t("value = vmin ? '<b>min<br>'+value : (value = vmax ? '<b>max<br>'+value : ( value=current ? '<b>' + value : '<fgcolor=808080>' +") +
" value ) )");
spSlider1->PutMinimum(-100);
spSlider1->PutMaximum(100);
spSlider1->PutTickFrequency(10);
spSlider1->PutThumbSize(40);
spSlider1->PutOrientation(EXSLIDERLib::exReverseOrder);
spSlider1->EndUpdate();
|
95
|
How can I display the value in reverse order or from right to 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->BeginUpdate();
spSlider1->PutLabelTick(_bstr_t("value = vmin ? '<b>min<br>'+value : (value = vmax ? '<b>max<br>'+value : ( value=current ? '<b>' + value : '<fgcolor=808080>' +") +
" value ) )");
spSlider1->PutMinimum(-100);
spSlider1->PutMaximum(100);
spSlider1->PutTickFrequency(10);
spSlider1->PutThumbSize(40);
spSlider1->PutOrientation(EXSLIDERLib::OrientationEnum(EXSLIDERLib::exReverseOrder | EXSLIDERLib::exHorizontal));
spSlider1->EndUpdate();
|
94
|
I need only to change the knob of the slider with a picture. Is it possible

/*
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->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spSlider1->PutLabelTick(_bstr_t("value = vmin ? '<b>min<br>'+value : (value = vmax ? '<b>max<br>'+value : ( value=current ? '<b>' + value : '<fgcolor=808080>' +") +
" value ) )");
spSlider1->PutMinimum(-100);
spSlider1->PutMaximum(100);
spSlider1->PutTickFrequency(10);
spSlider1->PutBackground(EXSLIDERLib::exHSThumb,0x1000000);
spSlider1->PutThumbSize(40);
spSlider1->EndUpdate();
|
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(L"( value = current ? '<b><font ;10>' : '' ) + (value array 'ab bc cd de ef fg gh hi ij jk kl' split ' ')");
|
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(L"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(L"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::Bump | EXSLIDERLib::Sunken));
|
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(L"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(L"This is <bgcolor=FF0000>just a text</bgcolor> that's displayed when the user clicks and drags the 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(L"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(L"This is <fgcolor=FF0000>just a text</fgcolor> that's displayed when the user clicks and drags the 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(L"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(L"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(L"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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+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));
|